We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
getLocaleCache now returns Promise, so the ReturnType of getCurrentLocale must be Promise
next-international/packages/next-international/src/app/server/create-get-current-locale.ts
Line 5 in c332633
return getLocaleCache() as Promise<LocalesKeys>;
To Reproduce Steps to reproduce the behavior:
Expected behavior getCurrentLocale returns Promise.
Screenshots If applicable, add screenshots to help explain your problem.
About (please complete the following information):
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
+1 experiencing this bug in v1.3.0. Fixed it for my app by awaiting getCurrentLocale (even though typescript says its not a promise).
Sorry, something went wrong.
Fixed in #431, released in version 1.3.1.
No branches or pull requests
Describe the bug
getLocaleCache now returns Promise, so the ReturnType of getCurrentLocale must be Promise
next-international/packages/next-international/src/app/server/create-get-current-locale.ts
Line 5 in c332633
To Reproduce
Steps to reproduce the behavior:
Expected behavior
getCurrentLocale returns Promise.
Screenshots
If applicable, add screenshots to help explain your problem.
About (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: