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

feat: Implemented new i18n-n functional component #541

Merged
merged 1 commit into from
Mar 25, 2019

Conversation

bponomarenko
Copy link
Contributor

This PR implements feature proposal from #539.

@kazupon It was not possible to have key property for the <i18n-n> component as it is reserved keyword in Vue itself. I defined it as format property instead, and renamed key to format inside documentation for n() and $n() methods for consistency. Hope it is ok with you (no code changes, it is only documentation update).

Copy link
Owner

@kazupon kazupon left a comment

Choose a reason for hiding this comment

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

Perfect! 💯
Thank you very much!

@kazupon kazupon merged commit b33579d into kazupon:dev Mar 25, 2019
xuhongbo added a commit to xuhongbo/vue-i18n that referenced this pull request Mar 25, 2019
* ⭐ new(path): Keypath should parse if sub path contains spaces. (kazupon#533) by @exoego

* feat(path): Keypath should parse if sub path contains spaces.

* feat(path): Added test for whitespaces

* 📝 docs(vuepress): pluralization will not work unless you use $tc (kazupon#540) by @lebesnec

* ⭐ new(number): i18n-n functional component (kazupon#541) by @bponomarenko
kazupon pushed a commit that referenced this pull request Mar 27, 2019
closes #531 

* docs: add vuepress zh docs config

* docs(zh/README.md): Translation README.md file

* docs(zh/README.md): Translation installation.md file

* docs: Translation introduction.md file

* docs: Translation started.md file

* docs: 更改称谓

* docs: Translation api/README.md file

* style: values type

* fix: pluralization -> 多元化

* fix: locale translation

* docs: Translation api/formatting file

* docs: Translation guide/pluralization.md file

* fixed: fix type

* docs: All translation completed

* Update vuepress/.vuepress/config.js

参照Vue的规范修正译文中的格式

Co-Authored-By: xuhongbo <[email protected]>

* fix: type

* fix: 区域设置 -> 语言环境

* style: Modify the format including punctuation and spaces

* fix: 修复vuepress config

* Update if not ..., check ... -> 如果没有则

Co-Authored-By: xuhongbo <[email protected]>

* Update 主语前置

Co-Authored-By: xuhongbo <[email protected]>

* Update 完善用语

Co-Authored-By: xuhongbo <[email protected]>

* Update 语义更明确

Co-Authored-By: xuhongbo <[email protected]>

* fix: Correct the format to remove extra spaces

* update: 提示 -> tip

* Update vuepress/zh/api/README.md

Co-Authored-By: xuhongbo <[email protected]>

* 更改主谓

Co-Authored-By: xuhongbo <[email protected]>

* 提高句子的可读性

Co-Authored-By: xuhongbo <[email protected]>

* 提高句子的可读性

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/api/README.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/api/README.md

Co-Authored-By: xuhongbo <[email protected]>

* fix: Fix some keyword errors and various issues

* update: Optimize text for readability

* Update vuepress/zh/guide/formatting.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/formatting.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/formatting.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/formatting.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/formatting.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/formatting.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/formatting.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/formatting.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/formatting.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/formatting.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/formatting.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/hot-reload.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/interpolation.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/interpolation.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/interpolation.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/interpolation.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/interpolation.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/lazy-loading.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/lazy-loading.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/lazy-loading.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/locale.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/locale.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/locale.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/lazy-loading.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/lazy-loading.md

Co-Authored-By: xuhongbo <[email protected]>

* 区域 -> 语言环境, 消息 -> 信息

* Update vuepress/zh/guide/messages.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/messages.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/messages.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/messages.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/number.md

Co-Authored-By: xuhongbo <[email protected]>

* fix: Locale Messages -> 语言环境信息

* 同步源仓库到Fock仓库 (#1)

* ⭐ new(path): Keypath should parse if sub path contains spaces. (#533) by @exoego

* feat(path): Keypath should parse if sub path contains spaces.

* feat(path): Added test for whitespaces

* 📝 docs(vuepress): pluralization will not work unless you use $tc (#540) by @lebesnec

* ⭐ new(number): i18n-n functional component (#541) by @bponomarenko

* Revert "同步源仓库到Fock仓库 (#1)" (#2)

This reverts commit 8f8a88b.

* Update vuepress/zh/guide/pluralization.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/pluralization.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/pluralization.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/sfc.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/sfc.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/sfc.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/sfc.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/sfc.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/sfc.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/sfc.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/sfc.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/sfc.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/sfc.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/sfc.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/guide/sfc.md

Co-Authored-By: xuhongbo <[email protected]>

* style: code style

* Update vuepress/zh/installation.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/installation.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/installation.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/installation.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/installation.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/installation.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/introduction.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/introduction.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/introduction.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/introduction.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/started.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/started.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/started.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/started.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/started.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/legacy/README.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/legacy/README.md

Co-Authored-By: xuhongbo <[email protected]>

* Update vuepress/zh/legacy/README.md

Co-Authored-By: xuhongbo <[email protected]>
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.

2 participants