项目作者: Likandr

项目描述 :
Plugin android gradle for updating localization files using lokalise.co
高级语言: Groovy
项目地址: git://github.com/Likandr/lokalise-plugin.git
创建时间: 2018-07-13T20:16:30Z
项目社区:https://github.com/Likandr/lokalise-plugin

开源协议:MIT License

下载


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:

  1. buildscript {
  2. repositories {
  3. ..
  4. }
  5. dependencies {
  6. ..
  7. classpath 'com.github.likandr:lokalise-plugin:1.3'
  8. ..
  9. }
  10. }

in gradle, app level:

  1. apply plugin: 'com.android.application'
  2. ..
  3. apply plugin: 'com.likandr.lokalise'
  4. ..
  5. android {
  6. ..
  7. }
  8. dependencies {
  9. ..
  10. }
  11. //it important and should be specified id(project) and token(api with r/w the access rights)
  12. lokalise {
  13. id "XXXXXXXXXXXXXXXXXXXXXX.XXXXXXXX"
  14. token "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  15. }
  16. //if need autoupdate strings before build uncomment the following line[1]:
  17. //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.