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

Sometimes translations are added to a test instead of files in .yml config #215

Open
mrRedSun opened this issue Jun 3, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@mrRedSun
Copy link

mrRedSun commented Jun 3, 2023

image

Happened to me with 1.4.1. Keeps popping up sometimes, worth pointing out that I'm using fvm

@lsaudon
Copy link
Owner

lsaudon commented Jun 3, 2023

It adds it only in the tests or also in the others?
Where is your i18n.yaml file located?

@lsaudon
Copy link
Owner

lsaudon commented Jun 3, 2023

Do you have a i18n.yaml in test too ?

@mrRedSun
Copy link
Author

mrRedSun commented Jun 5, 2023

I have i10n file in the root of the project

@lsaudon lsaudon added the bug Something isn't working label Aug 4, 2023
@Evizero
Copy link

Evizero commented Aug 21, 2024

I seem to experience the same issue. My guess is that it finds all arbs files anywhere in the project and it designates the first one that ends with the specified template name (e.g. "app_en.arb") as template.

In my case in flutter that might match a spurious file in the build folder:

image

@Evizero
Copy link

Evizero commented Aug 21, 2024

Update: after taking a look at the code ( https://github.com/lsaudon/l10nization/blob/main/src/extension/getArbFiles.ts#L7 ), i was able to fix the problem for me by ignoring the build folder in my workspace (see here ).

Its not optimal but it works as a workaround in my case

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

3 participants