wpmet/automated-translation

它使用Google Translator API通过“om/potrans”批量翻译WP pot文件。

1.0.1 2023-10-26 11:02 UTC

This package is auto-updated.

Last update: 2024-09-26 13:04:39 UTC


README

它使用Google Translator API通过“om/potrans”批量翻译WP pot文件。

脚本安装

  • 创建一个目录,并将Google Translate的credentials.json文件放在那里。然后从该目录打开CLI。

  • 使用composer安装包,如下所示

composer require wpmet/automated-translation

运行翻译

  • 使用此命令从CLI运行脚本,在命令末尾指定多个语言代码。

vendor/bin/fire translate ko ar

  • 填写引导表单,它将在插件的语言目录中生成所有po、mo文件。