[wp-trac] [WordPress Trac] #52301: Blocks: Add i18n support to register_block_type_from_metadata
WordPress Trac
noreply at wordpress.org
Tue Jan 19 11:04:18 UTC 2021
#52301: Blocks: Add i18n support to register_block_type_from_metadata
---------------------------------------------------+---------------------
Reporter: gziolo | Owner: gziolo
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.7
Component: Editor | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests dev-feedback | Focuses:
---------------------------------------------------+---------------------
Changes (by gziolo):
* owner: (none) => gziolo
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"49981" 49981]:
{{{
#!CommitTicketReference repository="" revision="49981"
Blocks: Add i18n support to register_block_type_from_metadata
Related Gutenberg issue:
https://github.com/WordPress/gutenberg/issues/23636.
Related WP-CLI PR: https://github.com/wp-cli/i18n-command/pull/210.
Related documentation proposal:
https://github.com/WordPress/gutenberg/blob/master/docs/designers-
developers/developers/block-api/block-metadata.md#internationalization-
not-implemented
Adds programatic i18n support to `register_block_type_from_metadata`
function for block settings registered from `block.json` file that
provides `textdomain` field.
Props swissspidy, ocean90.
Fixes #52301.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52301#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list