Hacker News new | ask | show | jobs
by itake 708 days ago
plugging my own project:

https://github.com/KevinColemanInc/i18n-translate-go

Works well for i18njs. The issues I ran into are: chat-gpt didn't translate all the keys in the batch (especially for obscure languages like Laos) and sometimes the chatgpt output invalid unicode (see error in the readme).

1 comments

Hey! I ran into the same issues. In order to fix the invalid output you can specify to ChatGPT that you want to recieve the response as a JSON formatted text.
I think that is what I did: I had it use the functions api to pass the translations, but it still wouldn't output everything in the small languages.

I was a bit lazy, so I just inform the user to re-run it manually instead of automatically handling it.