From 79b4d06ab8c1a25a4e8a097ed3b618bf23dee46c Mon Sep 17 00:00:00 2001 From: enochgao Date: Thu, 9 May 2024 18:13:57 +0800 Subject: [PATCH] feat: add i18n zh_cn --- packages/viewer/src/bindings/i18n.ts | 138 +++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) diff --git a/packages/viewer/src/bindings/i18n.ts b/packages/viewer/src/bindings/i18n.ts index b9ee92462..564b851b5 100644 --- a/packages/viewer/src/bindings/i18n.ts +++ b/packages/viewer/src/bindings/i18n.ts @@ -156,6 +156,143 @@ const translations = { TIP_Print: "Print (P)", }, }, + "zh-CN": { + translation: { + UI_LNG: "zh-CN", + TIP_UI_Language: "语言", + CONFIRM_DELETE: "你确定要删除它吗?", + CONFIRM_REMOVE: "你确定要移除它吗?", + CONFIRM_REMOVE_ALL: "你确定要全部移除吗?", + Input_: "请输入文档URL或HTML代码", + Book_Mode: "图书模式", + Render_All_Pages: "渲染所有页面", + Apply: "应用", + Supported_document_types_: "Supported document types:", + HTML_documents_: "HTML documents, with CSS for paged media", + Book_like_publications_: "Book-like publications, with Table of Contents", + Web_publications_: + "Web publications (a collection of HTML documents): specify URL of the first HTML or the manifest file.", + Unzipped_EPUB_: + "Unzipped EPUB: specify URL of OPF file or top directory of the unzipped EPUB files.", + Notes_: "Notes:", + GitHub_: + "GitHub and Gist URLs can be directly specified. Vivliostyle loads raw github/gist content when such URL is specified.", + WARN_Mixed_Content_: + "⚠️Mixed Content (“http:” URL is specified to “https:” Vivliostyle Viewer) is usually blocked by browser.", + WARN_Cross_Origin_: + "⚠️Cross-Origin (request to different domain) is usually blocked by browser unless the server is configured to allow Cross-Origin Resource Sharing (CORS).", + URL_parameter_options_: "URL parameter options:", + document_URL: "document URL", + default_: "(default)", + for_Book_like_: "for Book-like publications", + DESC_Book_Mode_: + "When an HTML document URL is specified, a series of HTML documents linked from the publication manifest or Table of Contents (e.g., marked up with '