A
A
Anatoly2015-08-27 19:16:05
Android
Anatoly, 2015-08-27 19:16:05

How to do localization with JSON?

I decided to fill in the SQlite database from the JSON file in the assets folder, as I was advised here. I suffered for a long time, but I sort of figured out the json parsing. Now the question is on the horizon - how to localize it?
I assume that there are some commands that load a specific json file (for a specific language) depending on the localization of the device ... is that so? If yes, please explain. Google gave only some advice using auto-translation... like that... or, of course, about localization through string resources..

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
belozerow, 2015-08-27
@TonyWrong

You can use raw instead of assets. They are localized.

D
Dmitry Bolshakov, 2015-08-27
@enq3

Maybe in your case you should think about storing resources in the cloud? Depending on the locale, the client downloads them, parses them into the database and displays them. In addition, this will solve the problem of updating, instead of republishing the application, a simple update of the data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question