Opened 6 years ago
Closed 6 years ago
#45161 closed defect (bug) (fixed)
Set translations for Gutenberg scripts.
Reported by: | herregroen | Owned by: | herregroen |
---|---|---|---|
Milestone: | 5.0 | Priority: | normal |
Severity: | normal | Version: | 5.0 |
Component: | I18N | Keywords: | has-patch commit fixed-5.0 |
Focuses: | javascript | Cc: |
Description
Once #45103 has been merged translations should be set for all relevant Gutenberg scripts using wp_set_script_translations
.
This will mean that once #meta3876 and #meta3748 are resolved translation files will be downloaded and updated per the usual process and loaded into wp.i18n
.
Attachments (2)
Change History (11)
#1
@
6 years ago
- Component changed from General to I18N
- Milestone changed from Awaiting Review to 5.0
#3
@
6 years ago
I'd like to see it properly working before we commit it, but otherwise it looks good. 🙂
This ticket was mentioned in Slack in #core-js by omarreiss. View the logs.
6 years ago
This ticket was mentioned in Slack in #core by omarreiss. View the logs.
6 years ago
#6
@
6 years ago
- Keywords has-patch commit added
45161.diff is working for me with the current available language packs for 5.0-beta3. Make sure to deactivate the Gutenberg plugin.
I'd only replace array_key_exists()
with isset()
which should be good enough here.
#7
@
6 years ago
- Owner set to herregroen
- Resolution set to fixed
- Status changed from new to closed
In 43878:
Patch looks good to me. @herregroen please feel free to commit