Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace TranslationSegment

Index

Functions

getSubTranslationArgs

  • Parameters

    Returns IStringSection[][]

resolveTranslation

  • resolveTranslation(random: Random, api: ISegmentApi, dictionaryName: string, entryName: string, index?: string, subTranslationArgsString: string, args: any[]): undefined | IStringSection[]
  • Parameters

    • random: Random
    • api: ISegmentApi
    • dictionaryName: string
    • entryName: string
    • Default value index: string = "0"
    • subTranslationArgsString: string
    • args: any[]

    Returns undefined | IStringSection[]

Object literals

Const conditional

conditional: object

match

match: RegExp = /^\s*(\w+):(\w+|\{\w+(?:\.\w+)*\})(?::(random|RANDOM|\*|\d+|\{\w+(?:\.\w+)*\}))?(?::\((.*)\))?\s*\?/

handle

  • handle(__namedParameters: [string, string, string, string, string], segment: string, api: ISegmentApi, ...args: any[]): IStringSection[]
  • Parameters

    • __namedParameters: [string, string, string, string, string]
    • segment: string
    • api: ISegmentApi
    • Rest ...args: any[]

    Returns IStringSection[]

Const include

include: object

match

match: RegExp = /^\s*(\w+):(\w+|\{\w+(?:\.\w+)*\})(?::(random|RANDOM|\*|\d+|\{\w+(?:\.\w+)*\}))?(?::\((.*)\))?\s*$/

handle

  • handle(__namedParameters: [string, string, string, string, string], segment: string, api: ISegmentApi, ...args: any[]): string | IStringSection[]
  • Parameters

    • __namedParameters: [string, string, string, string, string]
    • segment: string
    • api: ISegmentApi
    • Rest ...args: any[]

    Returns string | IStringSection[]

Const thisEntry

thisEntry: object

ends

ends: [string][] = [["{@"]]

match

match: RegExp = /^(?:(%)$|(\d+)?(?:(\.\.\.?|-)(\d+)?(%)?)?)/

translationChain

translationChain: never[] = []

handle

  • handle(__namedParameters: [string, string, string, string, string, string], segment: string, api: ISegmentApi, ...args: any[]): string | IStringSection[]
  • Parameters

    • __namedParameters: [string, string, string, string, string, string]
    • segment: string
    • api: ISegmentApi
    • Rest ...args: any[]

    Returns string | IStringSection[]

Generated using TypeDoc