Blockbench Reference Docs
    Preparing search index...

    Variable tlConst

    tl: (
        string: string,
        variables?: string | number | (string | number)[],
        default_value?: string,
    ) => string

    Returns a translated string in the current language

    Type Declaration

      • (
            string: string,
            variables?: string | number | (string | number)[],
            default_value?: string,
        ): string
      • Parameters

        • string: string
        • Optionalvariables: string | number | (string | number)[]

          Array of variables that replace anchors (%0, etc.) in the translation. Items can be strings or anything that can be converted to strings

        • Optionaldefault_value: string

          String value to default to if the translation is not available

        Returns string