Skip to content

A custom Gradle Plugin useful to sync loco string resources to local projects.

License

Notifications You must be signed in to change notification settings

JonathanImperato/loco-strings-sync

Repository files navigation

loco-strings-sync

A custom Gradle Plugin useful to sync loco string resources to local projects.

Usage

  • Import the plugin in your module-level build.gradle
    plugins {
      id("io.github.jonathanimperato.loco-sync") version "0.0.13"
    }
  • Add:
    LocoSync {
          configs.set(arrayOf(
              LocoConfig().also {
                  it.apiKey = "API_KEY1"
                  it.fileName = "strings"
                  it.languages =  arrayOf("en", "it")
              },
              LocoConfig().also {
                  it.apiKey = "API_KEY2"
                  it.fileName = "strings_second"
                  it.languages = arrayOf("en", "it")
              }
          ))
          resDir.set("$projectDir/src/main/res")
    }
    
  • Finally, after syncing, you will have the task LocoStringsSync that will automatically sync all you chosen strings.

About

A custom Gradle Plugin useful to sync loco string resources to local projects.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages