File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,16 +33,16 @@ $SCRIPT ios --key $LOCO_API_KEY --map 'en=en' --map 'zh=zh-Hant' --output "$PROJ
3333### Android via Gradle task & Shell script
3434
35351 . Download the latest release, unzip it to your project root or anywhere you prefer.
36- 2 . Create a bash script in your project root, e.g. ` autoLoco .sh`
37- 3 . Make it executable by ` chmod +x autoLoco .sh `
36+ 2 . Create a bash script in your project root, e.g. ` updateLoco .sh`
37+ 3 . Make it executable by ` chmod +x updateLoco .sh `
38384 . Paste script and modify it to match your project
3939
4040``` bash
4141KEY=YOUR_API_KEY_HERE # 1)Change this
4242SCRIPT=LocoMobileExport/Sources/auto_export.sh # 2)..and this
4343
4444# 3)..and the map arguments below
45- SCRIPT android --key KEY --map " en_HK=values" --output " ${PWD} /app/src/main/res"
45+ $ SCRIPT android --key $ KEY --map " en_HK=values" --output " ${PWD} /app/src/main/res"
4646```
4747
48485 . Add these lines in your ` Build.gradle `
@@ -55,7 +55,7 @@ task locoExport(type: Exec) {
5555 }
5656}
5757//run task before every build
58- prebuild .dependsOn(locoExport)
58+ preBuild .dependsOn(locoExport)
5959
6060//or you can choose to update loco when you clean the project
6161//clean.dependsOn(locoExport)
You can’t perform that action at this time.
0 commit comments