Repository navigation
Show project ICU placeholder setting status on the import page to prevent silent data corruption #3685
Replies: 1 comment 3 replies
|
Hi! Thanks for opening this up! ^^ Ideally, we believe nobody should need to disable the "Tolgee Universal ICU placeholders". In short, we consider any issues with how Tolgee handles the conversion between ICU placeholders and your platform's placeholders to be a failure on our end. For non-crazy use cases, you should be able to leave it on. That way, Tolgee UI can properly visualize placeholders, and we can better prevent their corruption during translation (whether using AI, machine, or human translators). Please try this for me (you can do so in a separate project): import and export your strings with ICU enabled, and let me know if you run into any issues. We might be able to fix them. If you don't run into any issues, we strongly recommend keeping ICU conversion on. Even though we support disabling ICU for a project and will continue to support it, it won't provide the same user experience as projects with ICU enabled. As for your feedback, what I'm seeing is that the "Convert placeholders to Tolgee Universal ICU" checkbox is misleading. We'll look into it internally to see if we can address it. It basically never makes sense to disable the "Convert placeholders to Tolgee Universal ICU" - maybe the correct way to go about it is to remove this checkbox from the frontend and leave it up to the user to find the option in the settings if they really need Tolgee to store their translations verbatim. Thanks again for bringing this up! ^^ |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Use Case / Background
Our team uses Tolgee to manage translation JSON files for a legacy i18next project. The workflow is:
We intentionally do not want to change our existing i18next {{variable}} placeholder syntax — we just want Tolgee as a translation management layer without modifying our code or workflow.
Problem
The "Use Tolgee Universal ICU placeholders" project setting (Project Settings → Advanced) has a critical but silent effect on import behavior:
When the setting is enabled (the default), the import page shows an additional option: "Convert placeholders to Tolgee Universal ICU".
If this option is checked: {{variable}} gets converted to ICU format {variable} — the format is changed.
If this option is unchecked (easy to overlook): {{variable}} gets ICU-escaped into '{{'variable'}}', silently corrupting the translations.
When the setting is disabled, the import page does not show the "Convert placeholders" option at all, and {{variable}} is stored verbatim — no escaping, no corruption.
The root issue is that the connection between the project-level setting and the import-page checkbox is not obvious. In multi-person teams, the person importing files often doesn't know the project setting is enabled, unchecks (or ignores) the convert option, and ends up with corrupted data — with no warning.
Proposed Solution
On the import page, when "Use Tolgee Universal ICU placeholders" is enabled, add a visible notice explaining the consequence of leaving "Convert placeholders to Tolgee Universal ICU" unchecked, for example:
A direct link to the project settings page would also help users quickly fix the configuration if needed.
Why This Matters
This is a silent data corruption issue — the import succeeds without any error, and the damage only becomes visible when the exported file no longer matches the original. A simple contextual warning on the import page would prevent most real-world occurrences of this problem, especially in multi-person teams where the project creator and the file importer are different people.
All reactions