Hierarchy

  • default

Implements

Constructors

  • Parameters

    • dictionary: string | default
    • entry: string | number
    • Optional index: number | "random"

    Returns default

  • Parameters

    • translationId: string

    Returns default

Properties

args: TranslationArg[] = []
id: string
isValid: boolean
reformatters: [reformatter: default, ...args: TranslationArg[]][] = []
sectionStringRenderers: TranslationStringRenderer[] = []

Accessors

Methods

  • Parameters

    • Rest ...classes: (string | Supplier<undefined | string, []>)[]

    Returns default

  • Returns default

  • Parameters

    Returns boolean

  • Returns this translation as a list of string sections

    Parameters

    • Rest ...args: any[]

    Returns IStringSection[]

  • Returns default

  • Returns undefined | Reference

  • Returns the translation as a string

    Parameters

    • Rest ...args: any[]

    Returns string

  • Returns true if this translation has been set to fail with another translation or string.

    Parameters

    • notEmptyString: boolean = false

    Returns boolean

  • Returns boolean

  • Parameters

    • context: TextContext = TextContext.None
    • normalize: boolean = false

    Returns default

  • Parameters

    • Optional translation: GetterOfOr<undefined | default>

    Returns undefined | default

  • Parameters

    Returns default

  • Parameters

    • beginning: true
    • reformatters: ArrayOr<Reformatter>
    • Rest ...args: TranslationArg[]

    Returns default

  • Sets the random source for this Translation. Uses general random by default, not seeded.

    Note: If this translation is an argument to another translation, it will use the random of the parent translation.

    Parameters

    • random: Random<IRandomGenerator<any>> = generalRandom

    Returns default

  • Parameters

    • which: number | "random" = 0

    Returns default

  • Returns string

  • Parameters

    Returns default

  • Parameters

    • priority: true
    • Rest ...segments: ISegment[]

    Returns default

  • DO NOT USE THIS METHOD

    Unless the text is PRE-GENERATED and there is NO WAY TO TRANSLATE IT.

    Example uses include text the user inputs, and text from other sites (steam/trello)

    Parameters

    Returns TranslationGenerator

  • Parameters

    • dictionary: string | default
    • Optional entry: string | number

    Returns default[]

  • Parameters

    Returns string

  • Parameters

    • dictionary: default
    • entry: string | number
    • Optional index: number

    Returns string

  • Parameters

    • arg: any
    • depth: number = 0
    • maxSerializationDepth: number = 50

    Returns TranslationArg

Generated using TypeDoc