-
Notifications
You must be signed in to change notification settings - Fork 56
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
Set Fallback language File #120
Comments
I think this is actually already implemented. Let me check and get back to you in a few hours |
Otherwise it should be rather easy to implement. |
Thank you so much! I've seen this line and after inspection seems that does the job.Right? |
Yepp. Exactly. You can set a fallback locale with |
The chain to find a translation message is actually like this:
Hope this clears things up a bit. We are still working on version 2 of the library with better documentation and more features (such as «embedded components»), but will probably hold it off until vue 3.0 is available. |
Hi,
I was looking for a way to set a fallback language when a translation is not found. Instead of adding a default value for each $t() , our workflow is to add a new string to the en.json file and then wait for the translator that sends back all updated language JSONs. This could save time because the developer adds a new string once (In default language JSON) instead of twice (in $t() and language JSON). I have in mind something like
Is it easy implementable?
The text was updated successfully, but these errors were encountered: