654 B
654 B
Description
This document describes how to add new languages.
Process
Lets say that we want to add a new Armenian translation of the page.
- Figure out the right 2-lettter ISO-639-1 code:
- https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
- Details: https://hexo.io/docs/configuration.html
- Create a new translation file:
themes/navy/languages/hy.yml
- Update the list and names of languages in:
source/_data/languages.yml
- Add the new language to the
language
list in both:
_config.dev.yml
and_config.prod.yml
- Build the project using
yarn run build
- Verify you see no templating errors.