-
Notifications
You must be signed in to change notification settings - Fork 377
Description
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:
- Go to the I18n Ally Editor
- 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