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

Avoiding try-catch block on examples/app-dir-i18n-routing #51786

Conversation

milovangudelj
Copy link
Contributor

Negotiator.languages() accepts an array of available locales and returns only results that are present in it.

This effectively eliminates the need to use a try-catch block when calling matchLocale.

`Negotiator.languages()` accepts an array of available locales and returns only results that are present in it. 

This effectively eliminates the need to use a try-catch block when calling `matchLocale`.
@ijjk ijjk added the examples Issue was opened via the examples template. label Jun 25, 2023
@milovangudelj milovangudelj changed the title Avoiding try-catch block Avoiding try-catch block on examples/app-dir-i18n-routing Jun 25, 2023
ijjk
ijjk previously approved these changes Jun 26, 2023
@ijjk ijjk added the CI approved Approve running CI for fork label Jun 26, 2023
@milovangudelj
Copy link
Contributor Author

Do I have to keep updating the branch until it gets approved and merged or is that up to whoever is reviewing/approving it?

@ijjk ijjk merged commit 5b5ea47 into vercel:canary Jun 28, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CI approved Approve running CI for fork examples Issue was opened via the examples template. locked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants