LocalizedText#
- class LocalizedText(text=None, locale=None)#
Bases:
objectText with an optional locale identifier.
Construct text with optional locale metadata.
- Parameters:
- Returns:
LocalizedText –
- Absent text and locale fields read as
None. Present empty strings read as
"".
- Absent text and locale fields read as
Examples
>>> LocalizedText("Temperature", "en-US").text 'Temperature'
Attributes
- locale#
- text#