-
-
Notifications
You must be signed in to change notification settings - Fork 859
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
Json capability #21
Milestone
Comments
ghost
changed the title
Json capability
[ENHANCEMENT] Json capability
Feb 26, 2016
ghost
changed the title
[ENHANCEMENT] Json capability
Json capability
Feb 26, 2016
Related question on stackoverflow |
related #6 I'll plan to support the dynamic locales loading in v3.0 |
Great, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First and foremost, referencing an
object literals
list locally works as expected, Such as this:However, I have been struggling to reference a json file (instead of a local
object literals
list).I attempted doing a
XMLHttpRequest
directly:Have also tried doing an
$.ajax
request (as well as the equivalent with$.getJSON
), like this:My
locales.json
is as follows:Both the above approaches output the following:
But other than that, I get several of these warnings (the expression is different in each of them):
[Vue warn]: Error when evaluating expression $t("news.message2")
.Regardless of the fact that I am most certainly doing something wrong (any hint appreciatted!), it would be much nicer if we could reference a (json) file path directly in the
locales
option.Any chance that one such feature could be added to this plugin in the near future?
Thanks in advance!
The text was updated successfully, but these errors were encountered: