From d487ac07caaef0713e2eec93dfdd8f61405d61b2 Mon Sep 17 00:00:00 2001 From: Yannick Pulver Date: Tue, 4 Aug 2020 22:05:58 +0200 Subject: [PATCH] 0.1.5 - Adds fallback language --- README.md | 13 +++++++------ gradle/meta.gradle | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index be9f7e8..ff4efcb 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ buildscript { dependencies { //… - classpath 'com.appswithlove.loco:loco:0.1.4' + classpath 'com.appswithlove.loco:loco:0.1.5' } } ``` @@ -38,12 +38,13 @@ apply plugin: 'com.appswithlove.loco' ```groovy Loco { apiKey = 'YOUR_API_KEY' - lang = ['de', 'fr'] //add as many languages as you want, they need to exist on Localise.biz - defLang = 'de' //one language that will result as the default language and be put in values/strings.xml + lang = ['de', 'fr'] // add as many languages as you want, they need to exist on localise.biz + defLang = 'de' // one language that will result as the default language and be put in values/strings.xml resDir = "$projectDir/src/main/res" - placeholderPattern = null // optional regex pattern with leading ~, default -> null + placeholderPattern = null // optional, regex pattern with leading ~, default -> null hideComments = false // optionally hide comments & loco metadata - tags = false // optionally filter assets by comma-separated tag names. Match any tag with `*` and negate tags by prefixing with `!` + tags = 'Android, !iOS' // optional, filter assets by comma-separated tag names. Match any tag with `*` and negate tags by prefixing with `!` + fallbackLang = 'en' // optional, fallback language when not present } ``` @@ -88,7 +89,7 @@ buildscript { ... } dependencies{ - classpath 'com.appswithlove.loco:loco:0.1.4' + classpath 'com.appswithlove.loco:loco:0.1.5' ... } } diff --git a/gradle/meta.gradle b/gradle/meta.gradle index 09a6a19..cb3c49e 100644 --- a/gradle/meta.gradle +++ b/gradle/meta.gradle @@ -1,6 +1,6 @@ ext { meta = [:] - meta.versionName = '0.1.4' + meta.versionName = '0.1.5' meta.group = 'com.appswithlove.loco' meta.pomArtifactId = 'loco' meta.javaCompatibility = 1.6