Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LanguageManager

Hierarchy

  • LanguageManager

Implements

Index

Constructors

constructor

Methods

add

addTranslateSelector

  • addTranslateSelector(id: UiMessageStatic, selector: string | string[], attribute?: string, html?: boolean, func?: function): void
  • Parameters

    • id: UiMessageStatic
    • selector: string | string[]
    • Optional attribute: string
    • Optional html: boolean
    • Optional func: function
        • (translation: string): string
        • Parameters

          • translation: string

          Returns string

    Returns void

addTranslateSelectors

  • addTranslateSelectors(...translateSelectors: Array<Object | Object | Object | Object>): void
  • Parameters

    • Rest ...translateSelectors: Array<Object | Object | Object | Object>

    Returns void

evalString

  • evalString(str: string): string

extendLanguage

getDefault

getDefaultTranslation

  • getDefaultTranslation(translationId: string): string
  • getDefaultTranslation(dictionary: Dictionary, entry: number): string

getDictionary

  • getDictionary(dictionaryName: string): Dictionary
  • Parameters

    • dictionaryName: string

    Returns Dictionary

getEntry

  • getEntry(dictionaryName: string, entryName: string): number
  • Parameters

    • dictionaryName: string
    • entryName: string

    Returns number

getLanguage

  • getLanguage(name: string): ILanguage | undefined

getLanguages

getLoaded

getTranslation

load

parseTranslationId

  • parseTranslationId(translationId: string): [number, number, "name" | "description" | "prefix" | "suffix"] | undefined
  • Parameters

    • translationId: string

    Returns [number, number, "name" | "description" | "prefix" | "suffix"] | undefined

refreshUiTranslation

  • refreshUiTranslation(element: JQuery): void

refreshUiTranslations

reload

  • reload(): void

remove

removeExtension

  • removeExtension(id: number): void

serialize

  • Parameters

    Returns any

shouldWarnOnInvalidOrMissingEntry

  • shouldWarnOnInvalidOrMissingEntry(str?: string): boolean

Generated using TypeDoc