tanmuhittin / laravel-google-translate

Translate translation files to other languages using google translate or another translation api
MIT License
424 stars 71 forks source link

No translations returned #48

Closed Thedonsolo closed 2 years ago

Thedonsolo commented 3 years ago

The first time I ran the command it returned me some translations but the 2nd run it didn't return anything anymore. No errors... Output: 0/1 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0% en -> nl translating... /var/www/testproject/resources/lang/nl/admin.php is preparing Source text collected Home : Online : List : International : Translations : Locations : Backups : My account : language : languages :

Solotov commented 3 years ago

is apparently not using the google translate service, doc say : If you would like to use Google Translate API, edit config/laravel_google_translate.php and add your Google Translate API key.

vahidalvandi commented 2 years ago

how i can create custom_api_translator

tanmuhittin commented 2 years ago

@vahidalvandi https://github.com/tanmuhittin/laravel-google-translate#how-to-use-your-own-translation-api

tanmuhittin commented 2 years ago

@Thedonsolo probably you dont have an api key. in this case stichoza/google-translate-php translator is used. In case an error occurs(you reach some sort of limit) it does not throw any exceptions -> https://github.com/tanmuhittin/laravel-google-translate/blob/master/src/Api/StichozaApiTranslate.php

Maybe it should. I might update this behaviour