Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Language

Hierarchy

Index

Constructors

constructor

  • new Language(name: string, alternateFontStyle?: boolean): Language

Properties

Readonly alternateFontStyle

alternateFontStyle: boolean

Readonly contextRules

contextRules: IContextRules

Readonly dictionaries

dictionaries: Map<string, Map<string, string[]>> = new Map<string, Map<string, string[]>>()

Readonly language

language: string

Methods

getTranslation

  • getTranslation(dictionaryName: string, entry: string): undefined | string[]
  • Parameters

    • dictionaryName: string
    • entry: string

    Returns undefined | string[]

setArticleRules

  • setArticleRules(...rules: Array<NameRule | []>): this

setContextRules

  • setContextRules(rules: {}): this

setDictionary

  • setDictionary(dictionary: string, translations: Record<string, string | string[]>): this
  • Parameters

    • dictionary: string
    • translations: Record<string, string | string[]>

    Returns this

setIrregularRules

  • setIrregularRules(...rules: Array<[]>): this

setPluralizationRules

  • setPluralizationRules(...rules: Array<PluralRule | []>): this

setSingularizationRules

  • setSingularizationRules(...rules: Array<SingularRule | []>): this

setUncountableRules

  • setUncountableRules(...rules: Array<RegExp | string>): this

Object literals

Readonly pluralizationRules

pluralizationRules: object

articleRules

articleRules: never[] = []

irregularRules

irregularRules: never[] = []

pluralRules

pluralRules: never[] = []

singularRules

singularRules: never[] = []

uncountables

uncountables: never[] = []

Generated using TypeDoc