Allow translators to disable theme font famlies that do not support specific languages #67311
Labels
Internationalization (i18n)
Issues or PRs related to internationalization efforts
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
This was first brought up on the WordPress Slack (Account needed).
Bundled classic themes followed a practice where, if a font family did not support a language, the translators were able to disable the font.
This was made possible with a PHP condition:
https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-content/themes/twentyseventeen/functions.php#L285C1-L309C7
In block themes that add font families to theme.json, translators can translate the font name, but they have no way to disable the font.
Translators have shared that this is a missing feature, which is why I am opening this issue.
What is your proposed solution?
I am not sure how to solve this.
I believe the theme developer should list the subsets as part of the font family declaration in theme.json. This is not possible today.
But after that I am not sure how the translators would be able to use that information.
The text was updated successfully, but these errors were encountered: