From 831cc305684b763346a81a7a0dd8b6f694affcdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harry=20Tr=E1=BA=A7n?= Date: Mon, 30 Nov 2020 14:01:24 +0700 Subject: [PATCH] i18n(vi): add vietnamese translation (#17) --- locales/vi.json | 13 +++++++++++++ src/messages.ts | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 locales/vi.json diff --git a/locales/vi.json b/locales/vi.json new file mode 100644 index 0000000..019abaf --- /dev/null +++ b/locales/vi.json @@ -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" +} diff --git a/src/messages.ts b/src/messages.ts index 2a0f348..ac05bbc 100644 --- a/src/messages.ts +++ b/src/messages.ts @@ -2,12 +2,14 @@ import en from '../locales/en.json' import zhCN from '../locales/zh-CN.json' import fr from '../locales/fr.json' import es from '../locales/es.json' +import vi from '../locales/vi.json' export const messages = { en, 'zh-CN': zhCN, fr, es, + vi, } export const locales = Object.keys(messages)