yazinsai / srt-ai

Translate SRT files to any language, using AI magic ✨
https://translatesrt.com/
193 stars 50 forks source link

Add new language #3

Closed bagadefente closed 8 months ago

bagadefente commented 1 year ago

Hi, the project works really well, but I'd like to input a new language (pt-BR).

I tried a little using ChatGPT to guide me, but my coding knowledge is minimal... can anybody guide me at least from where to start?

thanks!

ZijianLiang2000 commented 8 months ago

In directory srt-ai\components\Form.tsx, just add the new language you would like to translate into, within the array.

const LANGUAGES = [ "Arabic", "English", "French", "German", "Persian", "Malay", "Spanish", "Turkish", "Chinese" ];

This should be working, however the code is failing somewhere else for me, where the translated srt came out with only one line unfortunately.