vue-i18n
vue-i18n copied to clipboard
Access VueI18n class globally : getLocaleMessage globally injected (w/ ts support)
trafficstars
Clear and concise description of the problem
The very nice implementation of
i18n.global.getLocaleMessage(locale.value)
Make it a breeze to use with autocompletion and always be correct. But it's not globally available and quite hard to pull out in a template.
Suggested solution
Maybe we could to something like
msg({options}).myKey.myMessage.title
Alternative
No response
Additional context
No response
Validations
- [X] Read the Contributing Guidelines
- [X] Read the Documentation
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.