- In
config\_default\languages.toml
, add your language. - In
config\_default\
, copyconfig\_default\menu.en.toml
intoconfig\_default\menu.XX.toml
(where XX is your language code), translatename =
and prefix urls with/XX/
. - In
i18n\
copyen.toml
intoXX.toml
(where XX is your language code) and translate the strings. - In
layouts\_default\single.html
copy the{{ if eq .Language.Lang "fr" }}...{{ end }}
and replace"fr"
by"XX"
(where XX is your language code) and "Voir en Français" by the translation of "See in [your language]" - Copy
content\base-l10n\
intocontent\XX\
(where XX is your language code)
You can start translating the files that are inside content\XX\
:
- Copy the English version of the file you wish to translate into
content\XX\
- If the header of the file contains "
aliases:
", you must remove the line with "aliases:
" - Do not change
date
orlastmod
: they must correspond to the the English version (and not when the translation occured: it's used to detect when a translation is out-of-sync)
You can check the translation status using https://letsencrypt.org/i18n/