wonder-stuff
    Preparing search index...

    Function translateString

    • Insert translated strings into a code string, returning the fully translated code string.

      Parameters

      • textString: string

        the string to translate, containing code.

      • translatedStrings: TranslatedLocaleStrings

        the translated strings to insert into code string.

      • strings: ExtractedString[] = ...

        the strings that've been pre-extracted from the file, as done by extract-i18n.js. This is optional, if not provided the strings will be extracted automatically.

      Returns string

      the translated code string