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

Single and double quotes problem in translations #4

Open
neonturk opened this issue Sep 11, 2024 · 3 comments
Open

Single and double quotes problem in translations #4

neonturk opened this issue Sep 11, 2024 · 3 comments

Comments

@neonturk
Copy link

neonturk commented Sep 11, 2024

Hello,
First of all, thank you for this nice package.

When I do the translation process, I see that additional double quotes are added in the translation file.

My language file;
<?php return [ 'singular' => 'Attribute', 'plural' => 'Attributes', ];

The translated file;

<?php return array ( 'singular' => '"Özellik"', 'plural' => '"Özellikler"', );

Other

My language file;

<?php return [ 'singular' => 'Attribute', 'plural' => 'Attribute\'s <i class="fa fa-long-arrow-right"></i> :button ', ];

The translated file;

<?php return array ( 'singular' => '"Özellik"', 'plural' => '"Özellik" <i class="fa fa-long-arrow-right"></i> :button ', );

EN to TR Translation
'model' => 'gpt-4o-mini',

Php Version: php8.1.13/
Laravel Version : Laravel Framework 9.52.16

@neonturk
Copy link
Author

The problem may be that the relevant translated text is directly placed in quotation marks.

@randyesperben
Copy link

randyesperben commented Oct 24, 2024

Hi! have the same problema. Did you found any solution?

Thanks!

EDIT: the problem seems to be the model. Using 4o works ok.

@neonturk
Copy link
Author

Hi! have the same problema. Did you found any solution?

Thanks!

EDIT: the problem seems to be the model. Using 4o works ok.

Yes, I use o4-mini. Because it is cheap and logical.
I have found a solution for the relevant problem and sent a merge request to the package owner, but he has not responded yet.

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

2 participants