# LocalizedText

## class LocalizedText(text=None, locale=None)

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object "(in Python v3.15)")

Text with an optional locale identifier.

Construct text with optional locale metadata.

Parameters:
:   - **text** ([*str*](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)") *|* *None*)

      Text content. Defaults to `None`.
    - **locale** ([*str*](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)") *|* *None*)

      Locale identifier. Defaults to `None`.

Returns:
:   *LocalizedText* –

    Absent text and locale fields read as `None`.
    :   Present empty strings read as `""`.

Examples

```
>>> LocalizedText("Temperature", "en-US").text
'Temperature'
```

Attributes

| [`locale`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.LocalizedText.md#instro.opcua.types.LocalizedText.locale "instro.opcua.types.LocalizedText.locale") |  |
| --- | --- |
| [`text`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.LocalizedText.md#instro.opcua.types.LocalizedText.text "instro.opcua.types.LocalizedText.text") |  |

### locale

### text
