Skip to content

Commit 411e562

Browse files
authored
Update README.md
1 parent e344dbc commit 411e562

File tree

1 file changed

+36
-3
lines changed

1 file changed

+36
-3
lines changed

README.md

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ buildscript {
1818
maven { url "https://jitpack.io" }
1919
}
2020
dependencies {
21-
classpath "com.github.hyperdevs-team:poeditor-android-gradle-plugin:2.2.1"
21+
classpath "com.github.hyperdevs-team:poeditor-android-gradle-plugin:2.3.0"
2222
}
2323
}
2424
```
@@ -33,7 +33,7 @@ buildscript {
3333
maven("https://jitpack.io")
3434
}
3535
dependencies {
36-
classpath("com.github.hyperdevs-team:poeditor-android-gradle-plugin:2.2.1")
36+
classpath("com.github.hyperdevs-team:poeditor-android-gradle-plugin:2.3.0")
3737
}
3838
}
3939
```
@@ -85,7 +85,7 @@ Attribute | Description
8585
```enabled``` | (Since 1.4.0) (Optional) Enables the generation of the block's related task. Defaults to `true`.
8686
```tags``` | (Since 2.1.0) (Optional) List of PoEditor tags to download. Defaults to empty list.
8787
```languageValuesOverrideMap``` | (Since 2.2.0) (Optional) Map of `language_code:path` entries that you want to override the default language values folder with. Defaults to empty map.
88-
```minimumTranslationPercentage``` | (TBD) (Optional) The minimum accepted percentage of translated strings per language. Languages with fewer translated strings will not be fetched. Defaults to no minimum, allowing all languages to be fetched.
88+
```minimumTranslationPercentage``` | (Since 2.3.0) (Optional) The minimum accepted percentage of translated strings per language. Languages with fewer translated strings will not be fetched. Defaults to no minimum, allowing all languages to be fetched.
8989

9090
After the configuration is done, just run the new ```importPoEditorStrings``` task via Android Studio or command line:
9191

@@ -445,6 +445,38 @@ poEditor {
445445

446446
</details>
447447

448+
## Tweaking minimum translation percentages
449+
> Requires version 2.3.0 of the plug-in
450+
451+
The plug-in also allows setting a minimum percentage of translated strings to download languages. This is set-up with the `minimumTranslationPercentage` parameter in your `poEditor` or `poEditorConfig` blocks:
452+
453+
<details open><summary>Groovy</summary>
454+
455+
```groovy
456+
poEditor {
457+
apiToken = "your_api_token"
458+
projectId = 12345
459+
defaultLang = "en"
460+
minimumTranslationPercentage = 85
461+
}
462+
```
463+
464+
</details>
465+
466+
<details><summary>Kotlin</summary>
467+
468+
```kotlin
469+
poEditor {
470+
apiToken = "your_api_token"
471+
projectId = 12345
472+
defaultLang = "en"
473+
minimumTranslationPercentage = 85
474+
}
475+
```
476+
477+
</details>
478+
479+
448480
## iOS alternative
449481
If you want a similar solution for your iOS projects, check this out: [poeditor-parser-swift](https://github.com/hyperdevs-team/poeditor-parser-swift)
450482

@@ -453,6 +485,7 @@ If you want a similar solution for your iOS projects, check this out: [poeditor-
453485
* **[Adrián García](https://github.com/adriangl)** - *Maintainer*
454486
* **[sonnet](https://github.com/rafid059)** - *Contributor*
455487
* **[Wojciech Kryg](https://github.com/wojciechkryg)** - *Contributor*
488+
* **[Stanislav Dimitrov](https://github.com/nokite)** - *Contributor*
456489

457490
## Acknowledgements
458491
The work in this repository up to April 28th, 2021 was done by [bq](https://github.com/bq).

0 commit comments

Comments
 (0)