Skip to content
/ mai18n Public

Simple i18n JVM library for loading language strings from a csv file

License

Notifications You must be signed in to change notification settings

deltacv/mai18n

Repository files navigation

mai18n - Simple CSV localization for the JVM

Gradle

repositories {
  maven { url 'https://jitpack.io' }
}

dependencies {
  implementation 'com.github.deltacv:mai18n:1.1.0'
}

Usage

Check test.csv for an example i18n file

Load the file:

import io.github.deltacv.mai18n.Language

val language = Language("/test.csv", "en").loadIfNeeded()

Check the languages available for that file & set to another language:

val languages = lang.availableLangs

language.lang = "es"

Get a value from the current language:

val string = language.get("test1")

tr() api

Coming soon.

About

Simple i18n JVM library for loading language strings from a csv file

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages