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

[core] Fix l10n script on Windows #12550

Merged
merged 2 commits into from Mar 25, 2024
Merged

Conversation

LukasTy
Copy link
Member

@LukasTy LukasTy commented Mar 25, 2024

Avoids incorrect path building on Windows.
Example: da87e35

P.S. Tested on a local Windows machine.

@LukasTy LukasTy added the core Infrastructure work going on behind the scenes label Mar 25, 2024
@LukasTy LukasTy requested a review from a team March 25, 2024 09:46
@LukasTy LukasTy self-assigned this Mar 25, 2024
@@ -442,7 +442,10 @@ async function run(argv: yargs.ArgumentsCamelCase<HandlerArgv>) {
}
if (!missingTranslations[localeCode][packageInfo.key]) {
missingTranslations[localeCode][packageInfo.key] = {
path: localePath.replace(workspaceRoot, '').slice(1), // Remove leading slash
// prettier-ignore
Copy link
Member Author

Choose a reason for hiding this comment

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

Prettier would put every function call on a new line.
Given that the comments apply in the way I've formatted, I've added a prettier-ignore as it looks more readable this way. 🤔

@mui-bot
Copy link

mui-bot commented Mar 25, 2024

Deploy preview: https://deploy-preview-12550--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 707ebe7

@LukasTy LukasTy merged commit 1d2d053 into mui:master Mar 25, 2024
16 checks passed
@LukasTy LukasTy deleted the fix-l10n-on-windows branch March 25, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants