-
Notifications
You must be signed in to change notification settings - Fork 12
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
Crash on translate #13
Comments
And already an update ;). If I run it with increased heap size I get:
which might be due to our too long translation keys at some places (?). |
Hey @tmerten, sorry for only responding now. Could you try to prepare a small example that reproduces this problem? And how long are your translation keys anyway? |
Hi @MaxGfeller . Nevermind. |
Hey, i was able to replicate this. I did some debugging and i think sometimes it gets confused and then starts matching where the closing index is lower than the opening index. When this happens the I fixed it by hacking the code in place to check if the close index is less than open index |
@freakypie : That is great news, thanks for digging. And, hey, I am sorry for not putting more effort in from our side. |
I just tried to run vue translation manager on a bigger project and received a stack trace. (more info below)
As the project is private I cannot paste/refer to the code, but a quick
grep -R "\$t(" * | wc -l
results in about 1200 calls (maybe missing some in plain.js
files, but not much) with rather long keys currently (I wanted to setup vue translation manager to refactor this ;) ).However, I was wondering if it makes sense to add an option to pass a path or a single
.vue
file totranslate
.This way one would be able to translate only parts of the project (which is what I want to do most of the time).
The text was updated successfully, but these errors were encountered: