Slim-Website icon indicating copy to clipboard operation
Slim-Website copied to clipboard

Gh pages l10n

Open jamjan opened this issue 4 years ago • 0 comments

In order to add new language

  • Add new index (language_code) to l10n.languages in _config.yml file.
  • Update document index list in defaults in _config.yml file.
  • Translations are organized by language code as t.{{l10nCurrentPageLanguageCode}}.index in _config.yml file.

Notes:

  • Sites in default language should use new l10n-link tag otherwise corresponding translated pages will not be found.
  • Variable l10nCurrentPageLanguageCode keeps the current page language which is taken from page.l10n-language
  • Translated pages should use l10n-link and l10n-language tags.
  • The famfamfam flags images are kept in ./public/assets/images/flags/.
  • Translated documents could be kept in /<language_code> directory.
  • If page.l10n-language is not present then it defaults to l10nDefaultLanguageCode

jamjan avatar Sep 11 '21 00:09 jamjan