Slim-Website
Slim-Website copied to clipboard
Gh pages l10n
In order to add new language
- Add new index (language_code) to
l10n.languagesin _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-linktag otherwise corresponding translated pages will not be found. - Variable
l10nCurrentPageLanguageCodekeeps the current page language which is taken frompage.l10n-language - Translated pages should use
l10n-linkandl10n-languagetags. - The
famfamfamflags images are kept in./public/assets/images/flags/. - Translated documents could be kept in
/<language_code> directory. - If
page.l10n-languageis not present then it defaults tol10nDefaultLanguageCode