langPackLanguage
Identifies a localization pack
type tg.LangPackLanguage struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Official | bool | — | Whether the language pack is official |
Rtl | bool | — | Is this a localization pack for an RTL language |
Beta | bool | — | Is this a beta localization pack? |
Name | string | yes | Language name |
NativeName | string | yes | Language name in the language itself |
LangCode | string | yes | Language code (pack identifier) |
BaseLangCode | string | — | Identifier of a base language pack; may be empty. If a string is missed in the language pack, then it should be fetched from base language pack. Unsupported in custom language packs |
PluralCode | string | yes | A language code to be used to apply plural forms. See https://www.unicode org/cldr/charts/latest/supplemental/language_plural_rules.html for more info |
StringsCount | int | yes | Total number of non-deleted strings from the language pack |
TranslatedCount | int | yes | Total number of translated strings from the language pack |
TranslationsURL | string | yes | Link to language translation interface; empty for custom local language packs |
Returned by
References
- Official documentation
- Generated Go reference
- TL definition:
langPackLanguage#eeca5ce3