StupidLib
This is a stupid Android Library. It was created for test purposes. StupidLib provides an interface to request the word stupid
for different locals.
Usage
Stupid.forLocale(Locale.ENGLISH) // stupid
Stupid.forLocale(Locale.GERMAN) // blöd
Stupid.forLocale() // device locale
Stupid.forLocale(null) // device locale
Stupid.forLocale(Locale.ROOT) // default value (stupid)
Stupid.forLocale(Locale.JAPANESE) // unsupported locale => default value (stupid)
More examples can be found in StupidTest
This project can also be build as example Android App
Locale
Supported Locals:
Locale.UK
Locale.ENGLISH
Locale.CANADA
Locale.US
Locale.GERMANY
Locale.GERMAN
Locale.ITALIAN
Locale.ITALY
Locale.FRANCE
Locale.FRENCH
Locale.CANADA_FRENCH
Locale.KOREA
Locale.KOREAN
Including in your project
StupidLib is available via JitPack, so getting it is simple:
Step 1. Add the JitPack repository to your root build file
allprojects {
repositories {
// ...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.addyi:StupidLib:{version}'
}
Replace {version}
with latest Version Tag
Licence
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.