From 1c42b6365cab71e1400e94178d39a7592aa47726 Mon Sep 17 00:00:00 2001
From: HakuGuen <80277109+HakuGuen@users.noreply.github.com>
Date: Fri, 01 Mar 2024 00:14:20 +0000
Subject: [PATCH] feat(i18n): add Vietnamese translation (#950)
---
quartz/i18n/index.ts | 2 +
quartz/i18n/locales/vi-VN.ts | 83 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 85 insertions(+), 0 deletions(-)
diff --git a/quartz/i18n/index.ts b/quartz/i18n/index.ts
index 38d3562..b97368d 100644
--- a/quartz/i18n/index.ts
+++ b/quartz/i18n/index.ts
@@ -12,6 +12,7 @@
import ru from "./locales/ru-RU"
import ko from "./locales/ko-KR"
import zh from "./locales/zh-CN"
+import vi from "./locales/vi-VN"
export const TRANSLATIONS = {
"en-US": en,
@@ -48,6 +49,7 @@
"ru-RU": ru,
"ko-KR": ko,
"zh-CN": zh,
+ "vi-VN": vi,
} as const
export const defaultTranslation = "en-US"
diff --git a/quartz/i18n/locales/vi-VN.ts b/quartz/i18n/locales/vi-VN.ts
new file mode 100644
index 0000000..b72ced4
--- /dev/null
+++ b/quartz/i18n/locales/vi-VN.ts
@@ -0,0 +1,83 @@
+import { Translation } from "./definition"
+
+export default {
+ propertyDefaults: {
+ title: "Không có tiêu đề",
+ description: "Không có mô tả được cung cấp",
+ },
+ components: {
+ callout: {
+ note: "Ghi Chú",
+ abstract: "Tóm Tắt",
+ info: "Thông tin",
+ todo: "Cần Làm",
+ tip: "Gợi Ý",
+ success: "Thành Công",
+ question: "Nghi Vấn",
+ warning: "Cảnh Báo",
+ failure: "Thất Bại",
+ danger: "Nguy Hiểm",
+ bug: "Lỗi",
+ example: "Ví Dụ",
+ quote: "Trích Dẫn",
+ },
+ backlinks: {
+ title: "Liên Kết Ngược",
+ noBacklinksFound: "Không có liên kết ngược được tìm thấy",
+ },
+ themeToggle: {
+ lightMode: "Sáng",
+ darkMode: "Tối",
+ },
+ explorer: {
+ title: "Trong bài này",
+ },
+ footer: {
+ createdWith: "Được tạo bởi",
+ },
+ graph: {
+ title: "Biểu Đồ",
+ },
+ recentNotes: {
+ title: "Bài viết gần đây",
+ seeRemainingMore: ({ remaining }) => `Xem ${remaining} thêm →`,
+ },
+ transcludes: {
+ transcludeOf: ({ targetSlug }) => `Bao gồm ${targetSlug}`,
+ linkToOriginal: "Liên Kết Gốc",
+ },
+ search: {
+ title: "Tìm Kiếm",
+ searchBarPlaceholder: "Tìm kiếm thông tin",
+ },
+ tableOfContents: {
+ title: "Bảng Nội Dung",
+ },
+ contentMeta: {
+ readingTime: ({ minutes }) => `đọc ${minutes} phút`,
+ },
+ },
+ pages: {
+ rss: {
+ recentNotes: "Những bài gần đây",
+ lastFewNotes: ({ count }) => `${count} Bài gần đây`,
+ },
+ error: {
+ title: "Không Tìm Thấy",
+ notFound: "Trang này được bảo mật hoặc không tồn tại.",
+ },
+ folderContent: {
+ folder: "Thư Mục",
+ itemsUnderFolder: ({ count }) =>
+ count === 1 ? "1 mục trong thư mục này." : `${count} mục trong thư mục này.`,
+ },
+ tagContent: {
+ tag: "Thẻ",
+ tagIndex: "Thẻ Mục Lục",
+ itemsUnderTag: ({ count }) =>
+ count === 1 ? "1 mục gắn thẻ này." : `${count} mục gắn thẻ này.`,
+ showingFirst: ({ count }) => `Hiển thị trước ${count} thẻ.`,
+ totalTags: ({ count }) => `Tìm thấy ${count} thẻ tổng cộng.`,
+ },
+ },
+} as const satisfies Translation
--
Gitblit v1.10.0