hi my toast needs to translate to France or English depending on what you select as your language, in the login screen you can select your languages
Asked
Active
Viewed 320 times
-1
-
1if you use JS to show toast, then show how you do that. – Vladyslav Matviienko Jul 04 '17 at 12:56
-
You'll need to connect to Google Translate. – duffymo Jul 04 '17 at 13:02
3 Answers
1
Put your texts for the default language in res/values/strings.xml . and create res/values-fr/strings.xml where you put the translations for french and repeat for each language.
Your application will be shown in the correct language depending in the phone language setting.

from56
- 3,976
- 2
- 13
- 23
0
You can create different string resource file based on country. Then android will automatically refer the message from proper string file based on the selected language.

EKN
- 1,886
- 1
- 16
- 29
0
Create strings.xml file depends on language. Read: stackoverflow.com/a/41907754/1636478 Developer Guide

maatik5
- 148
- 16