Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LanguageManager

Hierarchy

  • LanguageManager

Implements

Index

Constructors

constructor

Methods

add

addTranslateSelector

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

    • id: UiTranslation
    • 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

createTranslationId

  • createTranslationId(dictionary: number, entry: number, translationType?: TranslationType): string

evalString

  • evalString(str: string): string

extendLanguage

getDefault

getDictionary

  • getDictionary(dictionaryName: string): Dictionary
  • Parameters

    • dictionaryName: string

    Returns Dictionary

getDictionaryId

  • getDictionaryId(dictionaryName: string): Dictionary

getEntry

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

    • dictionaryName: string
    • entryName: string

    Returns number

getEntryId

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

    • dictionaryName: string
    • entryName: string

    Returns number

getLanguage

  • getLanguage(name: string): ILanguage | undefined

getLanguages

getLoaded

getTranslation

getTranslationString

  • getTranslationString(translationId: string): string
  • getTranslationString(dictionary: BindPress, entry: string): string
  • getTranslationString(dictionary: Dictionary, entry: number): string
  • getTranslationString(dictionary: Dictionary, entry: number, translationType: all): string
  • getTranslationString(dictionary: Dictionary, entry: number, translationType: TranslationType): string
  • getTranslationString(translation: ITranslation): string

getUiTranslation

load

parseTranslationId

  • parseTranslationId(translationId: string): [number, number, TranslationType] | undefined

refreshUiTranslation

  • refreshUiTranslation(element: JQuery): void

refreshUiTranslations

reload

  • reload(): void

remove

removeExtension

  • removeExtension(id: number): void

serialize

  • Parameters

    Returns any

serializeLanguageToFile

  • serializeLanguageToFile(): void
  • Returns void

shouldWarnOnInvalidOrMissingEntry

  • shouldWarnOnInvalidOrMissingEntry(str?: string): boolean

Generated using TypeDoc