-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Remove unnecessary new Promise call in ProcessLocalesPlugin #8310
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
Remove unnecessary new Promise call in ProcessLocalesPlugin #8310
Conversation
|
That's unfortunately a vue-i18n "feature": https://vue-i18n.intlify.dev/guide/essentials/fallback#implicit-fallback-using-locales While we can stop it happening by adding a exclamation mark to the end of the locale code when setting the locale, that presumably also means that everywhere we read the locale, we would need to remove it before passing the locale code to other APIs e.g. the Intl ones. So I haven't tried doing that yet. |
PikachuEXE
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK let's me try to see if that can be suppressed but not related to PR
|
That's very odd, I presume you just switched to this branch and then ran |
|
Correct also ran yarn before running yarn dev |
ae2c318 to
227cd53
Compare
|
@efb4f5ff-1298-471a-8973-3d47447115dc I have taken a different approach now, could you please try again? |


Pull Request Type
Description
This pull request removes the unecessary
new Promise()calls around the async functions in our ProcessLocalesPlugin webpack plugin.Testing
yarn dev, if the webpack build doesn't fail these changes work correctly for dev mode.Desktop