Chartbreaker
    Preparing search index...

    Function setLanguageData

    • Provide translations for a specific language to Chartbreaker

      Parameters

      • lang: string

        the language code as used in a locale (e.g. 'de' or 'en')

      • data: {
            domain: "charting";
            locale_data: {
                charting: Record<
                    string,
                    | [null, ...string[]]
                    | { domain: "charting"; lang: string; plural_forms: string },
                >;
            };
        }

        an object containing translations in the format expected by Translator The signature for the charting locale_data that includes domain, plural_forms, and lang must be provided on the empty string key, '', and only on this key. This type is unfortunately currently not describable in TypeScript.

      Returns void