LightningLanguage

Language module of the Storm Framework

License

License

Categories

Categories

IDE Development Tools ORM Data
GroupId

GroupId

com.3sidedcube.storm
ArtifactId

ArtifactId

language
Last Version

Last Version

0.1a
Release Date

Release Date

Type

Type

aar
Description

Description

LightningLanguage
Language module of the Storm Framework
Project URL

Project URL

https://github.com/3sidedcube/Android-LightningLanguage.git
Source Code Management

Source Code Management

https://github.com/3sidedcube/Android-LightningLanguage.git

Download language

How to add to project

<!-- https://jarcasting.com/artifacts/com.3sidedcube.storm/language/ -->
<dependency>
    <groupId>com.3sidedcube.storm</groupId>
    <artifactId>language</artifactId>
    <version>0.1a</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.3sidedcube.storm/language/
implementation 'com.3sidedcube.storm:language:0.1a'
// https://jarcasting.com/artifacts/com.3sidedcube.storm/language/
implementation ("com.3sidedcube.storm:language:0.1a")
'com.3sidedcube.storm:language:aar:0.1a'
<dependency org="com.3sidedcube.storm" name="language" rev="0.1a">
  <artifact name="language" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.3sidedcube.storm', module='language', version='0.1a')
)
libraryDependencies += "com.3sidedcube.storm" % "language" % "0.1a"
[com.3sidedcube.storm/language "0.1a"]

Dependencies

compile (4)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.14.8
com.3sidedcube.storm : util jar 0.1a
com.google.code.gson : gson jar 2.3
com.android.support » support-annotations jar 20.0.0

Project Modules

There are no modules declared in this project.

#Storm Library - Module Language

Storm is a collection of libraries that helps make mobile and desktop applications easy to create using a high quality WYSIACATWYG editor.

This module's purpose is to help localise an app using key/value pairing. It works by detecting the language and locale of the device and loading an appropriate language, if one is available.

#Usage

##Gradle

Simply include the following for your gradle dependencies com.3sidedcube.storm:language:0.1a.

Note The versioning of the library will always be as follows:

Major version.Minor version.Bug fix

It is safe to use + in part of of the Bug fix version, but do not trust it 100%. Always use a specific version to prevent regression errors.

##Code

Include the following into your main application singleton

LanguageSettings.Builder languageSettings = new LanguageSettings.Builder(this).build();

The default language that gets loaded by the module will be located in assets assets://languages/xxx_xx.json You will need to override this to provide your own default language path by using the defaultLanguage() method in LanguageSettings$Builder.

Example:

languageSettings = new LanguageSettings.Builder(this)
	.registerUriResolver("cache", ContentSettings.getInstance().getDefaultResolver()) // You can include this line if you are depending on ContentSettings
	.defaultLanguage(Uri.parse("cache://languages/" + LanguageManager.getInstance().getLocale(this) + ".json"))
	.build();

#Documentation

See the Javadoc for full in-depth code-level documentation

#Contributors

Callum Taylor (9A8BAD), Tim Mathews (5C4869), Matt Allen (DB74F5), Alan Le Fournis (067EA0)

#License

See LICENSE.md

com.3sidedcube.storm

3 SIDED CUBE

We're an app development and digital product company that specialises in tech for good.

Versions

Version
0.1a