Skip to content

Commit 58ed2b2

Browse files
committed
chore: release 2.0.0-alpha.1
1 parent 08598d6 commit 58ed2b2

9 files changed

Lines changed: 29 additions & 27 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div align="center">
22
<p style="font-size: 18px;">An out-of-the-box, lightweight i18n auto-translation solution for React</p>
33

4-
English | [简体中文](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.0/README_zh-CN.md)
4+
English | [简体中文](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.1/README_zh-CN.md)
55

66

77

@@ -51,8 +51,8 @@ To make internationalization easy and enjoyable 😄💪🏻
5151

5252
# Live Demo
5353

54-
* [Open in CodeSandbox](https://codesandbox.io/p/github/i18n-pro/react-demo/main?file=README.md)
55-
* [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz_small.svg "Open in StackBlitz")](https://stackblitz.com/github/i18n-pro/react-demo?file=README.md)
54+
* [Open in CodeSandbox](https://codesandbox.io/p/github/i18n-pro/react-demo/v2?file=README.md)
55+
* [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz_small.svg "Open in StackBlitz")](https://stackblitz.com/github/i18n-pro/react-demo/tree/v2?file=README.md)
5656

5757

5858
# Principle
@@ -105,9 +105,9 @@ render(
105105

106106
>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 `3.0.0-alpha.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
107107
* Current Library
108-
* [Quick Start](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.0/docs/dist/USAGE.md)
109-
* [API](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.0/docs/dist/API.md)
110-
* [Changelog](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.0/docs/dist/CHANGELOG.md)
108+
* [Quick Start](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.1/docs/dist/USAGE.md)
109+
* [API](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.1/docs/dist/API.md)
110+
* [Changelog](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.1/docs/dist/CHANGELOG.md)
111111
* i18n-pro
112112
* [Command Line](https://github.com/i18n-pro/core/blob/v3.0.0-alpha.1/docs/dist/COMMAND_LINE.md)
113113
* [Matching Rules](https://github.com/i18n-pro/core/blob/v3.0.0-alpha.1/docs/dist/MATCH_RULE.md)

README_zh-CN.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div align="center">
22
<p style="font-size: 18px;">开箱即用的轻量级 React 国际化自动翻译解决方案</p>
33

4-
[English](https://github.com/i18n-pro/react/tree/v2.0.0-alpha.0#readme) | 简体中文
4+
[English](https://github.com/i18n-pro/react/tree/v2.0.0-alpha.1#readme) | 简体中文
55

66

77

@@ -51,8 +51,8 @@
5151

5252
# Live Demo
5353

54-
* [Open in CodeSandbox](https://codesandbox.io/p/github/i18n-pro/react-demo/main?file=README_zh-CN.md)
55-
* [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz_small.svg "Open in StackBlitz")](https://stackblitz.com/github/i18n-pro/react-demo?file=README_zh-CN.md)
54+
* [Open in CodeSandbox](https://codesandbox.io/p/github/i18n-pro/react-demo/v2?file=README_zh-CN.md)
55+
* [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz_small.svg "Open in StackBlitz")](https://stackblitz.com/github/i18n-pro/react-demo/tree/v2?file=README_zh-CN.md)
5656

5757

5858
# 原理
@@ -105,9 +105,9 @@ render(
105105

106106
>为了避免不必要的重复文档内容,该库的部分文档是链接 `i18n-pro` 中的内容<br />当前文档中 `i18n-pro` 相关链接是基于 `3.0.0-alpha.1` 版本,如果你使用的非该版本,需查看你所使用版本对应的文档,以免用法不一致
107107
* 当前库
108-
* [快速上手](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.0/docs/dist/USAGE_zh-CN.md)
109-
* [API](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.0/docs/dist/API_zh-CN.md)
110-
* [更新日志](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.0/docs/dist/CHANGELOG_zh-CN.md)
108+
* [快速上手](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.1/docs/dist/USAGE_zh-CN.md)
109+
* [API](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.1/docs/dist/API_zh-CN.md)
110+
* [更新日志](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.1/docs/dist/CHANGELOG_zh-CN.md)
111111
* i18n-pro
112112
* [命令行](https://github.com/i18n-pro/core/blob/v3.0.0-alpha.1/docs/dist/COMMAND_LINE_zh-CN.md)
113113
* [匹配规则](https://github.com/i18n-pro/core/blob/v3.0.0-alpha.1/docs/dist/MATCH_RULE_zh-CN.md)

docs/dist/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Changelog
33

44

5-
English | [简体中文](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.0/docs/dist/CHANGELOG_zh-CN.md)
5+
English | [简体中文](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.1/docs/dist/CHANGELOG_zh-CN.md)
66

77

88
<details >

docs/dist/CHANGELOG_zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# 更新日志
33

44

5-
[English](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.0/docs/dist/CHANGELOG.md) | 简体中文
5+
[English](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.1/docs/dist/CHANGELOG.md) | 简体中文
66

77

88
<details >

docs/dist/USAGE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
&emsp;&emsp;&emsp;&emsp;[Configure initial state](#configure-initial-state)<br/>
1111
&emsp;&emsp;&emsp;&emsp;[Connect `I18nProvider` and `useI18n` , and wrap `Translation Text` with `t` ](#connect--i18nprovider--and--usei18n--and-wrap--translation-text--with--t)<br/>
1212
&emsp;&emsp;[3. Initialize Command Line Configuration File](#3-initialize-command-line-configuration-file)<br/>
13-
&emsp;&emsp;[4. Adjust `i18nrc.js` Configuration](#4-adjust--i18nrcjs--configuration)<br/>
13+
&emsp;&emsp;[4. Adjust `i18nrc.ts` Configuration](#4-adjust--i18nrcts--configuration)<br/>
1414
&emsp;&emsp;[5. Execute Translation Command](#5-execute-translation-command)<br/>
1515
&emsp;&emsp;[6. Importing Language Pack](#6-importing-language-pack)<br/>
1616
&emsp;&emsp;[7. Switch Language](#7-switch-language)<br/>
@@ -69,8 +69,8 @@ render(
6969
## 3. Initialize Command Line Configuration File
7070
[Please refer to](https://github.com/i18n-pro/core/blob/v3.0.0-alpha.1/docs/dist/USAGE.md#3-initialize-command-line-configuration-file)
7171

72-
## 4. Adjust `i18nrc.js` Configuration
73-
[Please refer to](https://github.com/i18n-pro/core/blob/v3.0.0-alpha.1/docs/dist/USAGE.md#4-adjust--i18nrcjs--configuration)
72+
## 4. Adjust `i18nrc.ts` Configuration
73+
[Please refer to](https://github.com/i18n-pro/core/blob/v3.0.0-alpha.1/docs/dist/USAGE.md#4-adjust--i18nrcts--configuration)
7474

7575
## 5. Execute Translation Command
7676
[Please refer to](https://github.com/i18n-pro/core/blob/v3.0.0-alpha.1/docs/dist/USAGE.md#5-execute-translation-command)
@@ -168,4 +168,4 @@ render(
168168

169169

170170
## 8. Demo
171-
Real code examples can refer to [Live Demo](https://github.com/i18n-pro/react/tree/v2.0.0-alpha.0#live-demo) in the `README` document
171+
Real code examples can refer to [Live Demo](https://github.com/i18n-pro/react/tree/v2.0.0-alpha.1#live-demo) in the `README` document

docs/dist/USAGE_zh-CN.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
&emsp;&emsp;&emsp;&emsp;[配置初始状态](#配置初始状态)<br/>
1111
&emsp;&emsp;&emsp;&emsp;[接入 `I18nProvider``useI18n` ,并用 `t` 包裹 `翻译文案` ](#接入-i18nprovider-和-usei18n-并用-t-包裹-翻译文案)<br/>
1212
&emsp;&emsp;[3. 初始化命令行配置文件](#3-初始化命令行配置文件)<br/>
13-
&emsp;&emsp;[4. 调整 `i18nrc.js` 配置](#4-调整-i18nrcjs-配置)<br/>
13+
&emsp;&emsp;[4. 调整 `i18nrc.ts` 配置](#4-调整-i18nrcts-配置)<br/>
1414
&emsp;&emsp;[5. 执行翻译命令](#5-执行翻译命令)<br/>
1515
&emsp;&emsp;[6. 引入语言包](#6-引入语言包)<br/>
1616
&emsp;&emsp;[7. 切换语言](#7-切换语言)<br/>
@@ -69,8 +69,8 @@ render(
6969
## 3. 初始化命令行配置文件
7070
[请参考](https://github.com/i18n-pro/core/blob/v3.0.0-alpha.1/docs/dist/USAGE_zh-CN.md#3-初始化命令行配置文件)
7171

72-
## 4. 调整 `i18nrc.js` 配置
73-
[请参考](https://github.com/i18n-pro/core/blob/v3.0.0-alpha.1/docs/dist/USAGE_zh-CN.md#4-调整-i18nrcjs-配置)
72+
## 4. 调整 `i18nrc.ts` 配置
73+
[请参考](https://github.com/i18n-pro/core/blob/v3.0.0-alpha.1/docs/dist/USAGE_zh-CN.md#4-调整-i18nrcts-配置)
7474

7575
## 5. 执行翻译命令
7676
[请参考](https://github.com/i18n-pro/core/blob/v3.0.0-alpha.1/docs/dist/USAGE_zh-CN.md#5-执行翻译命令)
@@ -168,4 +168,4 @@ render(
168168

169169

170170
## 8. Demo
171-
真实代码示例可参考 `README` 文档中的 [Live Demo](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.0/README_zh-CN.md#live-demo)
171+
真实代码示例可参考 `README` 文档中的 [Live Demo](https://github.com/i18n-pro/react/blob/v2.0.0-alpha.1/README_zh-CN.md#live-demo)

docs/src/readme/LiveDemo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ export default function LiveDemo() {
1717
items={[
1818
'U',
1919
<Link
20-
href={`https://codesandbox.io/p/github/${githubKey}-demo/main?file=${filename}`}
20+
href={`https://codesandbox.io/p/github/${githubKey}-demo/v2?file=${filename}`}
2121
>
2222
Open in CodeSandbox
2323
</Link>,
2424
<Link
25-
href={`https://stackblitz.com/github/i18n-pro/react-demo?file=${filename}`}
25+
href={`https://stackblitz.com/github/i18n-pro/react-demo/tree/v2?file=${filename}`}
2626
>
2727
<Image
2828
alt="Open in StackBlitz"

docs/src/usage/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,17 @@ function InitConfig(props: I18nProProps) {
117117
function ModifyConfig(props: I18nProProps) {
118118
const { i18nProPkg } = props
119119

120+
const configName = ' `i18nrc.ts` '
121+
120122
return (
121123
<>
122124
<Break />
123-
<H2>{`4. ${t('调整{0}配置', ' `i18nrc.js` ')}`}</H2>
125+
<H2>{`4. ${t('调整{0}配置', configName)}`}</H2>
124126
<Link
125127
href={getI18nProDocHref(
126128
i18nProPkg,
127129
'USAGE',
128-
`4. ${t('调整{0}配置', ' `i18nrc.js` ')}`,
130+
`4. ${t('调整{0}配置', configName)}`,
129131
)}
130132
>
131133
{t('请参考')}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@i18n-pro/react",
3-
"version": "2.0.0-alpha.0",
3+
"version": "2.0.0-alpha.1",
44
"description": "An out-of-the-box, lightweight i18n auto-translation solution for React",
55
"keywords": [
66
"react",

0 commit comments

Comments
 (0)