Giter VIP home page Giter VIP logo

jall's Introduction

GitHub Workflow Status GitHub Workflow Status Sonatype Nexus (Releases) Sonatype Nexus (Development) Sonatype Nexus (Snapshots)

JALL

JustAnotherLocalizationLibrary - A localization library that aims to be easy to use and customizable.

Example Usage

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")));

Docs

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/

Dependency

Gradle (Kotlin DSL)

Releases/Dev-Builds

You must replace VERSION with the desired version

repositories {  
 maven("https://eldonexus.de/repository/maven-public")
}  
  
dependencies {  
 implementation("io.github.goldmensch", "JALL", "VERSION")
}  

Snapshots

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")
}  

Contributing

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.

License

JALL is released under the terms of the MIT License.

jall's People

Contributors

goldmensch avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.