I want to change the application content from English to Spanish/ French as per the selection. Do we have any build-in libraries for the same. I am new to this multilanguage part, so please help me with this.
How to support Spanish and French Language in android?
1.1k Views Asked by Malhotra At
2
There are 2 best solutions below
0
On
Create strings.xml(fr) and strings.xml(es) with your translated strings in the respective language.
Use this library to set the language in your app, it manages all the overhead of Configuration Context and other boilerplate code
https://github.com/YarikSOffice/lingver.
This how you create multiple language resources
In android studio
- Res-> New -> Android Resource File->
- Name the file strings.xml -> Resoure Type Should be value
- Select Locale From Available Qualifiers
- Select Language and Set region to be any
- Click Ok

You just need to create an additional folder like
values-fr(for French) and providestrings.xmlwith respective values.here you can find detailed guide: https://developer.android.com/guide/topics/resources/localization