Internationalization

Contents

The default content storage directory is <base dir>/content/post/, if you want to enable multi-language, you need to create a new subdirectory named after the language code under this directory and place the content under this subdirectory. When starting the preview, specify the language with the --lang parameter:

# Specify by parameter
everkm-publish serve --lang zh_CN

# Or specify it via an environment variable
export EVERKM_LANG=zh_CN
everkm-publish serve 

For example, to support zh_CN, en_US two languages, the directory structure is as follows

<base dir>/content
└── post
    ├── en_US
    │   ├── 你好.md
    └── zh_CN
        ├── hello.md

Templates

See also 👉 Custom Template