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] [i18n] Add interpolation to translation keys #4773

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

bharatkashyap
Copy link
Member

Breaking Change

  • Removes oauthSignInTitle, passkeySignInTitle and magicLinkSignInTitle

@bharatkashyap bharatkashyap added the i18n internationalization label Mar 17, 2025
@mui-bot
Copy link

mui-bot commented Mar 17, 2025

Netlify deploy preview

https://deploy-preview-4773--mui-toolpad-docs.netlify.app/

Generated by 🚫 dangerJS against efc9bcf

@@ -1,5 +1,12 @@
{
"props": { "localeText": { "type": { "name": "object" } } },
"props": {
"localeText": {
Copy link
Member

Choose a reason for hiding this comment

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

Can we keep this type the same as in X?

@@ -105,7 +103,47 @@ LocalizationProvider.propTypes /* remove-proptypes */ = {
/**
* Locale for components texts
*/
localeText: PropTypes.object,
Copy link
Member

@Janpot Janpot Mar 17, 2025

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, but I felt that having the explicit props is helpful at least on the LocalizationProvider docs, it is typed as object for every other component. We can revert it if you think it doesn't make sense

Copy link
Member

Choose a reason for hiding this comment

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

We can revert it if you think it doesn't make sense

It makes sense, but I think it makes more sense to be consistent with X

Copy link
Member

@Janpot Janpot left a comment

Choose a reason for hiding this comment

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

I believe the proptype of localeText was deliberate

@bharatkashyap bharatkashyap mentioned this pull request Mar 19, 2025
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i18n internationalization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sign-In button Localization (oauth,passkey,magicLink)
3 participants