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

Updating existing translation prompts file to save every time #1206

Open
lucianholt97 opened this issue Sep 19, 2024 · 0 comments
Open

Updating existing translation prompts file to save every time #1206

lucianholt97 opened this issue Sep 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lucianholt97
Copy link

Describe the bug
I have a project structure like this

  • app1
    | - lang
    | - - {locale}.json
  • app2
    | - lang
    | - - {locale}.json
  • shared
    | - lang
    | - - {locale}.json

Thus, every locale file, like "en.json" exists multiple times.

Relevant settings are

  • pathMatcher: "{locale}.json"
  • localesPaths: ["**/lang"]
  • targetPickingStrategy: "most-similar"

Translations previews in the IDE and in the sidebar work, also opening the editor UI works.
When changing any translation in the editor I am always prompted for the translation file.
However, every translation key is unique and the editor could remember where it read the data from and use the same file.

Extension Version
v2.12.0

Framework/i18n package you are using
vue-i18n

To Reproduce
Steps to reproduce the behaviour:

  1. Setup multi-app repository with shared translations
  2. Translations are detected and previewed in the IDE
  3. When opening the editor and updating any translation, I'm prompted for the translation file
SCR-20240919-ptqk

If you can point out where the issue might resolve from, I am happy to contribute to a fix.

@lucianholt97 lucianholt97 added the bug Something isn't working label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant