• Hello, I’m trying to implement a translation in a Gutenberg plugin by using the __('String to translate') function obtained from the wp.i18n object.

    To generate the .pot file the documentation suggests to use a webpack plugin that no longer exists (WordPress i18n babel plugin), and it’s not even clear where the .pot file for the Gutenberg plugin should be placed. Is the same .pot file used for the translated PHP string located in the folder defined with load_plugin_textdomain()? (in this case I manually included translated strings used in the Gutenberg plugin in the .pot file with no results)

    Thank you.

    • This topic was modified 6 years, 2 months ago by DAEXT.
    • This topic was modified 6 years, 2 months ago by DAEXT.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using the i18n package with Gutenberg’ is closed to new replies.