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

Locale language translate issue on <TitlePortal /> #8860

Closed
tsudhayakumar1996 opened this issue Apr 26, 2023 · 2 comments
Closed

Locale language translate issue on <TitlePortal /> #8860

tsudhayakumar1996 opened this issue Apr 26, 2023 · 2 comments

Comments

@tsudhayakumar1996
Copy link

What you were expecting:

What happened instead:

Steps to reproduce:

Related code:

insert short code snippets here

Other information:

Environment

  • React-admin version:
  • Last version that did not exhibit the issue (if applicable):
  • React version:
  • Browser:
  • Stack trace (in case of a JS error):
@tsudhayakumar1996 tsudhayakumar1996 changed the title Hi ra team, Hi ra team, Recently I have developed one react-admin application, while changing the locale language all my components text has changed but the list, create, edit title has not updated, instead it hides on the first change, if I go back or click any other options in the ui the translated title is shown in the app bar, Apr 26, 2023
@tsudhayakumar1996 tsudhayakumar1996 changed the title Hi ra team, Recently I have developed one react-admin application, while changing the locale language all my components text has changed but the list, create, edit title has not updated, instead it hides on the first change, if I go back or click any other options in the ui the translated title is shown in the app bar, Locale language translate issue Apr 26, 2023
@tsudhayakumar1996
Copy link
Author

Recently I have developed one react-admin application, while changing the locale language all other elements text has changed but the list, create, edit title has not updated, instead it hides on the first change, if I go back or click any other options in the ui, then the translated title is shown in the app bar.

this is my i18nProvider which one is given to the component
import en from "./en";
import fr from "./fr";
// r18
import polyglotI18nProvider from "ra-i18n-polyglot";

const messages: any = {
en, fr
}

export default polyglotI18nProvider(
(locale: string) => messages[locale],
"en",
[{ locale: "en", name: "English" }, { locale: "fr", name: "Français" }],
)

@tsudhayakumar1996 tsudhayakumar1996 changed the title Locale language translate issue Locale language translate issue on <TitlePortal /> Apr 26, 2023
@fzaninotto
Copy link
Member

You didn't use the issue template, so we can't consider this issue.

Besides, it's probably fixed in 4.9.4 (see #8846)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants