Skip to content

Refactor language parameter mapping in install_from_release.sh#180

Merged
naioja merged 2 commits into
Azure:mainfrom
naioja:aj_locale
Mar 6, 2024
Merged

Refactor language parameter mapping in install_from_release.sh#180
naioja merged 2 commits into
Azure:mainfrom
naioja:aj_locale

Conversation

@naioja

@naioja naioja commented Feb 29, 2024

Copy link
Copy Markdown
Collaborator

Refactor language parameter mapping in install_from_release.sh for all of translation we offer, including a catch all option.

Comment thread scripts/install_from_release.sh Outdated
else
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/zh-cn-scenarios.zip"
fi
elif [[ ${LANG_ARRAY_1[@]} =~ $MAIN_LANG_PREFIX ]]; then

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we surround these variable accesses with quotations?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added required variable quotation.

@mbifeld mbifeld left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for the fix Adrian! Added a few comments

Comment thread scripts/install_from_release.sh
Comment thread scripts/install_from_release.sh Outdated
- L14 setting a default value for SCENARIOS
- L21 variable quotation
- L21-L53 reworking the logic to choose translations files based on locale passed to the script
@naioja naioja added this pull request to the merge queue Mar 6, 2024
Merged via the queue into Azure:main with commit 1429e12 Mar 6, 2024
@naioja naioja deleted the aj_locale branch March 6, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants