-
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
Translations not working properly #9
Comments
+1 |
I fixed it changing the route where the app is looking for the translations on Nova. I think it would be an easy fix. |
make sure you're running latest Nova. |
+1 |
+1 |
Can anyone share what the issue is? Translations are working fine for me and I can't replicate the issue, if someone can share more information that'd be great. |
Hello @themsaid, open resources/views/Index.vue line 226:
The string is hardcoded and I can't translated it by editing en.json or <language_code>.json Same thing for GlobalSearch and Search components: placeholders strings are hardcoded. Try to create a new language file and edit "Search" and "No :resource matched the given criteria." tokens. Refresh the page and you will see strings remain untranslated. |
Translations are (almost) working, except there are a lot of hardcoded strings inside Vue components: Also some functions stops working if the current language is not English: |
#219 wow, thanks for pointing this out. |
Thanks @antoniolore and @bonzai. I'm working on it. |
Hello @themsaid! Thank you for the support. To help on this matter.. I was only able to translate a BelongsTo field, making an overwrite of the Se code bellow to clarify:
PS: Only tested with BelongsTo, but it probably should happens with others realtionship fields to. |
The translations (using the json file) are only working on the login screen. They are not working inside resource's index for example.
Also, some texts are not possible to translate. Some examples are the "Search" text (inside search fields), the "TRASHED:" text (inside index filters) and "No {resource} matched the given criteria." (grids) that are hardcoded.
The text was updated successfully, but these errors were encountered: