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

Fix issue with expected format of language code #104

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bmrfvr
Copy link

@bmrfvr bmrfvr commented Oct 24, 2023

The format of the language code is [language]-[country] but this method is trying to split it based on a format of [language]_[country]

I also updated one of the tests to have one of the failing test cases so we can ensure this doesn't break in the future.

Before:
MicrosoftTeams-image (27)
After:
MicrosoftTeams-image (28)

@mattjohnsonpint
Copy link
Owner

Thanks for looking into this! I'll take a closer look to validate the change, adjust the verification tests, and merge as soon as I can find some free time.

@bmrfvr
Copy link
Author

bmrfvr commented Oct 25, 2023

Thanks for looking into this! I'll take a closer look to validate the change, adjust the verification tests, and merge as soon as I can find some free time.

No problem!

There is a simple workaround if you more issues are created before this issue gets resolved. You can just simply do the .ToLowerInvariant().Replace('-', '_') yourself and pass that in instead of a proper language code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants