tolgee / tolgee-platform

Developer & translator friendly web-based localization platform
https://tolgee.io
Other
1.4k stars 110 forks source link

Check duplicate messages #2404

Open douglasgomes98 opened 1 month ago

douglasgomes98 commented 1 month ago

Is your feature request related to a problem? Please describe. See messages that are already duplicated and also not add new ones

Describe the solution you'd like 1 - Filters to perform the search 2 - Alerts when importing messages and creating them

stepan662 commented 1 month ago

Yeah, sounds like it could be a good feature.

cyyynthia commented 1 month ago

I think it's a double-edged sword; avoiding duplicates can be good but also can lead to apps that cannot be properly translated: a given word/sentence can be the same for 2 different contexts in lang A, but not in lang B. Even with workarounds, it remains difficult to refine translations and/or introduce new languages that don't have such workarounds available

Default-string-as-key is considered bad for this reason; strings no longer have any context tied to them 🤔

JanCizmar commented 1 month ago

@cyyynthia is right. We recommend against recycling keys exactly for the described reasons.

douglasgomes98 commented 1 month ago

I understand, in my scenario we have several apps with duplicate i18n messages between them, so we are migrating to the to remove the duplicate keys and be able to have a single point of truth.

github-actions[bot] commented 5 days ago

This issue is stale because it has been open for 30 days with no activity.