Skip to content
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

question about json #2

Open
monopolly opened this issue Nov 22, 2016 · 1 comment
Open

question about json #2

monopolly opened this issue Nov 22, 2016 · 1 comment

Comments

@monopolly
Copy link

Hi, its very cool! really very help
but I don't know a python could you help me please

how to get this json output?

{
  "en":"News",
  "de":"News"
}

I think somewhere here
could you help? thank you!

res[data['strings'][str]['desc']][data['langs'][lang]['locale']] = translate(data['strings'][str]['text'], data['langs'][lang]['locale'])
@softvar
Copy link
Owner

softvar commented Nov 22, 2016

Did you try here -> http://translatr.varunmalhotra.xyz/

  1. Enter News as input
  2. Select English & German
  3. Select the checkbox JSON format

Output would be:

[{"locale":"de","country":"German","string":"Nachrichten"},{"locale":"en","country":"English","string":"News"}]

Please let me know if you need anything else.

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

No branches or pull requests

2 participants