-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fails with error with "mark" and "remove" #16
Comments
Hi. Can u attach part of |
Thanks. This .zip contains:
You can clone our repo if you'd like to see more detail: https://github.com/openmsupply/openmsupply-client (Branch with this is called Many thanks. :) |
Ok, I'll take a look this week. |
I looked at your code. U have errors, because u use wrong deep translations. For example in // wrong
{
...
"label.group-by-item": "Group by Item",
...
}
// change to
{
...
"label": {
"group-by-item": "Group by Item"
}
...
} If I helped solve your problem, please, close an issue. Also will be glad for star =) |
@CarlosNZ, do you have any updates? |
Okay thanks, I'll take a closer look tomorrow and close the issue. |
Hi, it seems like "flat" nested keys should be acceptable in i18n JSON files: https://www.codeandweb.com/babeledit/documentation/file-formats#flat-json And indeed we are using |
Ok, I see your point. I did a little research on this topic. I think it's possible to make implementation for flat json in next minor version at this week. |
Excellent, thank you, I look forward to trying it out. :) |
Hi. Thx for waiting =) U can try new 0.8.0 version. Now available option |
Thanks @mxmvshnvsk , it's working better now (gets further), but it's still throwing an error at a certain point when running
Oddly, there doesn't seem to be anything unique about |
@CarlosNZ, it's strange, because I cloned your repo and ran in Try remove your |
The current tests do not cover the codebase. I'll deal with this issue later. I'll try run clean installation on another machine later. |
@CarlosNZ, I think I found the problem =) I looked at your update commit, you update package version, but not turn on flat json option in config, please, add follow option (it's in nested mode by default): flatTranslations: true |
Ah right, yes, my bad -- I didn't realise we needed to manually add that config option. Working well now, thank you :) I'll close this issue now, but I just wanted to point out one tiny little thing you might want to address at some point: When running |
Thx, I made note about line break. |
It's working fine (and giving seemingly correct results) with "display-unused". However, when I run "mark-unused" or "remove-unused", I get an error like so:
It deals with the first file (
app.json
) fine, but then gets no further.Any ideas?
The text was updated successfully, but these errors were encountered: