Skip to content

Commit 337cb6c

Browse files
committed
Localization updates
1 parent 5d5a275 commit 337cb6c

File tree

4 files changed

+28
-15
lines changed

4 files changed

+28
-15
lines changed

Loop.xcworkspace/contents.xcworkspacedata

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Scripts/export_localizations.sh

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@
22

33
LANGUAGES=(ar es ru en zh-Hans nl fr de it nb pl ru es ja pt-BR vi da sv fi ro tr he sk)
44

5-
xcodebuild -exportLocalizations -localizationPath xlocs "${LANGUAGES[@]/#/-exportLanguage }"
5+
argstring="${LANGUAGES[@]/#/-exportLanguage }"
6+
IFS=" "; args=( $=argstring )
67

7-
mkdir -p xliff
8-
find xclocs -name '*.xliff' -exec cp {} xliff \;
8+
xcodebuild -exportLocalizations -localizationPath xlocs $args
99

10-
cd xliff
11-
12-
foreach lang in $LANGUAGES
13-
echo lokalise2 \
14-
--token $LOKALISE_TOKEN \
15-
--project-id 8069387863cdd837d11dd0.82955128 \
16-
file upload \
17-
--file ${lang}.xliff \
18-
--lang-iso ${lang}
19-
end
10+
#mkdir -p xliff
11+
#find xclocs -name '*.xliff' -exec cp {} xliff \;
12+
#
13+
#cd xliff
14+
#
15+
#foreach lang in $LANGUAGES
16+
# echo lokalise2 \
17+
# --token $LOKALISE_TOKEN \
18+
# --project-id 8069387863cdd837d11dd0.82955128 \
19+
# file upload \
20+
# --file ${lang}.xliff \
21+
# --lang-iso ${lang}
22+
#end

0 commit comments

Comments
 (0)