Files
ResourceTranslate/main.py
2026-02-14 18:12:28 +01:00

34 lines
681 B
Python

#!/usr/bin/env python3
"""
Android XML Translation Tool
Translates Android values XML files using local LLM (LM Studio compatible)
"""
import sys
from translation_tool import TranslationTool
def main():
"""Main entry point"""
if len(sys.argv) > 1:
config_path = sys.argv[1]
else:
config_path = "config.yaml"
try:
tool = TranslationTool(config_path)
tool.run()
except KeyboardInterrupt:
from ui import UI
ui = UI()
ui.show_interrupted()
except Exception as e:
from ui import UI
ui = UI()
ui.show_error(str(e))
sys.exit(1)
if __name__ == "__main__":
main()