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

feat: use Intl.getCanonicalLocales check locale #450

Merged
merged 2 commits into from
Feb 29, 2024

Conversation

btea
Copy link
Collaborator

@btea btea commented Feb 21, 2024

When users configure LANG related information by themselves, irregular spelling or capitalization problems may occur. However, I am not sure whether to throw an error directly to terminate the process at this time or just output the error message and continue to perform the following steps. (The current action I take is to print the error message and continue.)

Related commit bb11f04

Copy link
Member

@haoqunjiang haoqunjiang left a comment

Choose a reason for hiding this comment

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

Thanks!

Note to myself: the @ts-ignore comment can be removed after upgrading to TypeScript 5.4

microsoft/TypeScript#56079

@haoqunjiang haoqunjiang merged commit 2195946 into vuejs:main Feb 29, 2024
101 checks passed
@btea btea deleted the feat/use-Intl.getCanonicalLocales branch February 29, 2024 12:26
@bmulholland
Copy link

In future, ts-expect-error is a good alternative to ts-ignore; it'll raise an error when it's no longer needed, so you don't have to remember :)

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.

3 participants