-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: Prepare for multilingual support #357
Conversation
Not sure if this causes any side effects
Bundle difference
|
@@ -52,7 +52,9 @@ export const App = () => { | |||
</Suspense> | |||
<IntermediateProgress /> | |||
{config.content?.pages.map((page, id) => ( | |||
<RenderPageRoute key={id} page={page} /> | |||
<Suspense key={id} fallback={getFallbackComponent()}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this causes any unwanted side effects? If there is any other solution, feel free to modify or comment. 🙂
Without Suspense
component, UI will not render if useTranslation
hook is in use (error message: A React component suspended while rendering, but no fallback UI was specified
).
Bundle difference
|
Bundle difference
|
Bundle difference
|
Bundle difference
|
Bundle difference
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ich sag einfach Mal ja, es sind ja nur Übersetzungen :)
Bundle difference
|
@@ -96,8 +96,9 @@ export const WelcomeModalPostalCode: React.FC = () => { | |||
<div style={{ display: "flex", flexDirection: "row", alignItems: "center", marginBottom: "10px" }}> | |||
<Checkbox value={checked} checked={checked} onChange={handleCheckedChange} /> | |||
<Typography className={classes.smallText} style={isCheckboxError ? { color: "red" } : {}}> | |||
Ja, ich habe die <Link to={WelcomeModalStep.StepPostalCodeDataPrivacy}>Datenschutzerklärung</Link> zur | |||
Kenntnis genommen und willige ein. | |||
<Trans t={t} i18nKey="welcome.regional-risk.accept-privacy"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why we have to pass t
explicitly here. If anybody has an idea, please let me know. 🙂
Bundle difference
|
🎉 This PR is included in version 1.8.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
No description provided.