Skip to content

Commit

Permalink
chore: release 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
eyelly-wu committed Sep 21, 2024
1 parent 20a8afc commit 22a037a
Show file tree
Hide file tree
Showing 13 changed files with 5,690 additions and 8,269 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div align="center">
<p style="font-size: 18px;">Lightweight, simple, flexible, automatic translation internationalization tool for React</p>

English | [简体中文](https://github.com/i18n-pro/react/blob/v1.0.0/README_zh-CN.md)
English | [简体中文](https://github.com/i18n-pro/react/blob/v1.0.1/README_zh-CN.md)



Expand Down Expand Up @@ -103,16 +103,16 @@ render(

# Help Document

>To avoid unnecessary duplicate document content, some of the documents in this library are linked to the content in `i18n-pro` <br />The `i18n-pro` related link in the current document is based on the `2.0.0` version. If you are using a different version, you need to check the document corresponding to the version you are using to avoid inconsistent usage
>To avoid unnecessary duplicate document content, some of the documents in this library are linked to the content in `i18n-pro` <br />The `i18n-pro` related link in the current document is based on the `2.1.1` version. If you are using a different version, you need to check the document corresponding to the version you are using to avoid inconsistent usage
* Current Library
* [Quick Start](https://github.com/i18n-pro/react/blob/v1.0.0/docs/dist/USAGE.md)
* [API](https://github.com/i18n-pro/react/blob/v1.0.0/docs/dist/API.md)
* [Changelog](https://github.com/i18n-pro/react/blob/v1.0.0/docs/dist/CHANGELOG.md)
* [Quick Start](https://github.com/i18n-pro/react/blob/v1.0.1/docs/dist/USAGE.md)
* [API](https://github.com/i18n-pro/react/blob/v1.0.1/docs/dist/API.md)
* [Changelog](https://github.com/i18n-pro/react/blob/v1.0.1/docs/dist/CHANGELOG.md)
* i18n-pro
* [Command Line](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/COMMAND_LINE.md)
* [Matching Rules](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/MATCH_RULE.md)
* [Q&A](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/Q&A.md)
* [Translation log](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/OUTPUT_LOG.md)
* [Command Line](https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/COMMAND_LINE.md)
* [Matching Rules](https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/MATCH_RULE.md)
* [Q&A](https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/Q&A.md)
* [Translation log](https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/OUTPUT_LOG.md)


# License
Expand Down
18 changes: 9 additions & 9 deletions README_zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div align="center">
<p style="font-size: 18px;">适用于 React 的轻量、简单、灵活、自动翻译的国际化工具</p>

[English](https://github.com/i18n-pro/react/tree/v1.0.0#readme) | 简体中文
[English](https://github.com/i18n-pro/react/tree/v1.0.1#readme) | 简体中文



Expand Down Expand Up @@ -103,16 +103,16 @@ render(

# 帮助文档

>为了避免不必要的重复文档内容,该库的部分文档是链接 `i18n-pro` 中的内容<br />当前文档中 `i18n-pro` 相关链接是基于 `2.0.0` 版本,如果你使用的非该版本,需查看你所使用版本对应的文档,以免用法不一致
>为了避免不必要的重复文档内容,该库的部分文档是链接 `i18n-pro` 中的内容<br />当前文档中 `i18n-pro` 相关链接是基于 `2.1.1` 版本,如果你使用的非该版本,需查看你所使用版本对应的文档,以免用法不一致
* 当前库
* [快速上手](https://github.com/i18n-pro/react/blob/v1.0.0/docs/dist/USAGE_zh-CN.md)
* [API](https://github.com/i18n-pro/react/blob/v1.0.0/docs/dist/API_zh-CN.md)
* [更新日志](https://github.com/i18n-pro/react/blob/v1.0.0/docs/dist/CHANGELOG_zh-CN.md)
* [快速上手](https://github.com/i18n-pro/react/blob/v1.0.1/docs/dist/USAGE_zh-CN.md)
* [API](https://github.com/i18n-pro/react/blob/v1.0.1/docs/dist/API_zh-CN.md)
* [更新日志](https://github.com/i18n-pro/react/blob/v1.0.1/docs/dist/CHANGELOG_zh-CN.md)
* i18n-pro
* [命令行](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/COMMAND_LINE_zh-CN.md)
* [匹配规则](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/MATCH_RULE_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/v2.0.0/docs/dist/OUTPUT_LOG_zh-CN.md)
* [命令行](https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/COMMAND_LINE_zh-CN.md)
* [匹配规则](https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/MATCH_RULE_zh-CN.md)
* [Q&A](https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/Q&A_zh-CN.md)
* [翻译日志](https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/OUTPUT_LOG_zh-CN.md)


# License
Expand Down
12 changes: 6 additions & 6 deletions docs/dist/API.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# API

>To avoid unnecessary duplicate document content, some of the documents in this library are linked to the content in `i18n-pro` <br />The `i18n-pro` related link in the current document is based on the `2.0.0` version. If you are using a different version, you need to check the document corresponding to the version you are using to avoid inconsistent usage
>To avoid unnecessary duplicate document content, some of the documents in this library are linked to the content in `i18n-pro` <br />The `i18n-pro` related link in the current document is based on the `2.1.1` version. If you are using a different version, you need to check the document corresponding to the version you are using to avoid inconsistent usage
<details >
<summary>Table of Contents</summary>
Expand All @@ -18,12 +18,12 @@ Configure container components for internationalization initialization propertie
<h3 id="i18nprovider-type">Type</h3>
<pre>
(
props: <a href="https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/API.md#i18nstate">I18nState</a> & { children: React.ReactNode },
props: <a href="https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/API.md#i18nstate">I18nState</a> & { children: React.ReactNode },
) => JSX.Element
</pre>

<h3 id="i18nprovider-parameter-description">Parameter Description</h3>
The other parameters are consistent with the <a href="https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/API.md#initi18n">initI18n</a> parameters<table>
The other parameters are consistent with the <a href="https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/API.md#initi18n">initI18n</a> parameters<table>
<tr>
<th>Parameter name</th>
<th>Description</th>
Expand All @@ -41,9 +41,9 @@ Hook method for obtaining internationalization API and state
<h3 id="usei18n-type">Type</h3>
<pre>
() => ({
<a href="https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/API.md#t">t</a>,
<a href="https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/API.md#seti18n">setI18n</a>,
<a href="https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/API.md#i18nstate">i18nState</a>,
<a href="https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/API.md#t">t</a>,
<a href="https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/API.md#seti18n">setI18n</a>,
<a href="https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/API.md#i18nstate">i18nState</a>,
})
</pre>

12 changes: 6 additions & 6 deletions docs/dist/API_zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# API

>为了避免不必要的重复文档内容,该库的部分文档是链接 `i18n-pro` 中的内容<br />当前文档中 `i18n-pro` 相关链接是基于 `2.0.0` 版本,如果你使用的非该版本,需查看你所使用版本对应的文档,以免用法不一致
>为了避免不必要的重复文档内容,该库的部分文档是链接 `i18n-pro` 中的内容<br />当前文档中 `i18n-pro` 相关链接是基于 `2.1.1` 版本,如果你使用的非该版本,需查看你所使用版本对应的文档,以免用法不一致
<details >
<summary>目录</summary>
Expand All @@ -18,12 +18,12 @@
<h3 id="i18nprovider-类型">类型</h3>
<pre>
(
props: <a href="https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/API_zh-CN.md#i18nstate">I18nState</a> & { children: React.ReactNode },
props: <a href="https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/API_zh-CN.md#i18nstate">I18nState</a> & { children: React.ReactNode },
) => JSX.Element
</pre>

<h3 id="i18nprovider-参数说明">参数说明</h3>
其他参数与 <a href="https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/API_zh-CN.md#initi18n">initI18n</a> 参数一致<table>
其他参数与 <a href="https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/API_zh-CN.md#initi18n">initI18n</a> 参数一致<table>
<tr>
<th>参数名</th>
<th>说明</th>
Expand All @@ -41,9 +41,9 @@
<h3 id="usei18n-类型">类型</h3>
<pre>
() => ({
<a href="https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/API_zh-CN.md#t">t</a>,
<a href="https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/API_zh-CN.md#seti18n">setI18n</a>,
<a href="https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/API_zh-CN.md#i18nstate">i18nState</a>,
<a href="https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/API_zh-CN.md#t">t</a>,
<a href="https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/API_zh-CN.md#seti18n">setI18n</a>,
<a href="https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/API_zh-CN.md#i18nstate">i18nState</a>,
})
</pre>

22 changes: 21 additions & 1 deletion docs/dist/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,38 @@
# Changelog


English | [简体中文](https://github.com/i18n-pro/react/blob/v1.0.0/docs/dist/CHANGELOG_zh-CN.md)
English | [简体中文](https://github.com/i18n-pro/react/blob/v1.0.1/docs/dist/CHANGELOG_zh-CN.md)


<details >
<summary>Table of Contents</summary>

&emsp;&emsp;[[1.0.1] - 2024-09-21](#101---2024-09-21)<br/>
&emsp;&emsp;&emsp;&emsp;[API](#101-api)<br/>
&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;[Changed](#101-api-changed)<br/>
&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;[Fixed](#101-api-fixed)<br/>
&emsp;&emsp;[[1.0.0] - 2023-08-30](#100---2023-08-30)<br/>
&emsp;&emsp;&emsp;&emsp;[API](#100-api)<br/>
&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;[Added](#100-api-added)<br/>

</details>

## [1.0.1] - 2024-09-21

<h3 id="101-api">API</h3>

<h4 id="101-api-changed">Changed</h4>

* Export more `i18n-pro` 's `TypeScript` types.
* `SetI18n`
* `Translate`


<h4 id="101-api-fixed">Fixed</h4>

* Fix the issue where some bundlers cannot parse the `module` configuration in `package.json`


## [1.0.0] - 2023-08-30

<h3 id="100-api">API</h3>
Expand Down
22 changes: 21 additions & 1 deletion docs/dist/CHANGELOG_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,38 @@
# 更新日志


[English](https://github.com/i18n-pro/react/blob/v1.0.0/docs/dist/CHANGELOG.md) | 简体中文
[English](https://github.com/i18n-pro/react/blob/v1.0.1/docs/dist/CHANGELOG.md) | 简体中文


<details >
<summary>目录</summary>

&emsp;&emsp;[[1.0.1] - 2024-09-21](#101---2024-09-21)<br/>
&emsp;&emsp;&emsp;&emsp;[API](#101-api)<br/>
&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;[Changed](#101-api-changed)<br/>
&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;[Fixed](#101-api-fixed)<br/>
&emsp;&emsp;[[1.0.0] - 2023-08-30](#100---2023-08-30)<br/>
&emsp;&emsp;&emsp;&emsp;[API](#100-api)<br/>
&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;[Added](#100-api-added)<br/>

</details>

## [1.0.1] - 2024-09-21

<h3 id="101-api">API</h3>

<h4 id="101-api-changed">Changed</h4>

* 导出 `i18n-pro` 更多的 `TypeScript` 类型
* `SetI18n`
* `Translate`


<h4 id="101-api-fixed">Fixed</h4>

* 修复部分场景打包器不能解析 `package.json``module` 配置


## [1.0.0] - 2023-08-30

<h3 id="100-api">API</h3>
Expand Down
10 changes: 5 additions & 5 deletions docs/dist/USAGE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Quick Start

>To avoid unnecessary duplicate document content, some of the documents in this library are linked to the content in `i18n-pro` <br />The `i18n-pro` related link in the current document is based on the `2.0.0` version. If you are using a different version, you need to check the document corresponding to the version you are using to avoid inconsistent usage
>To avoid unnecessary duplicate document content, some of the documents in this library are linked to the content in `i18n-pro` <br />The `i18n-pro` related link in the current document is based on the `2.1.1` version. If you are using a different version, you need to check the document corresponding to the version you are using to avoid inconsistent usage
<details >
<summary>Table of Contents</summary>
Expand Down Expand Up @@ -67,13 +67,13 @@ render(


## 3. Initialize Command Line Configuration File
[Please refer to](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/USAGE.md#3-initialize-command-line-configuration-file)
[Please refer to](https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/USAGE.md#3-initialize-command-line-configuration-file)

## 4. Adjust `i18nrc.js` Configuration
[Please refer to](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/USAGE.md#4-adjust--i18nrcjs--configuration)
[Please refer to](https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/USAGE.md#4-adjust--i18nrcjs--configuration)

## 5. Execute Translation Command
[Please refer to](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/USAGE.md#5-execute-translation-command)
[Please refer to](https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/USAGE.md#5-execute-translation-command)

## 6. Importing Language Pack
The language pack already exists, so it needs to be applied to the project
Expand Down Expand Up @@ -168,4 +168,4 @@ render(


## 8. Demo
Real code examples can refer to [Live Demo](https://github.com/i18n-pro/react/tree/v1.0.0#live-demo) in the `README` document
Real code examples can refer to [Live Demo](https://github.com/i18n-pro/react/tree/v1.0.1#live-demo) in the `README` document
10 changes: 5 additions & 5 deletions docs/dist/USAGE_zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# 快速上手

>为了避免不必要的重复文档内容,该库的部分文档是链接 `i18n-pro` 中的内容<br />当前文档中 `i18n-pro` 相关链接是基于 `2.0.0` 版本,如果你使用的非该版本,需查看你所使用版本对应的文档,以免用法不一致
>为了避免不必要的重复文档内容,该库的部分文档是链接 `i18n-pro` 中的内容<br />当前文档中 `i18n-pro` 相关链接是基于 `2.1.1` 版本,如果你使用的非该版本,需查看你所使用版本对应的文档,以免用法不一致
<details >
<summary>目录</summary>
Expand Down Expand Up @@ -67,13 +67,13 @@ render(


## 3. 初始化命令行配置文件
[请参考](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/USAGE_zh-CN.md#3-初始化命令行配置文件)
[请参考](https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/USAGE_zh-CN.md#3-初始化命令行配置文件)

## 4. 调整 `i18nrc.js` 配置
[请参考](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/USAGE_zh-CN.md#4-调整-i18nrcjs-配置)
[请参考](https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/USAGE_zh-CN.md#4-调整-i18nrcjs-配置)

## 5. 执行翻译命令
[请参考](https://github.com/i18n-pro/core/blob/v2.0.0/docs/dist/USAGE_zh-CN.md#5-执行翻译命令)
[请参考](https://github.com/i18n-pro/core/blob/v2.1.1/docs/dist/USAGE_zh-CN.md#5-执行翻译命令)

## 6. 引入语言包
语言包已经有了,就需要应用到项目中了
Expand Down Expand Up @@ -168,4 +168,4 @@ render(


## 8. Demo
真实代码示例可参考 `README` 文档中的 [Live Demo](https://github.com/i18n-pro/react/blob/v1.0.0/README_zh-CN.md#live-demo)
真实代码示例可参考 `README` 文档中的 [Live Demo](https://github.com/i18n-pro/react/blob/v1.0.1/README_zh-CN.md#live-demo)
27 changes: 27 additions & 0 deletions docs/src/changelog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,32 @@ function V_1_0_0() {
)
}

function V_1_0_1() {
return (
<Template
version="1.0.1"
date="2024-09-21"
api={{
changed: [
'U',
[
t('导出{0}更多的{1}类型', ' `i18n-pro` ', ' `TypeScript` '),
['U', ' `SetI18n` ', ' `Translate` '],
],
],
fixed: [
'U',
t(
'修复部分场景打包器不能解析{0}中{1}配置',
' `package.json` ',
' `module` ',
),
],
}}
/>
)
}

export default function ChangeLog(props) {
initI18n(props)

Expand All @@ -25,6 +51,7 @@ export default function ChangeLog(props) {
<H1 skip>{t('更新日志')}</H1>
{renderLanguage('CHANGELOG')}
<TableOfContents text={t('目录')} open={false} />
<V_1_0_1 />
<V_1_0_0 />
</>
)
Expand Down
4 changes: 3 additions & 1 deletion docs/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@
"请参考": "Please refer to",
"可以通过{0}来切换语言": "You can switch languages through {0}",
"真实代码示例可参考{0}文档中的{1}": "Real code examples can refer to {1} in the {0} document",
"注意:为了避免幽灵依赖导致 i18n 命令不能使用的问题,使用 pnpm 必须要安装 i18n-pro": "Note: To prevent issues where the i18n command cannot be used due to ghost dependencies, it is essential to install i18n-pro when using pnpm"
"注意:为了避免幽灵依赖导致 i18n 命令不能使用的问题,使用 pnpm 必须要安装 i18n-pro": "Note: To prevent issues where the i18n command cannot be used due to ghost dependencies, it is essential to install i18n-pro when using pnpm",
"修复部分场景打包器不能解析{0}中{1}配置": "Fix the issue where some bundlers cannot parse the {1} configuration in {0}",
"导出{0}更多的{1}类型": "Export more {0}'s {1} types."
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@i18n-pro/react",
"version": "1.0.0",
"version": "1.0.1",
"description": "Lightweight, simple, flexible, automatic translation internationalization tool for React(适用于 React 的轻量、简单、灵活、自动翻译的国际化工具)",
"keywords": [
"react",
Expand All @@ -21,6 +21,7 @@
"automatic translation"
],
"module": "dist/src/index.min.js",
"main": "dist/src/index.min.js",
"types": "./dist/src/index.d.ts",
"files": [
"dist/src",
Expand Down
Loading

0 comments on commit 22a037a

Please sign in to comment.