Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor language parameter mapping in install_from_release.sh #180

Merged
merged 2 commits into from
Mar 6, 2024

Conversation

naioja
Copy link
Collaborator

@naioja naioja commented Feb 29, 2024

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

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
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
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.

Copy link
Member

@mbifeld mbifeld left a comment

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

- 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
2 of 4 checks passed
@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