Skip to content

[Bug]: Does not add json translations #44

@jonathan-dejong

Description

@jonathan-dejong

Description of the bug

I am not 100% sure if this qualifies as a bug or not.
But I noted that when running this to get a translation for WordPress Core, it will correctly fetch all the PO/MO files but it will not get any json files that translates the JS part (i.e. mostly the block editor).

I can however afterwards generate them myself with a WP CLI command i18n make-json wp-content/languages and the translations works.

Is that intended?
If so it feels like something that would be good to add to the documentation :)

If not intended but is a new feature, I'll happily update the issue description and again, might be good to have in the documentation.

It's a great tool, thank you for creating it!

Reproduction instructions

  1. Set this up with any translation apart from english.
  2. Run the command to fetch translations files.
  3. Change the site (and if needed your users) default language to the new language.
  4. Go into the block editor. You'll note that all block settings and the floating bar settings are still in english.
  5. Run the WP CLI command. It will say something like "Success: Created 49 files."
  6. Reload the block editor, it will now have (at least partial?) translations in the target language.

Expected behavior

for PO/MO and JSON translations to be handled by running the installer.

Environment info

  • Package version: 2.6
  • WP version: 6.9.4

Relevant log output

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions