Skip to content

Commit 93a7295

Browse files
committed
update Scripts;
* add two flags for upload to lokalise; * replace-modified assists in bringing in translations from other sources; * cleanup-mode removes old strings that have been changed
1 parent a71503e commit 93a7295

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

Scripts/manual_upload_to_lokalise.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,21 @@ foreach lang in $LANGUAGES
3737
# modify the hyphen to underscore to support lokalise lang-iso expectation
3838
lang_iso=$(sed "s/zh-Hans/zh_Hans/g; s/pt-BR/pt_BR/g" <<<"$lang")
3939

40-
# flags to consider (neither in use by default)
41-
# cleanup-mode (was default) - this deleted any keys in localise not in clone
42-
# remove this because we have 3 repos that are work in progress
43-
# replace-modified (was not there) - given that we may have input from crowdin,
44-
# we may need to use this to update to lokalise, but not sure how to handle this
40+
# flags updated to default 2026-03-31
41+
# cleanup-mode - this deletes any keys in lokalise not in clone;
42+
# make sure the appropriate branch, with any new managers is used
43+
# replace-modified - this allows us to accept translations from other sources
44+
# make sure that if there is new input, it is uploaded promptly to avoid
45+
# overwriting what translators provide in lokalise
4546
lokalise2 \
4647
--token $LOKALISE_TOKEN \
4748
--convert-placeholders=false \
4849
--project-id 414338966417c70d7055e2.75119857 \
4950
file upload \
5051
--file ${lang}.xliff \
51-
--lang-iso ${lang_iso}
52+
--lang-iso ${lang_iso} \
53+
--replace-modified \
54+
--cleanup-mode
5255
end
5356

5457
section_divider

0 commit comments

Comments
 (0)