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

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

Closed
3 tasks done
Mikaleb opened this issue Mar 10, 2023 · 0 comments
Closed
3 tasks done
Labels
Status: Proposal Request for comments

Comments

@Mikaleb
Copy link

Mikaleb commented Mar 10, 2023

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 Mikaleb added the Status: Proposal Request for comments label Mar 10, 2023
@Mikaleb Mikaleb changed the title Access i18n class globally : getLocaleMessage globally injected (w/ ts support) Access VueI18n class globally : getLocaleMessage globally injected (w/ ts support) Mar 10, 2023
@Mikaleb Mikaleb closed this as completed Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Proposal Request for comments
Projects
None yet
Development

No branches or pull requests

1 participant