Skip to content

feat: Talking Head 1.0.2 — i18n infrastructure and Norwegian translation#6

Merged
soderlind merged 1 commit intomainfrom
i18n
Feb 18, 2026
Merged

feat: Talking Head 1.0.2 — i18n infrastructure and Norwegian translation#6
soderlind merged 1 commit intomainfrom
i18n

Conversation

@soderlind
Copy link
Copy Markdown
Owner

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:

  • Added i18n toolchain scripts to package.json for generating and managing translation files, including commands for POT, PO, MO, JSON, and PHP translation formats.
  • Introduced an i18n-map.json file to map source JS files to their webpack build outputs for correct translation extraction.
  • Updated the HeadEditorAssets class to call wp_set_script_translations() for the talking-head-head-sidebar script, enabling JS translations in the editor.

Norwegian Bokmål Translation:

  • Added Norwegian Bokmål (nb_NO) translation files for all major JS blocks and PHP, covering UI and plugin messages. [1] [2] [3] [4] [5]

Documentation and Versioning:

  • Bumped the plugin version to 1.0.2 in package.json, talking-head.php, and test bootstrap. [1] [2] [3] [4]
  • Updated CHANGELOG.md and readme.txt to document i18n support, Norwegian translation, and the new version. [1] [2] [3] [4]

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>
@soderlind soderlind merged commit f7c86d4 into main Feb 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant