[wp-trac] [WordPress Trac] #60509: Font Collection: Font name and description are not translatable
WordPress Trac
noreply at wordpress.org
Mon Feb 12 17:29:18 UTC 2024
#60509: Font Collection: Font name and description are not translatable
--------------------------+---------------------
Reporter: wildworks | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.5
Component: Editor | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+---------------------
Comment (by get_dave):
we can do here something similar to block.json and theme.json
translations?
Could you point to a code/documentation reference for the method utilised?
It would seem `name` and `description` and `categories` all need to be
translatable. What value is there to having these encoded in the JSON and
not just provided as an argument in PHP when you call
`wp_register_font_collection()`?
https://github.com/WordPress/wordpress-
develop/blob/edfdeaa105cdbf9765cbae1c39a6db6926a02abf/src/wp-
includes/fonts.php#L76-L78
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60509#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list