feat: add Vietnamese translation (#548)
Some checks failed
Code quality / quality (push) Failing after 11s
Build and Check / Astro Check for Node.js 22 (push) Failing after 6s
Build and Check / Astro Check for Node.js 23 (push) Failing after 5s
Build and Check / Astro Build for Node.js 22 (push) Failing after 4s
Build and Check / Astro Build for Node.js 23 (push) Failing after 5s

* Create vi.ts

Create i18n Vietnamese translation file.

* Update translation.ts

Added Vietnamese language support.

* Update config.ts

Add Vietnamese (vi) to be a possible value for the `lang` key.

* Create README.vi.md

Created Vietnamese version of README.

* Update README.md

Added navigation/link to Vietnamese version of README.

* Update README.md

fixed a mistake
This commit is contained in:
Yapper
2025-07-27 11:14:43 +07:00
committed by GitHub
parent 2b9e9ff903
commit 4382cdcc08
5 changed files with 128 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ import { es } from "./languages/es";
import { ja } from "./languages/ja";
import { ko } from "./languages/ko";
import { th } from "./languages/th";
import { vi } from "./languages/vi";
import { zh_CN } from "./languages/zh_CN";
import { zh_TW } from "./languages/zh_TW";
@@ -28,6 +29,8 @@ const map: { [key: string]: Translation } = {
ko_kr: ko,
th: th,
th_th: th,
vi: vi,
vi_vn: vi,
};
export function getTranslation(lang: string): Translation {