From b13123d84cbffd427d6c123cf734ba7465ae4b2e Mon Sep 17 00:00:00 2001 From: Eyelly Wu Date: Wed, 7 Jun 2023 22:56:24 +0800 Subject: [PATCH] chore: release 2.0.0 --- README.md | 20 ++++++++++---------- README_zh-CN.md | 20 ++++++++++---------- docs/dist/API.md | 2 +- docs/dist/API_zh-CN.md | 2 +- docs/dist/CHANGELOG.md | 4 ++-- docs/dist/CHANGELOG_zh-CN.md | 4 ++-- docs/dist/USAGE.md | 6 +++--- docs/dist/USAGE_zh-CN.md | 6 +++--- package.json | 2 +- 9 files changed, 33 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index ceb2f93..cd3208e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![logo](https://s3.bmp.ovh/imgs/2022/06/25/3a1c742f283cf28e.png "logo")](https://github.com/i18n-pro/core "github") -English | [简体中文](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/README_zh-CN.md) +English | [简体中文](https://github.com/i18n-pro/core/blob/v2.0.0/README_zh-CN.md)

Lightweight, simple, flexible, automatic translation internationalization tool for JavaScript

@@ -54,7 +54,7 @@ To make internationalization easy and enjoyable 😄💪🏻 # Principle ->Taking `Translation Text` as key is the key to all the functions of the library. If you have any questions about this, [Please see](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/Q&A.md) +>Taking `Translation Text` as key is the key to all the functions of the library. If you have any questions about this, [Please see](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/Q&A.md) The library is mainly composed of two parts * Command Line Tool @@ -62,7 +62,7 @@ The library is mainly composed of two parts **Command Line Tool**:Parse the text that needs to be translated based on specified rules (regular expressions), translate the text to the specified target language through a translation platform, and finally generate language pack files -An example of parsing text using [Matching Rules](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/MATCH_RULE.md) is as follows: +An example of parsing text using [Matching Rules](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/MATCH_RULE.md) is as follows: ```js /** Normal string */ @@ -103,14 +103,14 @@ t('I have {p0 apple}, {p1 banana} and {p2 pear}', 5, 4, 3) Therefore, `Command Line Tool` and `Function API` work better together. It is precisely because of this structural design that `i18n-pro` library can be easily integrated into any `JavaScript` project # Help Document -* [Quick Start](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/USAGE.md) -* [Command Line](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/COMMAND_LINE.md) -* [API](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/API.md) -* [Matching Rules](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/MATCH_RULE.md) -* [Translation log](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/OUTPUT_LOG.md) -* [Q&A](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/Q&A.md) +* [Quick Start](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/USAGE.md) +* [Command Line](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/COMMAND_LINE.md) +* [API](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/API.md) +* [Matching Rules](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/MATCH_RULE.md) +* [Translation log](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/OUTPUT_LOG.md) +* [Q&A](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/Q&A.md) * [Contribution Guidelines](https://github.com/i18n-pro/core/blob/dev/docs/dist/CONTRIBUTION_GUIDELINES.md) -* [Changelog](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/CHANGELOG.md) +* [Changelog](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/CHANGELOG.md) # License diff --git a/README_zh-CN.md b/README_zh-CN.md index db89eef..530c17c 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -3,7 +3,7 @@ [![logo](https://s3.bmp.ovh/imgs/2022/06/25/3a1c742f283cf28e.png "logo")](https://github.com/i18n-pro/core "github") -[English](https://github.com/i18n-pro/core/tree/v2.0.0-alpha.8#readme) | 简体中文 +[English](https://github.com/i18n-pro/core/tree/v2.0.0#readme) | 简体中文

适用于 JavaScript 的轻量、简单、灵活、自动翻译的国际化工具

@@ -54,7 +54,7 @@ # 原理 ->以 `翻译文案` 作为key是该库所有功能实现的关键,如果对此有任何疑问,[请查看](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/Q&A_zh-CN.md) +>以 `翻译文案` 作为key是该库所有功能实现的关键,如果对此有任何疑问,[请查看](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/Q&A_zh-CN.md) 该库主要由两部分构成 * 命令行工具 @@ -62,7 +62,7 @@ **命令行工具**:根据指定规则(正则匹配)解析出需要翻译的文案,并通过翻译平台将文案翻译到指定目标语言,最后生成语言包文件 -解析文案的 [匹配规则](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/MATCH_RULE_zh-CN.md) 简易示例如下 +解析文案的 [匹配规则](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/MATCH_RULE_zh-CN.md) 简易示例如下 ```js /** 普通字符串 */ @@ -103,14 +103,14 @@ t('我有{p0个苹果},{p1个香蕉}和{p2个梨}', 5, 4, 3) 所以 `命令行工具` 和 `函数API` 这两者搭配使用效果更佳,也正是由于这样的结构设计,使得 `i18n-pro` 库可以很方便集成到任何的 `JavaScript` 项目中 # 帮助文档 -* [快速上手](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/USAGE_zh-CN.md) -* [命令行](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/COMMAND_LINE_zh-CN.md) -* [API](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/API_zh-CN.md) -* [匹配规则](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/MATCH_RULE_zh-CN.md) -* [翻译日志](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/OUTPUT_LOG_zh-CN.md) -* [Q&A](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/Q&A_zh-CN.md) +* [快速上手](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/USAGE_zh-CN.md) +* [命令行](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/COMMAND_LINE_zh-CN.md) +* [API](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/API_zh-CN.md) +* [匹配规则](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/MATCH_RULE_zh-CN.md) +* [翻译日志](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/OUTPUT_LOG_zh-CN.md) +* [Q&A](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/Q&A_zh-CN.md) * [贡献指南](https://github.com/i18n-pro/core/blob/dev/docs/dist/CONTRIBUTION_GUIDELINES_zh-CN.md) -* [更新日志](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/CHANGELOG_zh-CN.md) +* [更新日志](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/CHANGELOG_zh-CN.md) # License diff --git a/docs/dist/API.md b/docs/dist/API.md index 944a851..10171db 100644 --- a/docs/dist/API.md +++ b/docs/dist/API.md @@ -130,7 +130,7 @@ Get Internationalization Text
The internal will obtain `Translation Text` text - The text to be translated should meet specific Matching Rules requirements + The text to be translated should meet specific Matching Rules requirements diff --git a/docs/dist/API_zh-CN.md b/docs/dist/API_zh-CN.md index d728b09..aac9b0a 100644 --- a/docs/dist/API_zh-CN.md +++ b/docs/dist/API_zh-CN.md @@ -130,7 +130,7 @@ text - 待翻译的文案,该文案需满足特定 匹配规则 + 待翻译的文案,该文案需满足特定 匹配规则 diff --git a/docs/dist/CHANGELOG.md b/docs/dist/CHANGELOG.md index 225bffa..09a0e7a 100644 --- a/docs/dist/CHANGELOG.md +++ b/docs/dist/CHANGELOG.md @@ -2,7 +2,7 @@ # Changelog -English | [简体中文](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/CHANGELOG_zh-CN.md) +English | [简体中文](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/CHANGELOG_zh-CN.md)
@@ -244,7 +244,7 @@ English | [简体中文](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/do

Added

-* Added documentation for [Translation log](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/OUTPUT_LOG.md) +* Added documentation for [Translation log](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/OUTPUT_LOG.md) ## [1.1.1] - 2022-06-25 diff --git a/docs/dist/CHANGELOG_zh-CN.md b/docs/dist/CHANGELOG_zh-CN.md index f3f7bae..d7556e2 100644 --- a/docs/dist/CHANGELOG_zh-CN.md +++ b/docs/dist/CHANGELOG_zh-CN.md @@ -2,7 +2,7 @@ # 更新日志 -[English](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/CHANGELOG.md) | 简体中文 +[English](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/CHANGELOG.md) | 简体中文
@@ -244,7 +244,7 @@

Added

-* 新增[翻译日志](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/OUTPUT_LOG_zh-CN.md)文档说明 +* 新增[翻译日志](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/OUTPUT_LOG_zh-CN.md)文档说明 ## [1.1.1] - 2022-06-25 diff --git a/docs/dist/USAGE.md b/docs/dist/USAGE.md index 429b151..10ee06b 100644 --- a/docs/dist/USAGE.md +++ b/docs/dist/USAGE.md @@ -82,7 +82,7 @@ const text = t('hello world') ## 3. Initialize Command Line Configuration File -Enter the following command at the command line terminal, [more commands](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/COMMAND_LINE.md#command-list) +Enter the following command at the command line terminal, [more commands](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/COMMAND_LINE.md#command-list) ```bash npx i18n init ``` @@ -111,7 +111,7 @@ module.exports = { ## 4. Adjust `i18nrc.js` Configuration -Adjust the configuration items in the configuration file according to the requirements, [Description](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/COMMAND_LINE.md#1--i18nrcjs--configuration) of configuration items +Adjust the configuration items in the configuration file according to the requirements, [Description](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/COMMAND_LINE.md#1--i18nrcjs--configuration) of configuration items ## 5. Execute Translation Command @@ -185,7 +185,7 @@ setI18n({ If this library is used directly in a frontend application, when switching languages on the page, only the entire page can see the translated effect through **refresh directly**. A version of `React`、`Vue`、`SolidJS`、`Svelte` related UI library will be released later, which can achieve switching languages without refreshing the page by combining with the characteristics of the corresponding library. Stay tuned ## 8. Demo -Real code examples can be found in the [Live Demo](https://github.com/i18n-pro/core/tree/v2.0.0-alpha.8#live-demo) section of the `README` documentation, and the console output of the current library `Command Line Tool` has also been internationalized +Real code examples can be found in the [Live Demo](https://github.com/i18n-pro/core/tree/v2.0.0#live-demo) section of the `README` documentation, and the console output of the current library `Command Line Tool` has also been internationalized You can see the Chinese version by executing the command `npx i18n h -L zh` ![demo](https://s3.bmp.ovh/imgs/2023/05/02/cc60f507a8f76a81.gif "demo") \ No newline at end of file diff --git a/docs/dist/USAGE_zh-CN.md b/docs/dist/USAGE_zh-CN.md index e4142bb..bd76dae 100644 --- a/docs/dist/USAGE_zh-CN.md +++ b/docs/dist/USAGE_zh-CN.md @@ -82,7 +82,7 @@ const text = t('hello world') ## 3. 初始化命令行配置文件 -在命令行终端输入如下命令,[更多命令](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/COMMAND_LINE_zh-CN.md#命令列表) +在命令行终端输入如下命令,[更多命令](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/COMMAND_LINE_zh-CN.md#命令列表) ```bash npx i18n init ``` @@ -111,7 +111,7 @@ module.exports = { ## 4. 调整 `i18nrc.js` 配置 -根据需求自行调整配置文件中的配置项,配置项的[说明](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/docs/dist/COMMAND_LINE_zh-CN.md#1--i18nrcjs-配置) +根据需求自行调整配置文件中的配置项,配置项的[说明](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/COMMAND_LINE_zh-CN.md#1--i18nrcjs-配置) ## 5. 执行翻译命令 @@ -185,7 +185,7 @@ setI18n({ 如果是直接在前端应用中使用该库,在页面上切换语言时,只能通过**直接刷新**整个页面才能看到翻译后的效果,后续会推出 `React`、`Vue`、`SolidJS`、`Svelte` 相关UI库的版本,结合对应库的特性可以做到不刷新页面切换语言,敬请期待 ## 8. Demo -真实代码示例可参考 `README` 文档中的 [Live Demo](https://github.com/i18n-pro/core/blob/v2.0.0-alpha.8/README_zh-CN.md#live-demo) ,当前库 `命令行工具` 的控制台输出也接入了国际化 +真实代码示例可参考 `README` 文档中的 [Live Demo](https://github.com/i18n-pro/core/blob/v2.0.0/README_zh-CN.md#live-demo) ,当前库 `命令行工具` 的控制台输出也接入了国际化 通过命令 `npx i18n h -L zh` 就能看中文版了 ![demo](https://s3.bmp.ovh/imgs/2023/05/02/cc60f507a8f76a81.gif "demo") \ No newline at end of file diff --git a/package.json b/package.json index 4a0abf1..5f5c6b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "i18n-pro", - "version": "2.0.0-alpha.8", + "version": "2.0.0", "description": "Lightweight, simple, flexible, automatic translation internationalization tool for JavaScript(适用于 JavaScript 的轻量、简单、灵活、自动翻译的国际化工具)", "files": [ "dist/src",