This is a stupid Android Library. It was created for test purposes. StupidLib provides an interface to request the word stupid for different locals.
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
Supported Locals:
Locale.UKLocale.ENGLISHLocale.CANADALocale.USLocale.GERMANYLocale.GERMANLocale.ITALIANLocale.ITALYLocale.FRANCELocale.FRENCHLocale.CANADA_FRENCHLocale.KOREALocale.KOREAN
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
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.