Skip to content

Commit

Permalink
🌐 Add Vietnamese language (#314)
Browse files Browse the repository at this point in the history
* Add files via upload

* Create translation.json

* Create messages.json
  • Loading branch information
RenjiYuusei authored Oct 24, 2024
1 parent 9f1003c commit 50c7a36
Show file tree
Hide file tree
Showing 3 changed files with 375 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build/assets/_locales/vi/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"i18n": {
"message": "I18n"
},
"scriptcat": {
"message": "ScriptCat"
},
"scriptcat_description": {
"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."
}
}
2 changes: 2 additions & 0 deletions src/locales/locales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import dayjs from "dayjs";
import relativeTime from "dayjs/plugin/relativeTime";
import { Metadata } from "@App/app/repo/scripts";
import enUS from "./en/translation.json";
import viVN from "./vi/translation.json";
import zhCN from "./zh-CN/translation.json";
import zhTW from "./zh-TW/translation.json";
import achUG from "./ach-UG/translation.json";
Expand All @@ -18,6 +19,7 @@ i18n.use(initReactI18next).init({
},
resources: {
"en-US": { title: "English", translation: enUS },
"vi-VN": { title: "Tiếng Việt", translation: viVN },
"zh-CN": { title: "简体中文", translation: zhCN },
"zh-TW": { title: "繁体中文", translation: zhTW },
"ach-UG": { title: "伪语言", translation: achUG },
Expand Down
Loading

0 comments on commit 50c7a36

Please sign in to comment.