l10n: Make percentage values translatable #66298
Labels
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
l10n
Localization and translations best practices
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
Found this in the comment: #65386 (comment)
Percentage values such as "100%" are not necessarily translated as "100%" depending on the language.
But in some places, these strings are hardcoded and cannot be translated.
I think we should make them translatable by using placeholders, like this:
Here are the codes I found.
Note
Note that in each code, a
ButtonGroup
component is being replaced with aToggleGroupControl
component. After all these PRs are merged, it would be a good idea to localize all of the following in one PR.ImageSizeControls component
✅ #65386
gutenberg/packages/block-editor/src/components/image-size-control/index.js
Line 102 in 484c960
Search block
✅ #65340
gutenberg/packages/block-library/src/search/edit.js
Line 470 in 484c960
Button block
⚒️ #65346
gutenberg/packages/block-library/src/button/edit.js
Line 140 in 484c960
Step-by-step reproduction instructions
N/A
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: