This directory is to serve your locale translation files in JSON format.
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.