wikidata.multilingual — Multilingual texts¶
- class wikidata.multilingual.Locale¶
The locale of each
MonolingualTextor internal mapping of eachMultilingualText. Alias ofstr.New in version 0.7.0.
alias of
str
- class wikidata.multilingual.MonolingualText(text: str, locale: Locale)¶
Locale-denoted text. It’s almost equivalent to
str(and indeed subclassesstr) except that it has an extra attribute,locale, that denotes what language the text is written in.Changed in version 0.8.0: The type hint of the constructor’s
localeparameter becameLocale.