vue-i18n icon indicating copy to clipboard operation
vue-i18n copied to clipboard

Access VueI18n class globally : getLocaleMessage globally injected (w/ ts support)

Open Mikaleb opened this issue 1 year ago • 0 comments

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

Mikaleb avatar Mar 10 '23 14:03 Mikaleb