You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a translation value changes the variable name then the translation doesn't work. Add a validation check to ensure that the variable name in each translation file matches the reference (English) translation.
Steps to reproduce:
Have an English file with line: test = {DAYS, plural, one{1 day left} other{\# days left}}
Have a French file with line: test = {JOURS, plural, one{1 jour restant} other{\# jours restants}}
@1yuv In that example, I think it checks the "uno" but not the "MONTHS". This would be an expansion of that. I'm confident it's not already working because if it was then the French issue you found would have been picked up in the linting stage.
I see that, I thought we were being lenient with use of this tool. I unfortunately don't have a bandwidth to take this immediately. I will pick this in October if it's not worked on.
If a translation value changes the variable name then the translation doesn't work. Add a validation check to ensure that the variable name in each translation file matches the reference (English) translation.
Steps to reproduce:
test = {DAYS, plural, one{1 day left} other{\# days left}}
test = {JOURS, plural, one{1 jour restant} other{\# jours restants}}
Expected: Validation failure
Actual: No warnings
If this is missed you end up with issues like: medic/cht-core#9384
The text was updated successfully, but these errors were encountered: