Skip to content

Commit f132a3b

Browse files
authored
Update locale fallbacks to use the version passed into the installation script (#193)
1 parent b60ab88 commit f132a3b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

scripts/install_docs_from_release.sh

+11-11
Original file line numberDiff line numberDiff line change
@@ -22,36 +22,36 @@ if [ "$LANG" != "" ]; then
2222
LANG_ARRAY=("de" "es" "fr" "it" "nl" "pt" "zh" "cs" "hu" "id" "ja" "ko" "pl" "pt" "ru" "sv" "tr")
2323

2424
if [[ "${LANG_ARRAY[*]}" =~ "$MAIN_LANG_PREFIX" ]]; then
25-
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/$MAIN_LANG_PREFIX-$MAIN_LANG_PREFIX-scenarios.zip"
25+
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/$MAIN_LANG_PREFIX-$MAIN_LANG_PREFIX-scenarios.zip"
2626
if [ "$MAIN_LANG_PREFIX" = "pt" ]; then
2727
if [ "$LANG" = "pt-pt" ]; then
28-
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/pt-pt-scenarios.zip"
28+
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/pt-pt-scenarios.zip"
2929
elif [ "$LANG" = "pt-br" ]; then
30-
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/pt-br-scenarios.zip"
30+
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/pt-br-scenarios.zip"
3131
else
32-
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/pt-pt-scenarios.zip"
32+
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/pt-pt-scenarios.zip"
3333
fi
3434
fi
3535
if [ "$MAIN_LANG_PREFIX" = "zh" ]; then
3636
if [ "$LANG" = "zh-cn" ]; then
37-
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/zh-cn-scenarios.zip"
37+
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/zh-cn-scenarios.zip"
3838
elif [ "$LANG" = "zh-tw" ]; then
39-
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/zh-tw-scenarios.zip"
39+
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/zh-tw-scenarios.zip"
4040
else
41-
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/zh-cn-scenarios.zip"
41+
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/zh-cn-scenarios.zip"
4242
fi
4343
fi
4444
if [ "$MAIN_LANG_PREFIX" = "cs" ]; then
45-
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/$MAIN_LANG_PREFIX-cz-scenarios.zip"
45+
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/$MAIN_LANG_PREFIX-cz-scenarios.zip"
4646
fi
4747
if [ "$MAIN_LANG_PREFIX" = "ja" ]; then
48-
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/$MAIN_LANG_PREFIX-jp-scenarios.zip"
48+
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/$MAIN_LANG_PREFIX-jp-scenarios.zip"
4949
fi
5050
if [ "$MAIN_LANG_PREFIX" = "ko" ]; then
51-
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/$MAIN_LANG_PREFIX-kr-scenarios.zip"
51+
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/$MAIN_LANG_PREFIX-kr-scenarios.zip"
5252
fi
5353
if [ "$MAIN_LANG_PREFIX" = "sv" ]; then
54-
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/$MAIN_LANG_PREFIX-se-scenarios.zip"
54+
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/$MAIN_LANG_PREFIX-se-scenarios.zip"
5555
fi
5656
fi
5757
fi

0 commit comments

Comments
 (0)