Skip to content

Conversation

@absidue
Copy link
Member

@absidue absidue commented Nov 18, 2025

Pull Request Type

  • Other

Description

This pull request removes the unecessary new Promise() calls around the async functions in our ProcessLocalesPlugin webpack plugin.

Testing

  1. The linter workflow on this pull request being successful indicates that these changes work correctly for release production.
  2. Run yarn dev, if the webpack build doesn't fail these changes work correctly for dev mode.

Desktop

  • OS: Windows
  • OS Version: 11

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) November 18, 2025 21:55
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Nov 18, 2025
@PikachuEXE
Copy link
Collaborator

Not caused by this PR but anyway to make it gives warning about en-US instead of en (dev
image

@absidue
Copy link
Member Author

absidue commented Nov 19, 2025

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.

Copy link
Collaborator

@PikachuEXE PikachuEXE left a 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

@efb4f5ff-1298-471a-8973-3d47447115dc

String look like this now. Also unrelated?

VirtualBoxVM_JF4pXuCvwA

@absidue
Copy link
Member Author

absidue commented Nov 21, 2025

That's very odd, I presume you just switched to this branch and then ran yarn dev?

@efb4f5ff-1298-471a-8973-3d47447115dc

Correct also ran yarn before running yarn dev

@absidue absidue added PR: changes requested and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Nov 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants