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

Using the "I18n Ally Editor" to update Translations leads to removing all other translations in the same file #1240

Open
ssendev opened this issue Nov 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ssendev
Copy link

ssendev commented Nov 22, 2024

Describe the bug

When using the editor entering a row making a change and quickly saving it results in the file the translation is saved to containing only the just translated key and all other ones are missing.

While making a lot of updates is the easiest way to trigger it i have run into it multiple times only making one/two changes usually of the form: in "foo {count} bar" count was translated thus copying count from the original translation then double clicking the corrupted count and pressing ctrl+v

Extension Version

i18n Ally v2.12.0

Framework/i18n package you are using

vue-i18n

To Reproduce
Steps to reproduce the behavior:

  1. Go to the I18n Ally Editor
  2. Repeatedly press "A" and "Tab" or randomly click on a row and press "A" to make updates varying the speed between as fast as possible and once a second

Sometimes the file suddenly only contains only one translation key

Device Infomation

  • OS: Linux / Fedora
  • Version: 40
  • VS Code Version: 1.93.1

Extension Log
Go to View -> Output -> i18n Ally, and paste the content below. You should mask any sensitive information

This was the output of focusing the en translation "A" "Tab" to ar "A" "Tab" to es and lost the en translations.

I repeated this a few times to get a minimal log. between runs i pressed clear logs and then started with an unfocused editor.

💾 Writing /var/home/i18n/src/locales/en.json
💾 Writing /var/home/i18n/src/locales/en.json
✅ Loading finished

✅ Loading finished

🔄 File changed (change) en.json
	📑 Loading (en) en.json [1732266111099.9905]
✅ Loading finished

💾 Writing /var/home/i18n/src/locales/ar.json
💾 Writing /var/home/i18n/src/locales/ar.json
✅ Loading finished

✅ Loading finished

🔄 File changed (change) ar.json
	📑 Loading (ar) ar.json [1732266112489.991]
✅ Loading finished

config

  "i18n-ally.keystyle": "nested",
  "i18n-ally.localesPaths": "src/locales",
  "i18n-ally.sortKeys": true,
  "i18n-ally.sourceLanguage": "en",
  "i18n-ally.theme.annotation": "rgba(181, 0, 16, 1)"

Screenshots

@ssendev ssendev added the bug Something isn't working label Nov 22, 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