Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants