This project is not covered by Drupal’s security advisory policy.
Gutenberg Localizer makes the complete Gutenberg editor interface translatable through Drupal's own translation system, in any language.
Background
When Gutenberg for Drupal first came out, I found it a real pity that there was no proper support for translating its user interface. Almost all of the module's own strings had been translated into German, yet the editor itself stayed English. I raised this in the issue queue back in 2018 (#3006310). That issue was later closed as outdated, when the Gutenberg JS dependency was removed, but the underlying problem remained.
That is why I built Gutenberg Localizer.
The problem
The Gutenberg module maps wp.i18n to Drupal.t(), but the bundled WordPress packages call __() with variables, which Drupal's locale scanner and potx cannot see. Only about 500 of roughly 2,600 interface strings are known to Drupal, the rest always stays English.
What this module does
- Provides every editor string, including block titles, descriptions, keywords and styles from every
block.json, as literalDrupal.t()calls, so localize.drupal.org can extract them. - Handles strings Drupal cannot store verbatim: HTML tags outside Drupal's allow-list and plurals (rewritten to
@count). - Ships optional catalogs, loaded only when the module is enabled, for Gutenberg USWDS, Charts, Bootstrap Blocks, AI Tools, AOS, advanced link, Core Enhancements and span.
- Includes a German seed translation (formal "Sie").
Usage
Enable the module, no configuration needed. The editor uses the language of the editing user. Translate on localize.drupal.org or via Configuration > Regional and language > Translate interface.
Related
#3468052: Import all translatable texts from core Gutenberg library
Project information
- Project categories: Content editing experience, Multilingual
- Ecosystem: Gutenberg
- Created by horvan on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
First alpha: translatable Gutenberg editor UI with German seed.
