To setup a site with multiple variants, define your publications and applicable metadata as follows:
- Open the siteconfig.json in a text editor.
- Navigate to "locales".
You need to define your publications, organized per locale.
- For every locale, add a copy of the {"loc_id":..."path":"sub_site"}]} section. For example.
- Separate the sections with a comma (,). See the example.
- 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.