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

localize the string based messages #530

Closed
HiraveBapu opened this issue Mar 8, 2019 · 2 comments
Closed

localize the string based messages #530

HiraveBapu opened this issue Mar 8, 2019 · 2 comments

Comments

@HiraveBapu
Copy link

HiraveBapu commented Mar 8, 2019

I know this crazy question, but just curious

From backend i receive the message like - "Record updated"

can i localized it ?

{
"messages":{
"Record updated":"localized string"
}
}

and then use it like

$t('messages.Record updated')

vue & vue-i18n version

ex: 2.1.0, 5.0

Reproduction Link

Steps to reproduce

What is Expected?

What is actually happening?

@exoego
Copy link
Collaborator

exoego commented Mar 27, 2019

Yes, using message key like "Record updated" will be eventually possible after new release, since message key can contain spaces (fixed in PR #533 but not released yet).

@HiraveBapu
Copy link
Author

@kazupon great job team. With latest release, this feature is supported. Thanks to the team. You can close the issue

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

3 participants