From b29940f8cbb452b70f61a45a87894b0c298385dc Mon Sep 17 00:00:00 2001 From: cherrol <575128052@qq.com> Date: Fri, 4 Aug 2023 10:15:31 +0800 Subject: [PATCH 1/7] translation: add zh translation --- docs/locales/zh.json | 148 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 docs/locales/zh.json diff --git a/docs/locales/zh.json b/docs/locales/zh.json new file mode 100644 index 00000000..edcf67b4 --- /dev/null +++ b/docs/locales/zh.json @@ -0,0 +1,148 @@ +{ + "landing": { + "title": "使用基于Tailwind CSS的可定制Vue 3组件库提升您的设计", + "get_started": "开始", + "components": "组件", + "button": "按钮", + "button_text": "开始构建", + "slider": "滑块", + "colorpicker": "颜色选择器", + "colorpicker_text": "支持colord库的颜色选择器", + "textarea": { + "header": "文本框", + "label": "个人简介", + "placeholder": "这个故事开始于..." + }, + "input": { + "header": "输入框", + "label": "姓名", + "placeholder": "输入您的姓名" + }, + "checkboxes": { + "header": "复选框", + "text": "带有自定义样式的复选框", + "checkbox_label_1": "找到一个创意", + "checkbox_label_2": "开始构建", + "checkbox_label_3": "制作用户界面", + "checkbox_label_4": "购买Twitter", + "checkbox_label_5": "使AI有感知能力" + }, + "themes": { + "title": "浅色和深色主题", + "text": "内置深色主题,尝试这个开关", + "toggle_desc": "这个开关也是一个Equal UI组件" + }, + "owntheme": { + "title": "构建您自己的主题", + "subtitle": "使用Equal UI的高级自定义功能,通过Tailwind类自定义用户界面", + "text": "每个组件都有多个变体,您可以在构建和运行时创建自己的变体" + }, + "tag_text": "欢迎!" + }, + "sidebar": { + "notfound": "😞 哎呀,组件未找到。", + "soon": "即将发布", + "search": { + "label": "搜索", + "placeholder1": "搜索", + "placeholder2": "日期选择器", + "placeholder3": "模态框", + "placeholder4": "头像", + "placeholder5": "复选框", + "placeholder6": "工具提示", + "placeholder7": "按钮" + }, + "introduction": "介绍", + "gettingstarted": "入门", + "theming": "主题", + "contribution": "贡献", + "support": "支持", + "button": "按钮", + "divider": "分隔线", + "checkbox": "复选框", + "colorpicker": "颜色选择器", + "datepicker": "日期选择器", + "input": "输入框", + "numberinput": "数字输入框", + "radio": "单选框", + "select": "选择框", + "slider": "滑块", + "switch": "开关", + "textarea": "文本区域", + "toggle": "切换", + "alert": "警告", + "drawer": "抽屉", + "spinner": "加载中", + "loadingbar": "加载进度条", + "modal": "模态框", + "notification": "通知", + "popover": "弹出框", + "progress_bar": "进度条", + "avatar": "头像", + "collapse": "折叠", + "badge": "徽章", + "tag": "标签", + "tabs": "标签页", + "tooltip": "工具提示", + "dropdown": "下拉菜单", + "breadcrumbs": "面包屑", + "steps": "步骤", + "transitions": "过渡", + "directives": "指令" + }, + "sponsoring": { + "title": "赞助", + "first_sponsor": "成为第一个赞助商", + "text": "作为一个由单个人在他们的业余时间维护的项目,您的支持对我们继续改进和更新Equal UI非常重要。如果您有兴趣支持我们的项目并成为赞助商,请与我们联系。我们将非常乐意在我们的网站和社交媒体渠道上公开感谢您的支持。" + }, + "sides": { + "top": "顶部", + "bottom": "底部", + "top-left": "左上", + "top-right": "右上", + "bottom-left": "左下", + "bottom-right": "右下" + }, + "demobox": { + "props": "属性", + "source": "源代码", + "customization": "自定义", + "changes-applied": "在此应用的更改会影响整个网站", + "base": "基础", + "variants": "变体", + "no-variants": "没有内置的变体", + "reset": "恢复默认值" + }, + "examplebox": { + "show-code": "显示代码", + "hide-code": "隐藏代码", + "copy": "复制到剪贴板", + "template": "模板", + "code": "代码" + }, + "support": { + "intro": "非常感谢您对Equal UI的支持!您的支持帮助我们继续开发和维护该项目,同时添加新功能和改进文档。", + "waystosupporttitle": "支持方式", + "viacrypto": "通过加密货币进行财务捐赠。", + "githubstar": "在GitHub上给该仓库点赞并分享。", + "promote": "在社交媒体上推广该项目。", + "review": "在软件包管理器中对该项目进行积极评价。", + "contribute": "通过报告错误、修复问题或实现新功能来贡献给该项目。", + "donationstitle": "捐赠", + "donationstext": "目前您唯一可以支持作者的方式是通过加密货币。所有捐款将用于维护项目、开发时间和其他费用。", + "cardanowallet": "Cardano钱包:", + "eth_wallet": "以太坊钱包:", + "thanks": "非常感谢您对Equal UI的支持!您的支持非常重要,有助于确保项目持续发展和改进。", + "contact": "如果对赞助项目有任何问题,请联系" + }, + "theming": { + "wip": "此页面正在制作中", + "ownthemecopy": "要创建自己的主题,您可以复制其中一个初始主题文件并对其进行修改:", + "owntheme": "或者从头开始创建自己的主题文件", + "full": "包含浅色和深色主题的类", + "light": "包含浅色主题的类", + "dark": "包含深色主题的类" + }, + "improvetranslationtitle": "帮助我们改进翻译", + "improvetranslation_text": "该语言的翻译是从英语自动翻译成您的语言的。\n 您可以帮助改进它。请转到GitHub帮助进行翻译。" +} From 27d11065dc1ff690d9d754521d9b733ea6ea33b2 Mon Sep 17 00:00:00 2001 From: Yan Savinov Date: Fri, 4 Aug 2023 20:18:59 +0700 Subject: [PATCH 2/7] i18n --- docs/plugins/i18n.client.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/plugins/i18n.client.ts b/docs/plugins/i18n.client.ts index a098c157..c545d8de 100644 --- a/docs/plugins/i18n.client.ts +++ b/docs/plugins/i18n.client.ts @@ -1,15 +1,17 @@ import { createI18n } from 'vue-i18n' import en from '../locales/en.json' +import zh from '../locales/zh.json' // @ts-ignore export default defineNuxtPlugin(({ vueApp }) => { const i18n = createI18n({ legacy: false, globalInjection: true, - locale: 'en', + locale: navigator.language.split('-')[0], fallbackLocale: 'en', messages: { en, + zh }, }) From 460dc5372ca9d69f43d9b7e5004e78f989108833 Mon Sep 17 00:00:00 2001 From: cherrol <575128052@qq.com> Date: Wed, 9 Aug 2023 01:25:13 +0800 Subject: [PATCH 3/7] trans: add zh-Hans README --- README_zh-Hans.md | 76 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 README_zh-Hans.md diff --git a/README_zh-Hans.md b/README_zh-Hans.md new file mode 100644 index 00000000..3e3861b1 --- /dev/null +++ b/README_zh-Hans.md @@ -0,0 +1,76 @@ +

+ + + + +

+ + + + +

+

+ +

+ Equal UI +

+ +
+Equal UI 是一个 Vue 3 可拆解的组件库,在 Tailwindcss 之上包含 30+ 个组件 +
+ 探索 Equal UI 文档 +
+ +# 特征 + +- 🔥 Vue 生态系统中最好的视觉效果之一 +- 🌃 内置深色主题 +- 🎨 完全定制 +- 💬 有工具提示、通知、弹出框 +- 👌 轻量级:12KB brotli +- 🔧 包括 30+ 组件 +- 💅 使用你的顺风类 + +# 链接 + + Twitter: [@Yan](https://twitter.com/k0mmsussertod) + +# 安装 + +你需要 [Vue.js](https://v3.vuejs.org/) 版本 3.1+ + +```bash +# npm +npm install equal-vue +``` + +```bash +# yarn +yarn add equal-vue +``` + +# 用法 + +## 所有组件 + +```js +import { createApp } from 'vue' +import Equal from 'equal-vue' +import Config from 'equal-vue/dist/theme/full' // or light / dark theme + +createApp.use(Equal, Config) +``` + +## 或单个组件 + +```js +import { createApp } from 'vue' +import { Button, Switch } from 'equal-vue' +import Config from 'equal-vue/dist/theme/full' // or light / dark theme + +createApp.use(Button, Config).use(Switch, Config) +``` + +# License + +[MIT](https://raw.githubusercontent.com/Equal-UI/Equal/master/LICENSE) From ecacfa98e70972522322993f96e1bd5bcf33b20d Mon Sep 17 00:00:00 2001 From: cherrol <575128052@qq.com> Date: Wed, 9 Aug 2023 01:30:24 +0800 Subject: [PATCH 4/7] trans: add language zh-Hans link --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 10dbf716..0ac10b67 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,9 @@ Equal UI is a Vue 3 hackable components library with 30+ components on top of Ta Explore Equal UI docs +--- +中文简体 + # Features - 🔥 One of the best visuals in Vue ecosystem From c1b162162d469c9e259ee3b2de49a0e652bcbaa5 Mon Sep 17 00:00:00 2001 From: cherrol <575128052@qq.com> Date: Wed, 9 Aug 2023 01:31:32 +0800 Subject: [PATCH 5/7] trans: update zh-Hans README --- README_zh-Hans.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README_zh-Hans.md b/README_zh-Hans.md index 3e3861b1..84d034d5 100644 --- a/README_zh-Hans.md +++ b/README_zh-Hans.md @@ -71,6 +71,6 @@ import Config from 'equal-vue/dist/theme/full' // or light / dark theme createApp.use(Button, Config).use(Switch, Config) ``` -# License +# 许可证 [MIT](https://raw.githubusercontent.com/Equal-UI/Equal/master/LICENSE) From 49046f7dcc2eb3f9d580c772a782d549b59ff07e Mon Sep 17 00:00:00 2001 From: cherrol <575128052@qq.com> Date: Wed, 9 Aug 2023 01:39:48 +0800 Subject: [PATCH 6/7] clean&trans: clean useless file & rename README_zh-Hans.md -> README_zh-hans.md --- README_zh-Hans.md => README_zh-hans.md | 0 docs/locales/zh.json | 148 ------------------------- 2 files changed, 148 deletions(-) rename README_zh-Hans.md => README_zh-hans.md (100%) delete mode 100644 docs/locales/zh.json diff --git a/README_zh-Hans.md b/README_zh-hans.md similarity index 100% rename from README_zh-Hans.md rename to README_zh-hans.md diff --git a/docs/locales/zh.json b/docs/locales/zh.json deleted file mode 100644 index edcf67b4..00000000 --- a/docs/locales/zh.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "landing": { - "title": "使用基于Tailwind CSS的可定制Vue 3组件库提升您的设计", - "get_started": "开始", - "components": "组件", - "button": "按钮", - "button_text": "开始构建", - "slider": "滑块", - "colorpicker": "颜色选择器", - "colorpicker_text": "支持colord库的颜色选择器", - "textarea": { - "header": "文本框", - "label": "个人简介", - "placeholder": "这个故事开始于..." - }, - "input": { - "header": "输入框", - "label": "姓名", - "placeholder": "输入您的姓名" - }, - "checkboxes": { - "header": "复选框", - "text": "带有自定义样式的复选框", - "checkbox_label_1": "找到一个创意", - "checkbox_label_2": "开始构建", - "checkbox_label_3": "制作用户界面", - "checkbox_label_4": "购买Twitter", - "checkbox_label_5": "使AI有感知能力" - }, - "themes": { - "title": "浅色和深色主题", - "text": "内置深色主题,尝试这个开关", - "toggle_desc": "这个开关也是一个Equal UI组件" - }, - "owntheme": { - "title": "构建您自己的主题", - "subtitle": "使用Equal UI的高级自定义功能,通过Tailwind类自定义用户界面", - "text": "每个组件都有多个变体,您可以在构建和运行时创建自己的变体" - }, - "tag_text": "欢迎!" - }, - "sidebar": { - "notfound": "😞 哎呀,组件未找到。", - "soon": "即将发布", - "search": { - "label": "搜索", - "placeholder1": "搜索", - "placeholder2": "日期选择器", - "placeholder3": "模态框", - "placeholder4": "头像", - "placeholder5": "复选框", - "placeholder6": "工具提示", - "placeholder7": "按钮" - }, - "introduction": "介绍", - "gettingstarted": "入门", - "theming": "主题", - "contribution": "贡献", - "support": "支持", - "button": "按钮", - "divider": "分隔线", - "checkbox": "复选框", - "colorpicker": "颜色选择器", - "datepicker": "日期选择器", - "input": "输入框", - "numberinput": "数字输入框", - "radio": "单选框", - "select": "选择框", - "slider": "滑块", - "switch": "开关", - "textarea": "文本区域", - "toggle": "切换", - "alert": "警告", - "drawer": "抽屉", - "spinner": "加载中", - "loadingbar": "加载进度条", - "modal": "模态框", - "notification": "通知", - "popover": "弹出框", - "progress_bar": "进度条", - "avatar": "头像", - "collapse": "折叠", - "badge": "徽章", - "tag": "标签", - "tabs": "标签页", - "tooltip": "工具提示", - "dropdown": "下拉菜单", - "breadcrumbs": "面包屑", - "steps": "步骤", - "transitions": "过渡", - "directives": "指令" - }, - "sponsoring": { - "title": "赞助", - "first_sponsor": "成为第一个赞助商", - "text": "作为一个由单个人在他们的业余时间维护的项目,您的支持对我们继续改进和更新Equal UI非常重要。如果您有兴趣支持我们的项目并成为赞助商,请与我们联系。我们将非常乐意在我们的网站和社交媒体渠道上公开感谢您的支持。" - }, - "sides": { - "top": "顶部", - "bottom": "底部", - "top-left": "左上", - "top-right": "右上", - "bottom-left": "左下", - "bottom-right": "右下" - }, - "demobox": { - "props": "属性", - "source": "源代码", - "customization": "自定义", - "changes-applied": "在此应用的更改会影响整个网站", - "base": "基础", - "variants": "变体", - "no-variants": "没有内置的变体", - "reset": "恢复默认值" - }, - "examplebox": { - "show-code": "显示代码", - "hide-code": "隐藏代码", - "copy": "复制到剪贴板", - "template": "模板", - "code": "代码" - }, - "support": { - "intro": "非常感谢您对Equal UI的支持!您的支持帮助我们继续开发和维护该项目,同时添加新功能和改进文档。", - "waystosupporttitle": "支持方式", - "viacrypto": "通过加密货币进行财务捐赠。", - "githubstar": "在GitHub上给该仓库点赞并分享。", - "promote": "在社交媒体上推广该项目。", - "review": "在软件包管理器中对该项目进行积极评价。", - "contribute": "通过报告错误、修复问题或实现新功能来贡献给该项目。", - "donationstitle": "捐赠", - "donationstext": "目前您唯一可以支持作者的方式是通过加密货币。所有捐款将用于维护项目、开发时间和其他费用。", - "cardanowallet": "Cardano钱包:", - "eth_wallet": "以太坊钱包:", - "thanks": "非常感谢您对Equal UI的支持!您的支持非常重要,有助于确保项目持续发展和改进。", - "contact": "如果对赞助项目有任何问题,请联系" - }, - "theming": { - "wip": "此页面正在制作中", - "ownthemecopy": "要创建自己的主题,您可以复制其中一个初始主题文件并对其进行修改:", - "owntheme": "或者从头开始创建自己的主题文件", - "full": "包含浅色和深色主题的类", - "light": "包含浅色主题的类", - "dark": "包含深色主题的类" - }, - "improvetranslationtitle": "帮助我们改进翻译", - "improvetranslation_text": "该语言的翻译是从英语自动翻译成您的语言的。\n 您可以帮助改进它。请转到GitHub帮助进行翻译。" -} From dc021c2b9f34545cf89cc47f17891e3f8b51bf41 Mon Sep 17 00:00:00 2001 From: cherrol <575128052@qq.com> Date: Wed, 9 Aug 2023 01:40:31 +0800 Subject: [PATCH 7/7] fix: language zh-hans link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0ac10b67..48aca85d 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Equal UI is a Vue 3 hackable components library with 30+ components on top of Ta --- -中文简体 +中文简体 # Features