Translation file can't be uploaded (even default)

Translation file can't be uploaded (even default)

Hello, I tried creating translation and upload it, but I got an error. Then I tried uploading the default file without any changes (https://github.com/mochi-cards/mochi-translations/blob/master/translations.edn) ang got the same error.

Could not parse translation file Please check the EDN syntax. Invalid reader tag: "Reader tag must be a...". Reader tags must be symbols.

Sorry about that, I need to release a new update to make the feature compatible with the default translation file again. It should work with simpler files, though (that don't use functions). What was the error you got with your own file?

It was same error. Thanks to your comment, I was actually able to find the issue.

  1. The Reader tag problem appears in the line 979. There're # and % symbols, if you delete them, this error disappears.
  2. Then issue is with "pluralise" and "intercomma" functions, when uploading, they are not recognized and you get following error: "Unable to resolve symbol: pluralize"
  3. I deleted all these functions and file actually uploaded, even with my third language translation, and on the first look, translation works as expected.

I hope this helps when you'll be looking into it

Yep, actually already got a fix for that ready in the development branch. When I release the fix you'll be able to use those pluralize and intercomma functions as well in your own translation files.