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

Support format {"property":{"lang1":"localized message in lang1"}} #42

Open
ghost opened this issue Jun 8, 2017 · 0 comments
Open

Support format {"property":{"lang1":"localized message in lang1"}} #42

ghost opened this issue Jun 8, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 8, 2017

I am working in a project in which we want to process a json such as:
{ "id":0, "name":"monopoly","description":
{"en":"Monopoly is a board game that originated in the United States in 1903"
,"es":"Monopoly es un juego de mesa de intercambio y de bienes raíces"
}}

I like the easiness of this library and would like to contribute a patch to allow processing this kind of formats. I imagine it like this:

String.toLocaleString(retrievedObjectWithLocalizedData,"reverseFormat");
"description".toLocaleString();

We want to opt for this format because the localized data is editable and stored in the database.
As such, it makes a lot of sense to return localization values together with queried data.

Do you find it worth the extra complexity and effort as to accept a PR?
Do you have some feedback, syntactic preferences, or any concerns?

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

0 participants