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

[Bug]: Dots in translation files are not displayed properly in the frontend #14

Open
OlrikNijmeijer opened this issue Feb 20, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@OlrikNijmeijer
Copy link

What happened?

dots in translation files are not displayed properly in the frontend

How to reproduce the bug

  1. Add a dot in the translation file.
  2. Open the frontend UI
  3. You will see that the dot is shown as "."

Package Version

2.3.1

PHP Version

8.3

Laravel Version

11

Which operating systems does with happen with?

No response

Notes

No response

@OlrikNijmeijer OlrikNijmeijer added the bug Something isn't working label Feb 20, 2025
@QuentinGab
Copy link
Contributor

Hey,

Could you confirm that you are using the latest version of elegantlty/laratranslate (v2.4.0) and elegantly/laravel-translator (v2.3.1)?

Dots are displayed fine on my end in both keys and translations:
Image

@OlrikNijmeijer
Copy link
Author

Yes i just updated the package and the problem still exists:

Image

The content of the file is as follows:

<?php

return [
    'clinic_not_found' => 'Kliniek niet gevonden.',
];

@QuentinGab
Copy link
Contributor

QuentinGab commented Feb 25, 2025

@OlrikNijmeijer
Ok, &#46; is unicode for the dot. On my machine the browser decode it automatically so I don't see it. I suppose your are on windows?

@OlrikNijmeijer
Copy link
Author

@QuentinGab Strange! No i'm on a macbook and i'm using chrome as browser. So that should not be the problem is guess?

@QuentinGab
Copy link
Contributor

@OlrikNijmeijer mmm ok, could you please provide your macOS version and Chrome version? Additionally, could you check if the problem can be reproduced on Safari?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants