Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>LangPackLanguage_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class LangPackLanguage_
import { LangPackLanguage_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Identifies a localization pack

Constructors

new
LangPackLanguage_(params: { official?: true; rtl?: true; beta?: true; name: string; native_name: string; lang_code: string; base_lang_code?: string; plural_code: string; strings_count: number; translated_count: number; translations_url: string; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
base_lang_code: 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

optional
beta: true

Is this a beta localization pack?

lang_code: string

Language code (pack identifier)

name: string

Language name

native_name: string

Language name in the language itself

optional
official: true

Whether the language pack is official

plural_code: string

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

optional
rtl: true

Is this a localization pack for an RTL language

strings_count: number

Total number of non-deleted strings from the language pack

translated_count: number

Total number of translated strings from the language pack

translations_url: string

Link to language translation interface; empty for custom local language packs

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc