Conversation
Add wp i18n toolchain (npm run i18n), i18n-map.json for JS bundle mapping, wp_set_script_translations() for head-sidebar, and nb_NO translation. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces internationalization (i18n) support to the project, adds a full Norwegian Bokmål translation, and ensures the head-sidebar editor script is translatable. It also updates the plugin version to 1.0.2 and documents these changes in the changelog and readme.
Internationalization Infrastructure:
package.jsonfor generating and managing translation files, including commands for POT, PO, MO, JSON, and PHP translation formats.i18n-map.jsonfile to map source JS files to their webpack build outputs for correct translation extraction.HeadEditorAssetsclass to callwp_set_script_translations()for thetalking-head-head-sidebarscript, enabling JS translations in the editor.Norwegian Bokmål Translation:
nb_NO) translation files for all major JS blocks and PHP, covering UI and plugin messages. [1] [2] [3] [4] [5]Documentation and Versioning:
package.json,talking-head.php, and test bootstrap. [1] [2] [3] [4]CHANGELOG.mdandreadme.txtto document i18n support, Norwegian translation, and the new version. [1] [2] [3] [4]