Skip to content

Latest commit

 

History

History

locale

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

i18n

This directory is to serve your locale translation files in JSON format.

Setup

Import JSON file in ./index.ts.

import zhCN from "./lang/zh-CN.json";

Register it under messages property.

messages: {
    'en-US': enUS,
    'zh-CN': zhCN,
}

Check out vue-i18n for more details.

If you are using VS Code, i18n Ally is recommended to make the i18n experience better.