Skip to content

[core] [i18n] Add interpolation to translation keys - #4773

Merged
bharatkashyap merged 8 commits into
mui:masterfrom
bharatkashyap:feat/interpolation
Apr 4, 2025
Merged

[core] [i18n] Add interpolation to translation keys#4773
bharatkashyap merged 8 commits into
mui:masterfrom
bharatkashyap:feat/interpolation

Conversation

@bharatkashyap

Copy link
Copy Markdown
Collaborator

Breaking Change

  • Removes oauthSignInTitle, passkeySignInTitle and magicLinkSignInTitle

@bharatkashyap bharatkashyap added the i18n Internationalization. The infrastructure used by localization. label Mar 17, 2025
@mui-bot

mui-bot commented Mar 17, 2025

Copy link
Copy Markdown

Netlify deploy preview

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

Generated by 🚫 dangerJS against efc9bcf

{
"props": { "localeText": { "type": { "name": "object" } } },
"props": {
"localeText": {

Copy link
Copy Markdown
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?

/**
* Locale for components texts
*/
localeText: PropTypes.object,

@Janpot Janpot Mar 17, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Collaborator 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
Copy Markdown
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

@Janpot Janpot left a comment

Copy link
Copy Markdown
Member

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
@bharatkashyap
bharatkashyap merged commit 1b97a86 into mui:master Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

i18n Internationalization. The infrastructure used by localization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants