Internationalization

Choosing Language

Edit site config file, set the value of language to the language you need. For example, English looks like this:

hexo/_config.yml
language: en

NexT now supports following languages:

Language Example Code
Arabic عربي ar
Chinese (Simplified) 简体中文 zh-CN
Chinese (Traditional) 繁體中文 zh-TW
Chinese (Hong Kong) 繁體中文-香港 zh-HK
Dutch Niederländisch nl
English English en
French Français fr
German Deutsch de
Indonesian Indonesia id
Italian Italiano it
Japanese 日本語 ja
Korean 한국어 ko
Persian فارسی fa
Portuguese Português pt
Portuguese (Brazilian) Português (Brazilian) pt-BR
Russian Русский ru
Spanish Español es
Turkish Türk tr
Ukrainian Український uk
Vietnamese Tiếng Việt vi

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.

Multilingual Switcher

next/_config.yml
# Show multilingual switcher in footer.
language_switcher: true

Override Default Translations

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.

  1. Creat a languages.yml in source/_data.

  2. 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

This situation is also available for off-list items. For example, Next uses Theme Inject to introduce the commments systems. You can rename the returned value in chinese as followed:

# language
zh-CN:
# items
post:
comments:
valine: 评论