php-translation / symfony-bundle

Symfony integration for Translations
MIT License
327 stars 94 forks source link

Automatically add missing translation and auto-translate them using Google Translate in the XLF #483

Open lukepass opened 1 year ago

lukepass commented 1 year ago

Hello, is it possible to auto-add the missing translations and have the bundle translate them using Google Translate in order to have a "baseline" for better translations?

Thanks.

bocharsky-bw commented 1 year ago

Hey @lukepass ,

Yeah, it should be possible. Please, follow the docs from here: https://php-translation.readthedocs.io/en/latest/symfony/auto-translate.html

I hope it helped :)

lukepass commented 1 year ago

Hello and thanks for the answer! Isn't this article for auto-translating only?

I would like to auto-add them (https://php-translation.readthedocs.io/en/latest/symfony/auto-add-missing.html) but translate with Google Translate before adding.

Thanks.

bocharsky-bw commented 1 year ago

Ah, I see now. Yeah, that feature is probably only about translating things on the fly, no storing to the translation file