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: (default | ((sections: IStringSection[]) => IStringSection[]))[] = []
sectionStringRenderers: ((section: IStringSection) => undefined | string)[] = []

Accessors

Methods

  • Returns default

  • Parameters

    Returns boolean

  • Returns this translation as a list of string sections

    Parameters

    • Rest ...args: any[]

    Returns IStringSection[]

  • 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

  • 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

    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 any

Generated using TypeDoc