How can you support multiple languages and provide localized resource in
android application?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our W3Make Forum to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
It is a good decision to keep your project away from being culture-direct. You can provide support for different locales if you are using the resources directory.
It’s in your hands to specify the resources tailored to the cultures of the people who might be using your android app. And hence, work with a particular resource type that is appropriate for the language and culture of your users. For example you can use “en_US” or “en_SP” to create a bilingual project
getString()
to retrieve localized strings, orgetResources().getConfiguration().locale
to get the current locale of the device.Also u can take reference from documentation –
https://developer.android.com/training/basics/supporting-devices/languages#:~:text=You%20can%20provide%20support%20for,and%20culture%20of%20your%20users.