Skip to content

Filters when pulling translations

Latest
Compare
Choose a tag to compare
@lukin0110 lukin0110 released this 10 Jul 12:21

It's now possible to add filters to translations. This allows you to download filtered translations, for example:

  • only strings that are actually translated
  • only strings that are untranslated
  • only strings that need proefreading
  • ...

Filters are applied when your run the gradle poeditorPull command.

Example config:

poeditor {
    apikey 'your api key here'
    projectId 'your project id here'
    type 'android_strings'
    tagsNew '1.0'

    terms 'App/src/main/res/values/strings.xml'
    trans 'en', 'App/src/main/res/values/strings.xml'
    trans 'nl', 'App/src/main/res/values-nl/strings.xml'
    trans 'fr', 'App/src/main/res/values-fr/strings.xml'

    filters 'nl', 'translated'
    filters 'fr', 'translated, automatic'
}