Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation not working #10

Open
thiva7 opened this issue Feb 3, 2025 · 0 comments
Open

Translation not working #10

thiva7 opened this issue Feb 3, 2025 · 0 comments

Comments

@thiva7
Copy link

thiva7 commented Feb 3, 2025

Hey

i have try in laravel 11x

and is not translate anything

translation format is

'buttons' => [
'cancel' => 'Cancel',
'reject' => 'Reject',
'save' => 'Save',

and in command like

php artisan ai-translator:translate

Choose a source language to translate from [en]:
[0] el
[1] en

Selected locale: en

Do you want to add reference languages? (y/n) [n]:

Enter the chunk size for translation. Translate strings in a batch. The higher, the cheaper. (default: 30) [30]:

Starting Greek (el)

Translating lang/en/installer_messages.php to el => lang/el/installer_messages.php
Translating lang/en/locale.php to el => lang/el/locale.php
Translating lang/en/validation.php to el => lang/el/validation.php
Finished translating el
PS C:\xampp\htdocs\laravelApp>

but is not translate anything

this is my config

'lang', 'ai' => [ 'provider' => 'openai', 'model' => 'gpt-4o', // Recommend to use for testing purpose. It sometimes doesn't translate. 'api_key' => env('OPENAI_API_KEY'), 'retries' => 5, 'max_tokens' => 4096, ], 'locale_names' => [ 'en' => 'English ', 'el' => 'Greek', ],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant