wikidata.multilingual — Multilingual texts

wikidata.multilingual.Locale(x)

The locale of each MonolingualText or internal mapping of each MultilingualText. Alias of str.

New in version 0.7.0.

class wikidata.multilingual.MonolingualText

Locale-denoted text. It’s almost equivalent to str (and indeed subclasses str) except that it has an extra attribute, locale, that denotes what language the text is written in.

locale = None

(Locale) The code of locale.