i18n(vi): add vietnamese translation (#17)

This commit is contained in:
Harry Trần 2020-11-30 14:01:24 +07:00 committed by GitHub
parent 44808f6a80
commit 831cc30568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

13
locales/vi.json Normal file
View File

@ -0,0 +1,13 @@
{
"button": {
"back": "Quay lại",
"go": "Đi"
},
"intro": {
"desc": "Ý kiến cá nhân Vite Template để bắt đầu",
"dynamic-route": "Bản giới thiệu về dynamic route",
"hi": "Hi, {name}!",
"whats-your-name": "Tên bạn là gì?"
},
"not-found": "Không tìm thấy"
}

View File

@ -2,12 +2,14 @@ import en from '../locales/en.json'
import zhCN from '../locales/zh-CN.json' import zhCN from '../locales/zh-CN.json'
import fr from '../locales/fr.json' import fr from '../locales/fr.json'
import es from '../locales/es.json' import es from '../locales/es.json'
import vi from '../locales/vi.json'
export const messages = { export const messages = {
en, en,
'zh-CN': zhCN, 'zh-CN': zhCN,
fr, fr,
es, es,
vi,
} }
export const locales = Object.keys(messages) export const locales = Object.keys(messages)