Define locales in siteconfig.json - On Premises 6.4

Author-it Knowledge Center

To setup a site with multiple variants, define your publications and applicable metadata as follows:

  1. Open the siteconfig.json in a text editor.
  2. Navigate to "locales".

    You need to define your publications, organized per locale.

  3. For every locale, add a copy of the {"loc_id":..."path":"sub_site"}]} section. For example.

  4. Separate the sections with a comma (,). See the example.

  5. Define for every locale:
    • loc_id: must be a unique (integer) number per locale
    • loc_description: an internal name for the locale
    • loc_google: Google based locale code: this can be the same as the locale code that is used by Author-it Localize. For example, both 'de' or 'de_DE' will work for German.
    • loc_ait: the locale code that Author-it Localize uses.

    • loc_label: defines the text above the language selection box for every locale. Example values include 'Locale', 'Sprache', 'Langue'.
    • loc_language: the language name as it shows in the Magellan interface. Example values include 'English', 'Deutsch', 'Français'.
    • filter_labels: here you define metadata to get specific variants in the output. In case you only use locale variants, skip the filter labels.
    • publications: links to the specific path where your publication is stored.