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

Numbers in locale object #7

Closed
Disorrder opened this issue Sep 16, 2015 · 2 comments
Closed

Numbers in locale object #7

Disorrder opened this issue Sep 16, 2015 · 2 comments

Comments

@Disorrder
Copy link

My localization code consist of items like this

error: {
    5: 'Invalid username or password'
}

$t('error.5') returns error.5 string.

Where 5 is number of ESS code from server.

Works only with

'error.5': 'Invalid username or password'

But this style available only for root-placed keys. Look:

 'ich.ni': {
    'san': '3' // returns 'ich.ni.san' instead of '3'
}
@kazupon
Copy link
Owner

kazupon commented Apr 17, 2016

related #24

@kazupon
Copy link
Owner

kazupon commented Sep 15, 2016

See the detail:
https://kazupon.github.io/vue-i18n/syntax.html

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

No branches or pull requests

2 participants