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: { [key: string]: [null, ...string[]] } & {
                  "": { domain: "charting"; lang: string; plural_forms: string };
              };
          };
      }

      an object containing translations in the format expected by BG.locale.Translator

    Returns void