-
-
Notifications
You must be signed in to change notification settings - Fork 861
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
Conversation
No problem 👌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wip,先 review 了一部分,其它内容会陆续 review
谢谢
vuepress/.vuepress/config.js
Outdated
lastUpdated: '最近一次更新', | ||
nav: [ | ||
{ | ||
text: 'Guide', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的 text 字段也建议翻译一下,如“Guide”翻译为“指南”,它会出现在顶部导航栏。
可以参考 vuepress 的中文文档。
vuepress/zh/api/README.md
Outdated
* `{Path} key`: 必填 | ||
* `{Locale} locale`: 可选 | ||
* `{Array | Object} values`: 可选 | ||
* **Return:** `TranslateResult` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* **Return:** `TranslateResult` | |
* **返回值:** `TranslateResult` |
下同
vuepress/zh/api/README.md
Outdated
|
||
基于组件的本地化选项 | ||
|
||
* **请参阅:** `VueI18n` 类构造函数选项 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* **请参阅:** `VueI18n` 类构造函数选项 | |
* **请参阅:**`VueI18n` 类构造函数选项 |
下同
vuepress/zh/api/README.md
Outdated
* `{string | Array | Object} values`: 可选 | ||
* **Return:** `TranslateResult` | ||
|
||
使用复数本地化语言环境信息 `key` ,本地化组件语言环境信息优先于全局语言环境信息。 如果未指定组件语言环境信息,将使用全局语言环境信息进行本地化。如果指定了 `locale` ,本地化语言环境使用 `locale` 。如果要将 `values` 指定为字符串值,那么你需要设置本地化语言环境信息。如果要为 `values` 指定 Array 或 Object values ,则必须指定 `values` 带有`$t`。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用复数本地化语言环境信息 `key` ,本地化组件语言环境信息优先于全局语言环境信息。 如果未指定组件语言环境信息,将使用全局语言环境信息进行本地化。如果指定了 `locale` ,本地化语言环境使用 `locale` 。如果要将 `values` 指定为字符串值,那么你需要设置本地化语言环境信息。如果要为 `values` 指定 Array 或 Object values ,则必须指定 `values` 带有`$t`。 | |
以复数形式将语言环境信息 `key` 本地化。…… 如果将 `values` 指定为字符串,则该字符串会作为语言环境信息进行本地化。如果将 `values` 指定为 Array 或 Object,则格式必须为 `$t` 的 `values`。 |
根据自己的理解做了一定的调整
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
确实 您修改后可读性更强一些
参照Vue的规范修正译文中的格式 Co-Authored-By: xuhongbo <[email protected]>
There was a problem hiding this 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
vuepress/zh/api/README.md
Outdated
以复数形式将语言环境信息 `key` 本地化。在本地化时组件的语言环境信息优先于全局语言环境信息。如果未指定组件的语言环境信息,就使用全局语言环境信息进行本地化。如果你指定了 `locale` 参数,则使用 `locale` 提供的语言环境进行本地化。如果将 `values` 指定为字符串,则该字符串会作为语言环境信息进行本地化。如果将 `values` 指定为 Array 或 Object,则格式必须为 `$t` 的 `values`。 | ||
|
||
:::danger 提示 | ||
注意,你需要保证此上下文等于生命周期方法中的组件实例 (例如在 `data` 选项中,`const $tc = this.$tc.bind(this)`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注意,你需要保证此上下文等于生命周期方法中的组件实例 (例如在 `data` 选项中,`const $tc = this.$tc.bind(this)`) | |
注意,你需要在生命周期方法中保证上下文是组件实例 (例如在 `data` 选项中,`const $tc = this.$tc.bind(this)`)。 |
下同
vuepress/zh/api/README.md
Outdated
|
||
#### $d | ||
|
||
> 7.0+ 新增 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7.0+
或 7.0 新增
感觉都可以,+
和 新增
表意重复了。下同。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是的,我刚开始看到这里的时候,也是感觉,怎么两个,一个new 一个+
vuepress/zh/api/README.md
Outdated
|
||
* **参数:** | ||
|
||
* `{Path} key`: 必填 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* `{Path} key`: 必填 | |
* `{Path} key`:必填 |
标点符号细节,下同。
There was a problem hiding this comment.
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
|
||
#### i18n | ||
|
||
* **类型:** `I18nOptions` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* **类型:** `I18nOptions` | |
* **类型:**`I18nOptions` |
这里的空格需要省略 (标点符号和英文之间+不受粗体字的影响),下同。
There was a problem hiding this comment.
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
|
||
是否提供以下国际化功能: | ||
|
||
* `{boolean} dateTimeFormat`: 区域敏感的时间格式 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* `{boolean} dateTimeFormat`: 区域敏感的时间格式 | |
* `{boolean} dateTimeFormat`:环境敏感的时间格式 |
下同
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
api里已全部修改,谢谢
vuepress/zh/api/README.md
Outdated
|
||
* `{boolean} numberFormat`: 区域敏感的数字格式 | ||
|
||
由于使用 ECMAScript Internationalization API (ECMA-402) 实现,上述国际化功能取决于[浏览器环境](http://kangax.github.io/compat-table/esintl/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
由于使用 ECMAScript Internationalization API (ECMA-402) 实现,上述国际化功能取决于[浏览器环境](http://kangax.github.io/compat-table/esintl/) | |
由于使用 ECMAScript Internationalization API (ECMA-402) 实现,上述国际化功能取决于[浏览器环境](http://kangax.github.io/compat-table/esintl/)。 |
vuepress/zh/api/README.md
Outdated
|
||
### 构造函数选项 | ||
|
||
你可以在下面指定 `I18nOptions` 构造函数的一些选项[流式接口](https://github.com/kazupon/vue-i18n/blob/dev/decls/i18n.js) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你可以基于 flowtype 定义中的 I18nOptions
指定下列构造函数选项
There was a problem hiding this comment.
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
|
||
缺少本地化的处理函数。使用本地化目标语言环境,本地化关键字路径和 Vue 实例调用处理函数。 | ||
|
||
如果分配了未定义的异常处理函数,并且发生本地化未定义,则不会发出警告。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果分配了未定义的异常处理函数,并且发生本地化未定义,则不会发出警告。 | |
如果设置了缺少本地化时的处理函数,则本地化信息未定义时不会产生警告。 |
或直接简化为
如果分配了未定义的异常处理函数,并且发生本地化未定义,则不会发出警告。 | |
如果设置了该函数,则本地化信息未定义时不会产生警告。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Jinjiang 非常感谢大佬的校对与指导!感觉优秀的人 做什么都很认真
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all the left
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
Co-Authored-By: xuhongbo <[email protected]>
All translation completed 🎉 🎉 🎉 @kazupon 😆😆😆