Download the PHP package tuhin18003/fix-translators-comments without Composer
On this page you can find all versions of the php package tuhin18003/fix-translators-comments. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tuhin18003/fix-translators-comments
More information about tuhin18003/fix-translators-comments
Files in tuhin18003/fix-translators-comments
Package fix-translators-comments
Short Description A PHP package to automatically add translators' comments in WordPress localization code using ChatGPT.
License MIT
Informations about the package fix-translators-comments
Fix Translators Comments
This package automatically adds translators' comments to your WordPress localization strings using ChatGPT.
Installation
Run the following command to install via Composer:
Usage
Once the package is installed, you can run the command to fix translators' comments in your WordPress localization files.
Command
You can run the command using Composer as follows:
Parameters
- openApiKey: Your OpenAI API key to authenticate requests.
- directory: The path to the directory containing the files you want to process.
Example Usages
1. Using a specific API key and directory:
If your OpenAI API key is exampleApiKey
and you want to process files in the /test
directory, the command will look like this:
2. Processing files in the current directory:
If you want to process files in the current directory, you can simply run:
3. Checking the usage:
If you need to check the command usage and parameters, you can use:
4. In your project's composer.json - scripts
If you want to process files in the /test
directory, the command will look like this:
you want to process a single file, the command will look like this:
Then on the terminal run:
Result Summary:

Sample Comment added on file:

Credentials
- Created by - M.Tuhin
