-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Extracting english texts from source code and replacing by translation entries for the recent "sketch visibility" feature, for both en-US and pt-BR locales #3637
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
Conversation
…for-sketch-visibility
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for catching these, this is great!!
Will merge this in shortly before the end of the week!
@raclim, IMHO any new features (such as the "sketch visibility" option) or changes to existing ones should only be approved if they FULLY SUPPORT i18n, providing basic translations for the Trying to find English words directly in the source code later can easily become a tedious and hard job and, again IMHO, should be completely avoided, improving the overall quality of this fantastic product. The same problem solved in my PR happens in the mobile menu (for any language other than ![]() Notice the "Settings" section above, as well as the "Donate" button, both displayed in English and apparently lacking proper translation keys. There might be others, but trying to spot them is an extremely difficult task. |
Thanks for pointing this out! We generally do aim to cover i18n for new features, but occasionally things slip through. Maybe we can add it somewhere to the contributor docs to emphasize this? Or if you have suggestions for other places where it could be highlighted? The "Donate" button is a third-party widget, which we believe supports localization through browser detection. If it turns out it doesn't we can look into how to implement it or using any other alternatives! |
However, the above code IS NOT a React functional component, so unfortunately the |
I see, thanks for the clarification and for following up on the mobile translations—I'll take a look at this in a bit! I think then we can maybe use
This won't work since |
In fact using |
Extracting english texts from source code and replacing by translation entries for the recent "sketch visibility" feature, for both en-US and pt-BR locales.
Changes:
I have verified that this pull request:
npm run lint
)npm run test
)develop
branch.Fixes #123