Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Vietnamese language #811

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy

on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Dashboard code
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: latest
- name: Setup Nodejs
uses: actions/setup-node@v3
with:
node-version: '18.18.0'
cache: pnpm
- name: Install package and build
run: |
pnpm install --frozen-lockfile
pnpm build
- name: Deploy
uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: gh-pages
build_dir: ./dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy

on:
push:
branches:
- patch-2
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Dashboard code
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: latest
- name: Setup Nodejs
uses: actions/setup-node@v3
with:
node-version: '18.18.0'
cache: pnpm
- name: Install package and build
run: |
pnpm install --frozen-lockfile
pnpm build
- name: Deploy
uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: gh-pages
build_dir: public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42 changes: 42 additions & 0 deletions src/i18n/vi.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
export const data = {
Overview: 'Tổng quan',
Proxies: 'Sự uỷ quyền (PROXY)',
Rules: 'Quy tắc',
Conns: 'Nhược điểm',
Config: 'Cấu hình',
Logs: 'Nhật ký',
Upload: 'Tải lên',
Download: 'Tải xuống',
'Upload Total': 'Tổng số tải lên',
'Download Total': 'Tổng số tải xuống',
'Active Connections': 'Kết nối đang hoạt động',
'Pause Refresh': 'Tạm dừng làm mới',
'Resume Refresh': 'Tiếp tục làm mới',
Up: 'lên',
Down: 'Xuống',
'Test Latency': 'Độ trễ kiểm tra',
settings: 'cài đặt',
sort_in_grp: 'Sắp xếp theo nhóm',
hide_unavail_proxies: 'Ẩn proxy không có sẵn',
auto_close_conns: 'Tự động đóng các kết nối cũ',
order_natural: 'Thứ tự gốc trong tệp cấu hình',
order_latency_asc: 'Theo độ trễ từ nhỏ đến lớn',
order_latency_desc: 'Theo độ trễ từ lớn đến nhỏ',
order_name_asc: 'Theo tên theo bảng chữ cái (A-Z)',
order_name_desc: 'Theo tên theo bảng chữ cái (Z-A)',
Connections: 'Kết nối',
current_backend: 'Phần cuối hiện tại',
Active: 'Đang hoạt động',
switch_backend: 'Chuyển đổi phụ trợ',
Closed: 'Đã đóng',
switch_theme: 'Chuyển chủ đề',
theme: 'Giao diện',
about: 'Giới thiệu @Ohoang7',
no_logs: 'Chưa có nhật ký nào, hãy chờ nhé...',
chart_style: 'Kiểu biểu đồ',
latency_test_url: 'Kiểm tra độ trễ URL',
lang: 'Ngôn ngữ',
update_all_rule_provider: 'Cập nhật tất cả các nhà cung cấp quy tắc',
update_all_proxy_provider: 'Cập nhật tất cả các nhà cung cấp proxy',
dark_mode_pure_black_toggle_label: 'Sử dụng màu đen thuần khiết ở chế độ tối',
};
4 changes: 4 additions & 0 deletions src/misc/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ const LngBackend = {
case 'zh-CN':
p = import('src/i18n/zh');
break;
case 'vi':
case 'vi-VN':
p = import('src/i18n/vi');
break;
case 'en':
default:
p = import('src/i18n/en');
Expand Down