You can use internationalization to present your site in different languages. The default language is set by modifying the language
setting in Hexo _config.yml
. You can also set multiple languages and modify the order of default languages.
language: en
language:
- zh-CN
- en
If you would like to customize the default translation, you do not need to modify the translation files in the languages
directory. You can override all translations using Data Files.
-
Creat a
languages.yml
insource/_data
. -
Insert following codes: (be careful about the two-space indent)
# language zh-CN: # items post: copyright: # the translation you perfer author: 本文博主 en: menu: schedule: Calendar
The files in the language
directory are automatically generated, you do not need to modify them directly. Please submit translations via Crowdin if you would like to add or improve translation for NexT theme.