-
Notifications
You must be signed in to change notification settings - Fork 35
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 Localization doesn't care about the main Language #26
Comments
Hello @ridaamirini Yup, and I don't have any idea how could we do that because not everyone's main language is English. I would love to hear some suggestions if you have them 😄 |
I have two ideas.
|
Yup, we could do it like that, but I don't think I'll have time for that today. |
Ok i try to PR. I think we need to use the first solution but without any default value from the laravel app config because this is dynamic. |
This line of code makes no sense to me. laravel-localization-to-vue/src/Classes/ExportLocalizations.php Lines 182 to 186 in 4e019fa
|
@kg-bot I just releazied what is about when we have no json. Laravel is handling it returning the string back. But with our prefix we will have |
When you're calling json translations you must do it with |
@kg-bot yeah i understand it's a Lang.js "issue" |
@kg-bot hijacking this issue to let you know that this feature should be documented because it's really a headache to find out by yourself 😆 |
Note that this issue can also solved on client side like this rmariuzzo/Lang.js#69 (comment) |
Hello @kg-bot :)
I saw that the JSON import feature is new #19.
I have noticed a problem now. Although the JSON are considered during the export but the English version is not, because we don't have a
en.json
because the english translation is the key.The text was updated successfully, but these errors were encountered: