@shermant/i18n-translator
v1.2.1
Published
  test
TRANSLATOR_TASKS=extract1,translate
TRANSLATOR_DIRS=./test
TRANSLATOR_TEST=111
TRANSLATOR_KEY=sk-5805c22222228aad2d5386e877fa
Ensure that all options are in UPPERCASE
and SNAKE_CASE
.
2. command line parameters
When running the project from the command line, you can use --option
to set configurations.
npx @shermant/i18n-translator --pattern=tttt --exts vue js --watch
Note: Command line settings will override those in the .env file.
3. inquirer
Based on the selected tasks, the program will check which options need to be set before execution.
If any options are missing, the program will prompt you to input them through an inquirer flow.
Provider
As of 2024-09-02, the project supports deepseek
as the AI service provider.
In the future, I plan to integrate LangChain
to support a variety of AI service providers.
Usage
npx @shermant/i18n-translator
bunx @shermant/i18n-translator
This version is more polished and clearer, ensuring proper grammar and consistent formatting.