爱意满满的作品展示区。
lyric
20.11D

做了个批量翻译 JSON locale files 的工具

  •  
  •   lyric ·
    lyricat · Mar 6, 2025 · 2583 views
    This topic created in 437 days ago, the information mentioned may be changed or developed.

    代码: https://github.com/quailyquaily/translate-cli

    特点

    • 支持 glossary 和背景信息
    • 对日语做了特别优化
    • 不在翻译中使用“您”字
    • 支持嵌套 JSON
    • 支持批量翻译
    • 支持各类 AI 服务商( Deepseek ,claude ai 啥的)

    运行

    $ translate-cli translate -s example/langs/en-US.json -d example/langs -g example/glossary.json -b example/background.txt --batch=20
    
    📦 batch size: 20
    📄 source:
      - file: example/langs/en-US.json
      - records: 12
    📖 glossary:
      - file: example/glossary.json
    📚 background:
      - file: example/background.txt
    🌍 translating ...
    ✅ example/langs/ja.json: 12/12
    ✅ example/langs/zh-TW.json: 12/12
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3011 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 00:21 · PVG 08:21 · LAX 17:21 · JFK 20:21
    ♥ Do have faith in what you're doing.