wpmet/automated-translation

It uses Google Translator API to translate WP pot files via "om/potrans" in batch.

1.0.1 2023-10-26 11:02 UTC

This package is auto-updated.

Last update: 2024-04-26 12:03:48 UTC


README

It uses Google Translator API to translate WP pot files via "om/potrans" in batch.

Script installation

  • Create a directory and put Google Translate's credentials.json there. Then open CLI from that directory.

  • User composer to install the package as follows:

composer require wpmet/automated-translation

Running the translations

  • Use this command to run the script from CLI, specify multiple language codes at the end of the command.

vendor/bin/fire translate ko ar

  • Fill up the guided form and it will generate all po,mo file in the plugin's language directory.