[wp-trac] [WordPress Trac] #53097: Registering scripts trough block.json dosn't load translation files inside plugins
WordPress Trac
noreply at wordpress.org
Tue Apr 27 09:44:30 UTC 2021
#53097: Registering scripts trough block.json dosn't load translation files inside
plugins
--------------------------+-----------------------------
Reporter: walbo | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When registering scripts with `block.json` and adding a `textdomain`
WordPress only checks for translations in the `WP_LANG_DIR` folder.
This means that blocks will not pick up translations from plugins that
have a `/language` folder with translations.
Should `block.json` have a domain path option or pick up `Domain path`
from the plugin comment?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53097>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list