From 493e6a5b29011db3381c5317fc60fd09dda211f6 Mon Sep 17 00:00:00 2001 From: Eyelly Wu Date: Wed, 7 Jun 2023 22:23:21 +0800 Subject: [PATCH] docs: update --- README.md | 2 +- README_zh-CN.md | 2 +- docs/dist/CHANGELOG.md | 8 +++-- docs/dist/CHANGELOG_zh-CN.md | 8 +++-- docs/dist/CONTRIBUTION_GUIDELINES.md | 2 +- docs/dist/CONTRIBUTION_GUIDELINES_zh-CN.md | 2 +- docs/src/changelog/index.tsx | 4 ++- docs/src/contribution-guidelines/index.tsx | 4 ++- docs/src/i18n/en.json | 6 ++-- docs/src/readme/Principle.tsx | 4 ++- docs/src/readme/Top.tsx | 37 ++----------------- docs/src/utils.tsx | 42 +++++++++++++++++++--- 12 files changed, 69 insertions(+), 52 deletions(-) diff --git a/README.md b/README.md index 9396814..ceb2f93 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ t(`hello world`) /** Support Variable Interpolation */ t('hello {0}', 'developer friends'), -t('This is {0}, welcome to {1}. If you think {2}, please give {3} your support', ' `i18n-pro` ', 'use', `it's good`, ' ⭐️ ') +t('This is {0}, welcome to {1}. If you think {2}, please give {3} your support', ' `i18n-pro` ', 'use', `it's helpful for you`, ' ⭐️ ') /** Interpolation Variable type tag need to be used with corresponding formatting callbacks */ diff --git a/README_zh-CN.md b/README_zh-CN.md index 7b988ca..db89eef 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -74,7 +74,7 @@ t(`hello world`) /** 支持变量插值 */ t('hello {0}', '开发者朋友们'), -t('这是{0},欢迎{1},如果你觉得{2},请给予{3}支持', ' `i18n-pro` ', '使用', `不错`, ' ⭐️ ') +t('这是{0},欢迎{1},如果你觉得{2},请给予{3}支持', ' `i18n-pro` ', '使用', `对你有帮助`, ' ⭐️ ') /** 插值变量类型标记,需配合对应的格式化回调 */ diff --git a/docs/dist/CHANGELOG.md b/docs/dist/CHANGELOG.md index d834013..225bffa 100644 --- a/docs/dist/CHANGELOG.md +++ b/docs/dist/CHANGELOG.md @@ -1,10 +1,14 @@ # Changelog + +English | [简体中文](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/CHANGELOG_zh-CN.md) + +
Table of Contents -   [[2.0.0] - 2023-0x-xx](#200---2023-0x-xx)
+   [[2.0.0] - 2023-06-07](#200---2023-06-07)
    [Command Line Tool](#200-command-line-tool)
      [Changed](#200-command-line-tool-changed)
      [Added](#200-command-line-tool-added)
@@ -61,7 +65,7 @@
-## [2.0.0] - 2023-0x-xx +## [2.0.0] - 2023-06-07

Command Line Tool

diff --git a/docs/dist/CHANGELOG_zh-CN.md b/docs/dist/CHANGELOG_zh-CN.md index 2054e6c..f3f7bae 100644 --- a/docs/dist/CHANGELOG_zh-CN.md +++ b/docs/dist/CHANGELOG_zh-CN.md @@ -1,10 +1,14 @@ # 更新日志 + +[English](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/CHANGELOG.md) | 简体中文 + +
目录 -   [[2.0.0] - 2023-0x-xx](#200---2023-0x-xx)
+   [[2.0.0] - 2023-06-07](#200---2023-06-07)
    [命令行工具](#200-命令行工具)
      [Changed](#200-命令行工具-changed)
      [Added](#200-命令行工具-added)
@@ -61,7 +65,7 @@
-## [2.0.0] - 2023-0x-xx +## [2.0.0] - 2023-06-07

命令行工具

diff --git a/docs/dist/CONTRIBUTION_GUIDELINES.md b/docs/dist/CONTRIBUTION_GUIDELINES.md index 6716e77..044f4fd 100644 --- a/docs/dist/CONTRIBUTION_GUIDELINES.md +++ b/docs/dist/CONTRIBUTION_GUIDELINES.md @@ -2,6 +2,6 @@ # Contribution Guidelines First of all, a warm welcome to those who want to participate in this project 👏🏻👏🏻👏🏻 -But sorry, the current document is still being planned and improved... (maybe you can start from this document) +But sorry, the current document is still being planned and improved... (Maybe you can start from this document, writing documents is not an easy task 😂) Finally, please don't lose your enthusiasm, please continue to pay attention! \ No newline at end of file diff --git a/docs/dist/CONTRIBUTION_GUIDELINES_zh-CN.md b/docs/dist/CONTRIBUTION_GUIDELINES_zh-CN.md index 9a27fcd..4c40e13 100644 --- a/docs/dist/CONTRIBUTION_GUIDELINES_zh-CN.md +++ b/docs/dist/CONTRIBUTION_GUIDELINES_zh-CN.md @@ -2,6 +2,6 @@ # 贡献指南 首先,对各位想要参与到本项目来表示热烈欢迎👏🏻👏🏻👏🏻 -但是抱歉的是,当前文档还在规划完善中...(也许可以从该文档开始) +但是抱歉的是,当前文档还在规划完善中...(也许你可以从该文档开始,写文档绝不是一件容易的事😂) 最后,请不要丢失你的热情,请持续保持关注! \ No newline at end of file diff --git a/docs/src/changelog/index.tsx b/docs/src/changelog/index.tsx index 6d64273..d47934d 100644 --- a/docs/src/changelog/index.tsx +++ b/docs/src/changelog/index.tsx @@ -6,6 +6,7 @@ import { getTranslationText, getVariableInterpolation, initI18n, + renderLanguage, } from '../utils' import Template from './ChangeLog' @@ -294,7 +295,7 @@ function V_2_0_0() { return (