chat-i18n
v0.0.2
Published
🤖 cli command to translate locale messages by ai
Downloads
82
Readme
chat-i18n
chat-i18n is a js cli command to translate locale messages from one language to another.
Qucik Start
- put
chat-i18n.toml
file in your project root directory. - edit and save your source locale messages file, do not commit it to git.
- run
bunx chat-i18n
command in your terminal to translate.
Limitations
- Only support json format locale messages.
- Only support git as source and destination.
Directory structure: any_locale_messages_dir/{locale}.json
Configuration Example
# the locale message directory in your project
dir = "locales"
source = "en"
[provider]
# The name of the provider you are using. Currently, only "deekseek" is supported.
name = "deekseek"
[deekseek]
# Your Deekseeker API key
api_key = "sk-**"
License
MIT