[wp-trac] [WordPress Trac] #53435: api.w.org needs locale for pattern translation

WordPress Trac noreply at wordpress.org
Thu Jun 17 00:17:02 UTC 2021


#53435: api.w.org needs locale for pattern translation
----------------------------+--------------------
 Reporter:  iandunn         |      Owner:  (none)
     Type:  task (blessed)  |     Status:  new
 Priority:  high            |  Milestone:  5.8
Component:  Editor          |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+--------------------
 This ticket is to track merging the upstream issue
 [https://github.com/WordPress/gutenberg/issues/32754 #32754-gutenberg]

 #53246 moved Core's block patterns out of Core and into the w.org Pattern
 Directory, which means they're no longer translated by Core. api.w.org
 will handle translation, but needs to know the user's locale.

 Knowing the WP version might also help with caching, and let the API avoid
 sending newer patterns to old WP versions which don't have the dependent
 blocks, etc.

 We're past the feature freeze date, but this is a trivial change on the
 Core side, and very important for the pattern directory, so I've added it
 to the 5.8 milestone. I'm happy to consider other options if folks have
 concerns, though.

 I'm planning to open a PR tonight or tomorrow.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53435>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list