wonder-stuff
    Preparing search index...
    Index

    Constructors

    Properties

    options: InternalOptions

    Methods

    • Get all the translated strings from Crowdin. The results are stored and returned in a map of locale to string map.

      Parameters

      • locales: string[]

        the locales to get the strings for

      Returns Promise<TranslatedStrings>

      a mapping of locale to msgId to string data

    • Update manifest files so that they point to the correct location of the translated files.

      Parameters

      • options: { assets: Assets; hashMap: HashMaps }

      Returns void

    • Logic to run when emitting the files. This will get the translated strings, translate the assets, and update the manifest files.

      Parameters

      • options: { assets: Assets }

        compilation options from Webpack

      • callback: () => void

        callback function to call when done

      Returns Promise<void>

      void

    • Go through all of the JS assets and insert translated strings for every locale that we're currently translating into.

      Parameters

      • options: {
            assets: Assets;
            hashMap?: HashMaps;
            localizeRuntimeFiles: boolean;
            translatedStrings: TranslatedStrings;
        }

      Returns HashMaps

      a map of old file hashes to new hashes