[wp-trac] [WordPress Trac] #60509: Font Collection: Font name and description are not translatable

WordPress Trac noreply at wordpress.org
Tue Feb 13 01:45:48 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 wildworks):

 My understanding is that this JSON file is generated via the Google Fonts
 API: https://github.com/WordPress/google-fonts-to-wordpress-
 collection/blob/d6b5d580cfdba1c57f9f14bcca3fb398166786ce/src/constants.js#L2-L3

 Also, looking at the API documentation, it appears that there is no way to
 localize font names:
 https://developers.google.com/fonts/docs/developer_api

 Furthermore, even if you change the browser language to something other
 than English and access https://fonts.google.com/, the font names and
 category names will remain in English.

 Therefore, at least for Google fonts, localized names for font names and
 categories may not officially exist. However, I am concerned that if these
 are not localized, there will be inconsistencies, especially if the
 language of the WordPress site is changed to an RTL language.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60509#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list