Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.

support simple {msgid: msg} json format #254

Closed
lanterndev opened this issue Jul 7, 2013 · 5 comments
Closed

support simple {msgid: msg} json format #254

lanterndev opened this issue Jul 7, 2013 · 5 comments

Comments

@lanterndev
Copy link

According to http://support.transifex.com/customer/portal/articles/971979, Transifex supports Chrome's i18n json format, but does not support the simpler {"msgid": "msg"} json format used in frontend tools like https://github.com/PascalPrecht/angular-translate. Would it be possible to add support for this format? Here's an example of it in action: http://plnkr.co/edit/Hw4iMz (note the locale-de_DE.json and locale-en_US.json files).

Thanks for your consideration, and thanks for Transifex!

@nsallembien
Copy link

Hi Skivvies,

We just added support for this file format today. Thanks for your patience!

Nico

@lanterndev
Copy link
Author

Thanks so much, @nsallembien! Having trouble getting it to work though. What value should I use for type in my .tx/config file? (I'd look for this in the commit that added support for this, but couldn't find it. Could you reference that commit here please, if it's publicly viewable?)

@nsallembien
Copy link

We've actually stopped maintaining the community edition (there was a post from @glezos about this when we made the change), so the commit is not visible, sorry.

The name of the format is: KEYVALUEJSON

Thanks
Nico

@lanterndev
Copy link
Author

Ah, that explains it, thanks Nico.

Just got my resource pushed!
https://www.transifex.com/projects/p/lantern-www/resource/master/

But now when I click "view strings online" (which points to https://www.transifex.com/projects/p/lantern-www/viewstrings/#undefined/master) I get "There was an error connecting to server." Am I doing something wrong?

@lanterndev
Copy link
Author

Never mind, got it figured out! Just had to push some empty stub translation files. Now https://www.transifex.com/projects/p/lantern-www/resource/master/ is looking ready to rock.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants