This is a Gradle project to install the localize-with-spreadsheet configurations in our projects and create a gradle task to update localizations from a Google spreadsheet.
-
Setup IntelliJ IDEA (https://www.jetbrains.com/idea/download/#section=mac).
-
Download and open localizations-gradle-plugin project on IntelliJ IDEA.
-
Once the project is build, go to View -> Tool Windows -> Gradle.
-
Double click the following task: Tasks -> publishing -> publishToMavenLocal.
The below steps must be applied to the top-level build.gradle file.
Node.js must me installed to use this script
- Add local repository of Maven and plugin's dependency:
buildscript {
...
repositories {
...
mavenLocal()
}
dependencies {
...
classpath 'com.ebs-integrator.plugins:localizations-kt:1.0.0'
}
}
- Apply the plugin
apply plugin: 'com.ebs-integrator.plugins.localizations-kt'
-
Create an
update-localization.js
file. Follow Step 1-4 instructions from: https://github.com/ebs-integrator/localize-with-spreadsheet -
Place this file into the root directory of your project
-
Run localization task: Tasks -> ebs plugins -> updateLocalization