I need to translate my app through external files which are added manually in an external folder (such as Download, so not embedded in the application). Example: my app runs only in English, if someone wants to add another language, he creates its own string-xx.xml file which is loaded by my app and then such language can be selected (then the app translates itself). Is it possible to do this kind of work? Is there any workaround if not?
Asked
Active
Viewed 548 times
0
-
Does this answer your question? [Android - Change value in strings.xml](https://stackoverflow.com/questions/16632428/android-change-value-in-strings-xml) – Javad Dehban Sep 23 '20 at 17:18
-
Maybe, it would be better to use https://localazy.com/android where users can translate the app for others comfortly and it supports over the air delivery of updated translations and new languages. – Václav Hodek Sep 26 '20 at 11:09
1 Answers
1
Loading string.xml at runtime is not supported in Android, if you want to add runtime translations, you will have to create your own translation service and your app will send requests to it.
You could mimic the same interface Android has to get string values and the method will call your service internally.

bre_dev
- 562
- 3
- 21