Skip to content

Commit

Permalink
Update locale fallbacks to use the version passed into the installati…
Browse files Browse the repository at this point in the history
…on script (#193)
  • Loading branch information
vmarcella authored Apr 10, 2024
1 parent b60ab88 commit f132a3b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions scripts/install_docs_from_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,36 +22,36 @@ if [ "$LANG" != "" ]; then
LANG_ARRAY=("de" "es" "fr" "it" "nl" "pt" "zh" "cs" "hu" "id" "ja" "ko" "pl" "pt" "ru" "sv" "tr")

if [[ "${LANG_ARRAY[*]}" =~ "$MAIN_LANG_PREFIX" ]]; then
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/$MAIN_LANG_PREFIX-$MAIN_LANG_PREFIX-scenarios.zip"
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/$MAIN_LANG_PREFIX-$MAIN_LANG_PREFIX-scenarios.zip"
if [ "$MAIN_LANG_PREFIX" = "pt" ]; then
if [ "$LANG" = "pt-pt" ]; then
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/pt-pt-scenarios.zip"
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/pt-pt-scenarios.zip"
elif [ "$LANG" = "pt-br" ]; then
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/pt-br-scenarios.zip"
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/pt-br-scenarios.zip"
else
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/pt-pt-scenarios.zip"
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/pt-pt-scenarios.zip"
fi
fi
if [ "$MAIN_LANG_PREFIX" = "zh" ]; then
if [ "$LANG" = "zh-cn" ]; then
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/zh-cn-scenarios.zip"
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/zh-cn-scenarios.zip"
elif [ "$LANG" = "zh-tw" ]; then
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/zh-tw-scenarios.zip"
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/zh-tw-scenarios.zip"
else
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/zh-cn-scenarios.zip"
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/zh-cn-scenarios.zip"
fi
fi
if [ "$MAIN_LANG_PREFIX" = "cs" ]; then
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/$MAIN_LANG_PREFIX-cz-scenarios.zip"
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/$MAIN_LANG_PREFIX-cz-scenarios.zip"
fi
if [ "$MAIN_LANG_PREFIX" = "ja" ]; then
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/$MAIN_LANG_PREFIX-jp-scenarios.zip"
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/$MAIN_LANG_PREFIX-jp-scenarios.zip"
fi
if [ "$MAIN_LANG_PREFIX" = "ko" ]; then
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/$MAIN_LANG_PREFIX-kr-scenarios.zip"
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/$MAIN_LANG_PREFIX-kr-scenarios.zip"
fi
if [ "$MAIN_LANG_PREFIX" = "sv" ]; then
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/$MAIN_LANG_PREFIX-se-scenarios.zip"
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/$RELEASE/$MAIN_LANG_PREFIX-se-scenarios.zip"
fi
fi
fi
Expand Down

0 comments on commit f132a3b

Please sign in to comment.