The xcllmtool is a tool that automatically translates xcstrings files using the OpenAI API (ChatGPT). By specifying the source and target languages, ChatGPT will automatically translate the content.
python main.py [source_xcstrings] \
--api-key "sk-proj-xxxxxxxxxxxxxxxxxxxxxxxx" \
--source en \
--target jaBy default, Localizable.xcstrings will be translated to Localizable.translated.xcstrings.
If --override is specified, the file will be overwritten.
--api-key: Open AI API Key-s--source: Source language locale code (likeen,ja,zh-Hans... )-t--target: Target language locale code (likeen,ja,zh-Hans... )
--override: Override original file.-m--model: Model name. (default:gpt-4-turbo)-b--batch: Batch charactor count limit (default: 1000 chars)-r--retry: Retry Count (default: 3)
