Open pzgz opened 1 year ago
I've observed similar behavior recently. Is the extension still under development?
We have had the similar issue recently. When adding new keys from code, open editor and add the translation text, it overrides the entire json file and inserts the new key.
Same thing happened to me during a huge translation change work session. I could only restore the translations from repository but all uncommitted changes from that day were lost.
This problem happend 2 times this morning. Now I have to check the translation files EACH TIME after I edit a new translation.
I'm using the latest v2.12.0, but this problem also happened before in my previous installtion.
We've had this issue in our team from time to time since we started using i18n-ally. It seems like it happens randomly one out of 20 times or so, deleting the entire file and losing all the uncommited translations in the process 🫠
We've had this issue in our team when adding new translations from GUI
Still happening till today, bumped up, any clues at least?
I have noticed that adding new nested keys from code and hovering over the key to edit it. This error occurs.
So when adding for instance "common.create", if the common object does not exist already, the entire file will be overridden.
Not sure if it happens every time, but enough for me to notice this specifically.
Unfortunately it is not severe enough to justify a PR
also found this problem
I had this issue too, several times.
I also couldn't find a reproduction pattern.
I found a few workarounds, not sure if it's really solving the issue, but perhaps it helps.
I'm using one json file per language /locale/en.json /locale/de/json ...
Based on a new project:
Some theories:
What works for me now:
After every component I save it in git, this way I lose only 1 component max
Never USE this Editor ** Never click any of these:
If you open it by accident, don't edit anything, close it, save the current state to git, reload etc.
I use ONLY this editor
I do not know if this one is save, but potentially also ok.
@leonardlin one thing you mentioned I can confirm from my side
Never USE this Editor
Yes, that's the workaround for me to work with this project now, I stopped using the editor, and only using the popup vscode pallete for entering translations for each language one by one, though it's troublesome, but never met the translations clearout issue again
Just ran into this issue. Can't reproduce it but it does seem to be while using the editor the above comment talks about. About 90% of the time it works just fine, but I have to keep an eye on the files in case it randomly doesn't work and deletes the entire file (except for the trad I just added).
Again, I can't reproduce it 100%, but I have noticed it never happens when I'm doing my steps perfectly, without a misclick or something like that. I have an Excel sheet with the trads in the browser and VS Code opened:
Sometimes, I'll misclick into an already filled field (above the one I actually wanted to click into) and hit paste before I realize my mistake:
If you're like me and not using the editor would simply be a huge burden on your workflow, I suggest you keep a tab open on each of your language files. Not only will this make it pretty obvious when a file gets deleted, but you can then just CTRL+Z to quickly recover before noticing too late. It does get pretty crowded though, especially if you're working on 7 languages like me. Highly recommend you do this on a 4k monitor or zoom out a bit 😅
Describe the bug I am haunged by this issue for a long time, it's not happened all the time, but sometime very oftern. It used to be ok for a while, but it just came back recently.
The issue is, when I added or update a translation from GUI, after completed the editing, all translations in the language files were removed and only the new edited translation was there. I cannot reproduce it at all because there's no pattern at all. This is really annoy, anyone have similiar issue?
I have disabed the feature which auto sort keys, but still no luck.
Extension Version i18n Ally v2.9.1
Framework/i18n package you are using vue-i18n
To Reproduce Steps to reproduce the behavior: Sorry, but I really cannot reproduce it, I tried for a long time, but cannot find a pattern.
Device Infomation
Extension Log Go to
View
->Output
->i18n Ally
, and paste the content below. You should mask any sensitive information