Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 492 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 492 Bytes

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.