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

Default 'singular' lookup for $tc() pluralization is not working per API docs #164

Closed
GregPeden opened this issue May 22, 2017 · 0 comments
Labels
Type: Bug Bug or Bug fixes

Comments

@GregPeden
Copy link
Contributor

vue & vue-i18n version

vue 2.3.3
vue-i18n 6.1.3

Reproduction Link

https://jsfiddle.net/gregpeden/w5t1e619/

Steps to reproduce

  • Provide any localization definition prepared for pluralization
    • Example: 'address` => 'Address | Addresses'
  • Reference the pluralized definition using $tc() but without including the quantity (Which should imply a signular lookup per docs)
    • Example: $tc('example.address')

What is Expected?

Per API docs, when using $tc() for localization, the default value for pluralization is 1, implying that the "singular" lookup will be returned
https://kazupon.github.io/vue-i18n/en/api.html

What is actually happening?

The entire localization string is returned including the pipe character:
Example: Address | Addresses

@kazupon kazupon added the Type: Bug Bug or Bug fixes label May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug or Bug fixes
Projects
None yet
Development

No branches or pull requests

2 participants