Skip to content

Commit 50c7a36

Browse files
authored
🌐 Add Vietnamese language (#314)
* Add files via upload * Create translation.json * Create messages.json
1 parent 9f1003c commit 50c7a36

File tree

3 files changed

+375
-0
lines changed

3 files changed

+375
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"i18n": {
3+
"message": "I18n"
4+
},
5+
"scriptcat": {
6+
"message": "ScriptCat"
7+
},
8+
"scriptcat_description": {
9+
"message": "Scriptcat, Một Trình Quản Lý Userscript, Hỗ Trợ Tập Lệnh Nền, Tập Lệnh Crontab Và Userscript. Nó Có Thể Viết Tập Lệnh Để Giúp Bạn Tự Động Xử Lý Mọi Thứ Hàng Ngày."
10+
}
11+
}

src/locales/locales.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import dayjs from "dayjs";
44
import relativeTime from "dayjs/plugin/relativeTime";
55
import { Metadata } from "@App/app/repo/scripts";
66
import enUS from "./en/translation.json";
7+
import viVN from "./vi/translation.json";
78
import zhCN from "./zh-CN/translation.json";
89
import zhTW from "./zh-TW/translation.json";
910
import achUG from "./ach-UG/translation.json";
@@ -18,6 +19,7 @@ i18n.use(initReactI18next).init({
1819
},
1920
resources: {
2021
"en-US": { title: "English", translation: enUS },
22+
"vi-VN": { title: "Tiếng Việt", translation: viVN },
2123
"zh-CN": { title: "简体中文", translation: zhCN },
2224
"zh-TW": { title: "繁体中文", translation: zhTW },
2325
"ach-UG": { title: "伪语言", translation: achUG },

0 commit comments

Comments
 (0)