I have an issue where the translation file is not applied to the template while other ones work fine
I hitting rock a translation file, it is just not displaying the translations only the key names, I am clueless on the reason why, the only thing that came up to my mind is that the new translation file is in the second page of translations files list...
15 Replies
Hi @jvinga, I'm an AI assistant for Novu. While a team member reviews this question, I'll see if I can find relevant sources for your question.
-----------------------------
While I generate an answer, here are some sources that might be helpful:
* Translations
* Content Management
* Vue E-mail
* What is Novu?
-----------------------------
Answer
To troubleshoot and resolve issues with translation files not being applied to templates in Novu, consider the following steps:
1. Check if the Translation Group and Keys are Correct: Ensure that the translation group name and keys used in your template match exactly with those in your translation files. The correct usage syntax is
{{i18n "translationGroupName.translationKey"}}
(1) .
2. Verify the Translation Files: Make sure that your translation files are correctly formatted and uploaded. You might want to re-upload the files and ensure that they are correctly associated with the intended languages .
3. Translation Management UI: The translation management interface allows you to preview translations. Make sure the translations are previewed correctly in this interface. This confirms that your translations are recognized by the system (2) .
4. Pagination Issue: If your new translation file is on the second page of the translation files list, ensure that it is properly indexed and accessible. Navigate through the translation management UI to verify that all files are accessible and correctly listed.
Here's a summarized list of checks:
- Ensure correct syntax in templates using {{i18n "translationGroupName.translationKey"}}
(1) .
- Confirm that uploaded translation files are correctly formatted and are for the right target languages .
- Use the preview feature in the translation management UI to verify translations are correctly recognized (2) .
- Check all pages in the translation files list to ensure your new file is correctly indexed and accessible .
If the problem persists even after these checks, consider re-uploading the translation files or creating a new translation group to see if that resolves the issue.
Got it. Tagging @Support for additional help.
any update?
Got it. Tagging @Support for additional help.
Hi @jvinga
Sorry for delayed response.
Mind sharing some screenshot or screen recording of the issue?
Please share your environmentId as well
it will help us in debugging the issue
Still not working
env id: 64b703eb90b5785d47345780
In the meantime we went for hardcoding values instead of using translations but coming back to update them, the issue still persist
@jvinga
Correct syntax is
I know it doesnt work...we have templates with translations working but these one doesnt pick up
any clue?
@jvinga, you just advanced to level 3!
@jvinga
Sending you a message
Are we the only one with that issue?