Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LanguageManager

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly event

event: IEventEmitter<this, ILanguageEvents> = new EventEmitter<this, E>(this)

Accessors

language

  • get language(): string
  • set language(languageName: string): void
  • Returns string

  • Parameters

    • languageName: string

    Returns void

loadID

  • get loadID(): number
  • Returns number

orderedProviders

providers

Methods

add

  • Parameters

    Returns void

deserialize

generateSchema

  • generateSchema(): void
  • Returns void

getTranslation

  • getTranslation(dictionary: Dictionary, entry: number | string, ignoreInvalid?: boolean): undefined | string[]
  • Parameters

    • dictionary: Dictionary
    • entry: number | string
    • Default value ignoreInvalid: boolean = false

    Returns undefined | string[]

initialize

  • initialize(): void
  • Returns void

reformatSingularNoun

  • reformatSingularNoun(noun: string, count: number, article?: boolean): string
  • Parameters

    • noun: string
    • count: number
    • Default value article: boolean = true

    Returns string

refreshUiTranslations

  • refreshUiTranslations(): void
  • Returns void

remove

  • Parameters

    Returns void

serialize

  • Parameters

    • Default value languageName: string = this.language
    • Default value caseStyle: CaseStyle = CaseStyle.CamelCase

    Returns ISerializedLanguage | undefined

serializeLanguageToFile

  • serializeLanguageToFile(language?: string, caseStyle?: CaseStyle): void
  • Parameters

    • Default value language: string = this.language
    • Optional caseStyle: CaseStyle

    Returns void

serializeLanguageToFiles

  • serializeLanguageToFiles(language?: string, caseStyle?: CaseStyle): Promise<void>
  • Parameters

    • Default value language: string = this.language
    • Default value caseStyle: CaseStyle = CaseStyle.PascalCase

    Returns Promise<void>

shouldUseAlternateFontStyle

  • shouldUseAlternateFontStyle(): boolean
  • Returns boolean

Generated using TypeDoc