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
i18n: Wrap domains list filter button for translation #59634
Conversation
|
||
const selectedFilter = context?.query?.filter; | ||
const nonWpcomDomains = this.mergeFilteredDomainsWithDomainsDetails(); | ||
|
||
const filterOptions = [ | ||
{ | ||
label: 'All domains', | ||
label: translate( 'All domains' ), |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 29 times:
translate( 'All Domains' )
ES Score: 10
See 2 additional suggestions in the PR translation status page
|
||
const selectedFilter = context?.query?.filter; | ||
const nonWpcomDomains = filterOutWpcomDomains( domains ); | ||
|
||
const filterOptions = [ | ||
{ | ||
label: 'Site domains', | ||
label: translate( 'Site domains' ), |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 26 times:
translate( 'Site Domains' )
ES Score: 10
See 2 additional suggestions in the PR translation status page
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~25 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/7066108 Thank you @jornp for including a screenshot in the description! This is really helpful for our translators. |
Translation for this Pull Request has now been finished. |
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.
I was not able to test the translations as shown on the screenshots, due to strings currently not being in GlotPress, but I've confirmed the filter labels are now being rendered as translatable strings. LGTM 🚀
51bd9e0
to
29b3fe4
Compare
Changes proposed in this Pull Request
translate
calls.Before & after on
/domains/manage
Before & after on
/domains/manage/[mysite]
Testing instructions
Related to 362-gh-Automattic/i18n-issues