Skip to content

Plugin android gradle for updating localization files using lokalise.co

License

Notifications You must be signed in to change notification settings

Likandr/lokalise-plugin

Repository files navigation

Android gradle plugin for refresh localisation strings using lokalise.co

CircleCI

This is a gradle plugin for android. Refresh (upload and download) localization files using lokalise.co

Use guide:

in gradle, project level:

buildscript {
    repositories {
        ..
    }
    dependencies {
	..
        classpath  'com.github.likandr:lokalise-plugin:1.3'
	..
    }
}

in gradle, app level:

apply plugin: 'com.android.application'
..
apply plugin: 'com.likandr.lokalise'
..
android {
    ..
}
dependencies {
    ..
}
//it important and should be specified id(project) and token(api with r/w the access rights)
lokalise {
    id "XXXXXXXXXXXXXXXXXXXXXX.XXXXXXXX"
    token "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}

//if need autoupdate strings before build uncomment the following line[1]: 
//preBuild.dependsOn "refreshStrings"

P.s. List of available manipulations is in the gradle folder lokalise.

P.p.s. The plugin itself recognizes the default language of the project from lokalise.

[1] run with param replace=0(when uploading) --- replace existing translations of the keys imported - disabled. But when downloading transfers will be overwritten.

About

Plugin android gradle for updating localization files using lokalise.co

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages