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
Requires
- om/potrans: ^0.0.6
- symfony/console: ^6.3
- symfony/filesystem: ^6.3
- symfony/finder: ^6.3
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.