Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All translation completed #536

Merged
merged 103 commits into from
Mar 27, 2019
Merged

All translation completed #536

merged 103 commits into from
Mar 27, 2019

Conversation

xuhongbo
Copy link
Contributor

@xuhongbo xuhongbo commented Mar 16, 2019

All translation completed 🎉 🎉 🎉 @kazupon 😆😆😆

@xuhongbo xuhongbo changed the title docs(zh) All translation completed 🎉 🎉 🎉 Mar 16, 2019
@xuhongbo xuhongbo changed the title All translation completed 🎉 🎉 🎉 All translation completed Mar 16, 2019
@kazupon
Copy link
Owner

kazupon commented Mar 17, 2019

@xuhongbo
Thank you for your PR!
Awesome!

@Jinjiang
Could you review this PR? 🙏

@Jinjiang
Copy link

No problem 👌

Copy link

@Jinjiang Jinjiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wip,先 review 了一部分,其它内容会陆续 review
谢谢

lastUpdated: '最近一次更新',
nav: [
{
text: 'Guide',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的 text 字段也建议翻译一下,如“Guide”翻译为“指南”,它会出现在顶部导航栏。
可以参考 vuepress 的中文文档。

vuepress/.vuepress/config.js Outdated Show resolved Hide resolved
vuepress/zh/README.md Outdated Show resolved Hide resolved
vuepress/zh/README.md Outdated Show resolved Hide resolved
vuepress/zh/README.md Outdated Show resolved Hide resolved
* `{Path} key`: 必填
* `{Locale} locale`: 可选
* `{Array | Object} values`: 可选
* **Return:** `TranslateResult`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* **Return:** `TranslateResult`
* **返回值:** `TranslateResult`

下同


基于组件的本地化选项

* **请参阅:** `VueI18n` 类构造函数选项

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* **请参阅:** `VueI18n` 类构造函数选项
* **请参阅**`VueI18n` 类构造函数选项

下同

vuepress/zh/api/README.md Outdated Show resolved Hide resolved
vuepress/zh/api/README.md Outdated Show resolved Hide resolved
* `{string | Array | Object} values`: 可选
* **Return:** `TranslateResult`

使用复数本地化语言环境信息 `key` ,本地化组件语言环境信息优先于全局语言环境信息。 如果未指定组件语言环境信息,将使用全局语言环境信息进行本地化。如果指定了 `locale` ,本地化语言环境使用 `locale` 。如果要将 `values` 指定为字符串值,那么你需要设置本地化语言环境信息。如果要为 `values` 指定 Array 或 Object values ,则必须指定 `values` 带有`$t`。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
使用复数本地化语言环境信息 `key` ,本地化组件语言环境信息优先于全局语言环境信息。 如果未指定组件语言环境信息,将使用全局语言环境信息进行本地化。如果指定了 `locale` ,本地化语言环境使用 `locale` 。如果要将 `values` 指定为字符串值,那么你需要设置本地化语言环境信息。如果要为 `values` 指定 Array 或 Object values ,则必须指定 `values` 带有`$t`
以复数形式将语言环境信息 `key` 本地化。…… 如果将 `values` 指定为字符串,则该字符串会作为语言环境信息进行本地化。如果将 `values` 指定为 Array 或 Object,则格式必须为 `$t``values`

根据自己的理解做了一定的调整

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

确实 您修改后可读性更强一些

Copy link

@Jinjiang Jinjiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已校对到 api/README.md:L295

以复数形式将语言环境信息 `key` 本地化。在本地化时组件的语言环境信息优先于全局语言环境信息。如果未指定组件的语言环境信息,就使用全局语言环境信息进行本地化。如果你指定了 `locale` 参数,则使用 `locale` 提供的语言环境进行本地化。如果将 `values` 指定为字符串,则该字符串会作为语言环境信息进行本地化。如果将 `values` 指定为 Array 或 Object,则格式必须为 `$t` 的 `values`。

:::danger 提示
注意,你需要保证此上下文等于生命周期方法中的组件实例 (例如在 `data` 选项中,`const $tc = this.$tc.bind(this)`)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
注意,你需要保证此上下文等于生命周期方法中的组件实例 (例如在 `data` 选项中,`const $tc = this.$tc.bind(this)`)
注意,你需要在生命周期方法中保证上下文是组件实例 (例如在 `data` 选项中,`const $tc = this.$tc.bind(this)`)

下同

vuepress/zh/api/README.md Outdated Show resolved Hide resolved

#### $d

> 7.0+ 新增

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

7.0+7.0 新增 感觉都可以,+新增 表意重复了。下同。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是的,我刚开始看到这里的时候,也是感觉,怎么两个,一个new 一个+


* **参数:**

* `{Path} key`: 必填

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* `{Path} key`: 必填
* `{Path} key`必填

标点符号细节,下同。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已全部修改


#### i18n

* **类型:** `I18nOptions`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* **类型:** `I18nOptions`
* **类型:**`I18nOptions`

这里的空格需要省略 (标点符号和英文之间+不受粗体字的影响),下同。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已全部修改,谢谢


是否提供以下国际化功能:

* `{boolean} dateTimeFormat`: 区域敏感的时间格式

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* `{boolean} dateTimeFormat`: 区域敏感的时间格式
* `{boolean} dateTimeFormat`:环境敏感的时间格式

下同

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

api里已全部修改,谢谢


* `{boolean} numberFormat`: 区域敏感的数字格式

由于使用 ECMAScript Internationalization API (ECMA-402) 实现,上述国际化功能取决于[浏览器环境](http://kangax.github.io/compat-table/esintl/)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
由于使用 ECMAScript Internationalization API (ECMA-402) 实现,上述国际化功能取决于[浏览器环境](http://kangax.github.io/compat-table/esintl/)
由于使用 ECMAScript Internationalization API (ECMA-402) 实现,上述国际化功能取决于[浏览器环境](http://kangax.github.io/compat-table/esintl/)


### 构造函数选项

你可以在下面指定 `I18nOptions` 构造函数的一些选项[流式接口](https://github.com/kazupon/vue-i18n/blob/dev/decls/i18n.js)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你可以基于 flowtype 定义中的 I18nOptions 指定下列构造函数选项

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改,谢谢

vuepress/zh/api/README.md Outdated Show resolved Hide resolved

缺少本地化的处理函数。使用本地化目标语言环境,本地化关键字路径和 Vue 实例调用处理函数。

如果分配了未定义的异常处理函数,并且发生本地化未定义,则不会发出警告。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
如果分配了未定义的异常处理函数,并且发生本地化未定义,则不会发出警告
如果设置了缺少本地化时的处理函数,则本地化信息未定义时不会产生警告

或直接简化为

Suggested change
如果分配了未定义的异常处理函数,并且发生本地化未定义,则不会发出警告
如果设置了该函数,则本地化信息未定义时不会产生警告

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jinjiang 非常感谢大佬的校对与指导!感觉优秀的人 做什么都很认真

Copy link

@Jinjiang Jinjiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all the left

vuepress/zh/installation.md Outdated Show resolved Hide resolved
vuepress/zh/installation.md Outdated Show resolved Hide resolved
vuepress/zh/installation.md Outdated Show resolved Hide resolved
vuepress/zh/installation.md Outdated Show resolved Hide resolved
vuepress/zh/installation.md Outdated Show resolved Hide resolved
vuepress/zh/started.md Outdated Show resolved Hide resolved
vuepress/zh/started.md Outdated Show resolved Hide resolved
vuepress/zh/legacy/README.md Outdated Show resolved Hide resolved
vuepress/zh/legacy/README.md Outdated Show resolved Hide resolved
vuepress/zh/legacy/README.md Outdated Show resolved Hide resolved
Jinjiang and others added 18 commits March 27, 2019 10:13
@xuhongbo
Copy link
Contributor Author

@Jinjiang
Thank you for your review!
ping @kazupon

@kazupon
Copy link
Owner

kazupon commented Mar 27, 2019

@xuhongbo
Thank you very much! 🎉

@Jinjiang
I'm extremely thankful for your review. 🙇
Thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants