JustAnotherLocalizationLibrary - A localization library that aims to be easy to use and customizable.
A small example of using JALL:
testBundle_en.properties
hello=Hi {name}, how are you?
fine=Fine, thank you.
testBundle_de.properties
hello=Hi {name}, wie gehts dir?
fine=Gut, danke fürs Fragen.
Code:
var englishBundle = ResourceBundle.getBundle("testBundle", Locale.ENGLISH);
var germanBundle = ResourceBundle.getBundle("testBundle", Locale.GERMAN);
var localizer = Jall.createStandard(Locale.ENGLISH);
translator.register(Localization.fromResourceBundle(englishBundle), false);
translator.register(Localization.fromResourceBundle(germanBundle), false);
System.out.println(translator.localize("hello", Locale.ENGLISH, Replacement.create("name", "Jeff")));
System.out.println(translator.localize("hello", Locale.GERMAN, Replacement.create("name", "Jeff")));
We provide several kind of docs: JavaDocs and our Wiki (coming soon)
The latest JavaDocs of the development branch
can be found at.
https://goldmensch.github.io/JALL/development/.
Each release on the master branch has its own
docs, these can be
found under:
https://goldmensch.github.io/JALL/version/, where "version" represents the version of the release,
for example:
https://goldmensch.github.io/JALL/1.0/
You must replace VERSION
with the desired version
repositories {
maven("https://eldonexus.de/repository/maven-public")
}
dependencies {
implementation("io.github.goldmensch", "JALL", "VERSION")
}
Attention. Snapshots were deleted after 2 weeks, because they are only created in feature branches
and are more intended
for short-term testing than for productive use.
repositories {
maven("https://eldonexus.de/repository/maven-snapshot")
}
dependencies {
implementation("io.github.goldmensch", "JALL", "VERSION")
}
We are happy about any contribution, be it new features, typo-/style fixes or anything else. For new
features, please
open an issue first so we can discuss it.
The library is built with Gradle, requires at least JDK 16 and uses
the Google Style Guide.
JALL is released under the terms of the MIT License.