Mass translation of auto parts from Turkish to Ukrainian
A powerful Python script has been developed for translating large lists of auto parts (100,000+ rows) from Turkish to Ukrainian with maximum efficiency and stability. The program is specifically designed to maintain the order of rows, save API tokens, and automatically cache already translated phrases.
Main features:
• Use of models via OpenAI API.
• Block translation with custom logging of each step.
• Automatic caching of responses to reduce costs.
• Result formatting — the first letter capitalized, others in lowercase.
• Auto-saving of results (output.txt) and cache (cache.json) after each block.
• Error resilience: in case of failure, it leaves the translation or returns the original line without omissions.
The project is optimized for processing similar large lists, preserving format, and minimizing API costs.
Main features:
• Use of models via OpenAI API.
• Block translation with custom logging of each step.
• Automatic caching of responses to reduce costs.
• Result formatting — the first letter capitalized, others in lowercase.
• Auto-saving of results (output.txt) and cache (cache.json) after each block.
• Error resilience: in case of failure, it leaves the translation or returns the original line without omissions.
The project is optimized for processing similar large lists, preserving format, and minimizing API costs.