File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -12,17 +12,18 @@ IFS=" "; args=( $=argstring )
12
12
13
13
xcodebuild -scheme LoopWorkspace -exportLocalizations -localizationPath xclocs $args
14
14
15
- mkdir -p xliff
16
- find xclocs -name ' *.xliff' -exec cp {} xliff \;
15
+ mkdir -p xliff_out
16
+ find xclocs -name ' *.xliff' -exec cp {} xliff_out \;
17
17
18
- cd xliff
18
+ cd xliff_out
19
19
20
20
foreach lang in $LANGUAGES
21
21
22
22
lang_iso=$( sed " s/zh-Hans/zh_Hans/g; s/pt-BR/pt_BR/g" <<< " $lang" )
23
23
24
24
lokalise2 \
25
25
--token $LOKALISE_TOKEN \
26
+ --convert-placeholders false \
26
27
--project-id 414338966417c70d7055e2.75119857 \
27
28
file upload \
28
29
--file ${lang} .xliff \
Original file line number Diff line number Diff line change 14
14
date=` date`
15
15
16
16
# Fetch translations from Lokalise
17
- rm -rf xliff
17
+ rm -rf xliff_in
18
18
lokalise2 \
19
19
--token " $LOKALISE_TOKEN " \
20
20
--project-id " 414338966417c70d7055e2.75119857" \
@@ -24,7 +24,7 @@ lokalise2 \
24
24
--original-filenames=false \
25
25
--export-empty-as skip \
26
26
--replace-breaks=false \
27
- --unzip-to ./xliff
27
+ --unzip-to ./xliff_in
28
28
29
29
projects=(LoopKit:AmplitudeService:dev LoopKit:CGMBLEKit:dev LoopKit:G7SensorKit:main LoopKit:LogglyService:dev LoopKit:Loop:dev LoopKit:LoopKit:dev LoopKit:LoopOnboarding:dev LoopKit:LoopSupport:dev LoopKit:NightscoutAPIClient:master ps2:NightscoutService:dev LoopKit:OmniBLE:dev LoopKit:TidepoolKit:dev LoopKit:TidepoolService:dev LoopKit:dexcom-share-client-swift:dev ps2:rileylink_ios:dev LoopKit:OmniKit:main LoopKit:MinimedKit:main)
30
30
@@ -43,7 +43,7 @@ set -o pipefail && time xcodebuild -workspace LoopWorkspace.xcworkspace -scheme
43
43
44
44
45
45
# Apply translations
46
- foreach file in xliff /* .xliff
46
+ foreach file in xliff_in /* .xliff
47
47
xcodebuild -workspace LoopWorkspace.xcworkspace -scheme " LoopWorkspace" -importLocalizations -localizationPath $file
48
48
end
49
49
You can’t perform that action at this time.
0 commit comments