When your application is in production and you request for a translation that happens to be missing, the default action is to check if the translation exists in the fallback locale. If we are “lucky” we show a string in the fallback language.
This could be done better. With the auto translate feature we can try to translate the string in the fallback language to the requested language using a translation service like Google Translate.
To use this feature you need to install php-translation/translator.
composer require php-translation/translator
If you are having issues installing. See Configure HTTPlug.
# config/config.yaml translation: # .. fallback_translation: enabled: true service: 'google' # One of "google", "yandex", or "bing" api_key: 'foobar' # ..