Skip to content

Commit 7c73dd1

Browse files
torn4dom4nHiDeoodelucis
authored
i18n(vi): add Vietnames translation for Starlight UI (#807)
Co-authored-by: HiDeoo <[email protected]> Co-authored-by: Chris Swithinbank <[email protected]>
1 parent 372ec96 commit 7c73dd1

File tree

4 files changed

+30
-1
lines changed

4 files changed

+30
-1
lines changed

.changeset/good-ways-jump.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@astrojs/starlight": patch
3+
---
4+
5+
Add Vietnamese translations for Starlight UI

docs/src/content/docs/guides/i18n.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ If a translation is not yet available for a language, Starlight will show reader
143143

144144
In addition to hosting translated content files, Starlight allows you to translate the default UI strings (e.g. the "On this page" heading in the table of contents) so that your readers can experience your site entirely in the selected language.
145145

146-
English, Czech, French, German, Italian, Japanese, Portuguese, Dutch, Danish, Spanish, Turkish, Arabic, Norwegian, Farsi, Hebrew, Simplified Chinese, Korean, Indonesian, Russian, and Swedish translated UI strings are provided out of the box, and we welcome [contributions to add more default languages](https://github.com/withastro/starlight/blob/main/CONTRIBUTING.md).
146+
English, Czech, French, German, Italian, Japanese, Portuguese, Dutch, Danish, Spanish, Turkish, Arabic, Norwegian, Farsi, Hebrew, Simplified Chinese, Korean, Indonesian, Russian, Swedish, and Vietnamese translated UI strings are provided out of the box, and we welcome [contributions to add more default languages](https://github.com/withastro/starlight/blob/main/CONTRIBUTING.md).
147147

148148
You can provide translations for additional languages you support — or override our default labels — via the `i18n` data collection.
149149

packages/starlight/translations/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import zh from './zh.json';
1919
import ko from './ko.json';
2020
import sv from './sv.json';
2121
import ru from './ru.json';
22+
import vi from './vi.json';
2223

2324
const { parse } = builtinI18nSchema();
2425

@@ -44,5 +45,6 @@ export default Object.fromEntries(
4445
ko,
4546
sv,
4647
ru,
48+
vi,
4749
}).map(([key, dict]) => [key, parse(dict)])
4850
);
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"skipLink.label": "Bỏ qua nội dung",
3+
"search.label": "Tìm kiếm",
4+
"search.shortcutLabel": "(Nhấn / để Tìm kiếm)",
5+
"search.cancelLabel": "Thoát",
6+
"search.devWarning": "Tìm kiếm không khả dụng khi đang trong môi trường lập trình. \nThử xuất bản website và tìm kiếm.",
7+
"themeSelect.accessibleLabel": "Chọn giao diện",
8+
"themeSelect.dark": "Tối",
9+
"themeSelect.light": "Sáng",
10+
"themeSelect.auto": "Tự động",
11+
"languageSelect.accessibleLabel": "Chọn ngôn ngữ",
12+
"menuButton.accessibleLabel": "Menu",
13+
"sidebarNav.accessibleLabel": "Chính",
14+
"tableOfContents.onThisPage": "Tóm tắt",
15+
"tableOfContents.overview": "Tổng quát",
16+
"i18n.untranslatedContent": "Nội dung này không tồn tại trong ngôn ngữ của bạn",
17+
"page.editLink": "Chỉnh sửa trang",
18+
"page.lastUpdated": "Cập nhật lần cuối:",
19+
"page.previousLink": "Tiếp",
20+
"page.nextLink": "Trước",
21+
"404.text": "Không tìm thấy trang. Kiểm tra URL hoặc thử sử dụng thanh tìm kiếm."
22+
}

0 commit comments

Comments
 (0)