delight-im / android-languages Goto Github PK
View Code? Open in Web Editor NEWCustom language selection and access to language names for Android
License: Apache License 2.0
Custom language selection and access to language names for Android
License: Apache License 2.0
If for example, the user chooses Arabic/Hebrew etc.
The setFromPreference method should also set layout direction
As of API 25, Resources.updateConfiguration()
is deprecated and should thus not be used anymore in Source/library/src/main/java/im/delight/android/languages/Language.java
. This example shows what to do in the different APIs.
How can I restrict the list of available languages to only the languages for which I have values-* xml files?
Currently the list contains all languages, but I'd like to give my users the option of switching the app language to only a list of predefined languages that I have translations for.
Thank you.
The parsing in /Source/library/src/main/java/im/delight/android/languages/Language.java
seems mandatory but it does not support the third optional argument in the Locale(String language, String country, String variant)
constructor and does thus not support all locales (those with variants in the code) or am I wrong?
You are ignoring all exceptions in Source/library/src/main/java/im/delight/android/languages/Language.java
. This is bad practice, if you don't expect exceptions, just rethrow all exceptions as RuntimeException but don't ignore them.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.