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

The package is alternating file names #131

Closed
SalemCode8 opened this issue Oct 14, 2024 · 1 comment
Closed

The package is alternating file names #131

SalemCode8 opened this issue Oct 14, 2024 · 1 comment

Comments

@SalemCode8
Copy link

I need to explain the case clearly

I had a translation file which was called pages/auth and every time I try to import or export the translations the file name will be converted to pagauth in the Spanish Language for some reason,

until I went through the package file and found this line:
$filePath = str_replace('.'.$extension, '', str_replace($locale.DIRECTORY_SEPARATOR, '', $file));
in the SyncPhrasesAction file

which in my case will replace the es/ part with nothing in this file pages/auth to become pagauth.

I'm not asking anyone to fix it but I just want to understand the purpose of this line so I don't miss anything trying to fix it

@SalemCode8
Copy link
Author

found the reason of the issue and create a PR with the Fix #132

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