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

feat: Prepare for multilingual support #357

Merged
merged 32 commits into from
Nov 11, 2020

Conversation

jnnwnk
Copy link
Collaborator

@jnnwnk jnnwnk commented Nov 4, 2020

No description provided.

@jnnwnk jnnwnk marked this pull request as draft November 4, 2020 13:16
@github-actions
Copy link

github-actions bot commented Nov 4, 2020

Bundle difference

Asset group Old size New size Diff
all 12.17 MB 12.15 MB -21.33 KB (-0.17%)
documents 9.17 KB 9.17 KB 0 B (0.00%)
scripts 2.41 MB 2.4 MB -13.51 KB (-0.55%)
stylesheets 181.71 KB 181.71 KB 0 B (0.00%)
images 802.2 KB 802.2 KB 0 B (0.00%)
misc 1017.02 KB 1018.97 KB 1.95 KB (0.19%)

@@ -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()}>
Copy link
Collaborator Author

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).

src/components/MultiLineText.tsx Outdated Show resolved Hide resolved
@jnnwnk jnnwnk changed the title Feature/move texts to translation files feat: Prepare for multilingual support Nov 4, 2020
@github-actions
Copy link

github-actions bot commented Nov 4, 2020

Bundle difference

Asset group Old size New size Diff
all 12.17 MB 12.15 MB -22.51 KB (-0.18%)
documents 9.17 KB 9.17 KB 0 B (0.00%)
scripts 2.41 MB 2.4 MB -14.18 KB (-0.57%)
stylesheets 181.71 KB 181.71 KB 0 B (0.00%)
images 802.2 KB 802.2 KB 0 B (0.00%)
misc 1017.02 KB 1018.97 KB 1.95 KB (0.19%)

@github-actions
Copy link

github-actions bot commented Nov 5, 2020

Bundle difference

Asset group Old size New size Diff
all 12.17 MB 12.18 MB 11.68 KB (0.09%)
documents 9.17 KB 9.17 KB 0 B (0.00%)
scripts 2.41 MB 2.41 MB -8.87 KB (-0.36%)
stylesheets 181.71 KB 181.71 KB 0 B (0.00%)
images 802.2 KB 802.2 KB 0 B (0.00%)
misc 1017.02 KB 1021.69 KB 4.67 KB (0.46%)

@github-actions
Copy link

github-actions bot commented Nov 5, 2020

Bundle difference

Asset group Old size New size Diff
all 12.17 MB 12.18 MB 5.89 KB (0.05%)
documents 9.17 KB 9.17 KB 0 B (0.00%)
scripts 2.41 MB 2.4 MB -18.61 KB (-0.75%)
stylesheets 181.71 KB 181.71 KB 0 B (0.00%)
images 802.2 KB 802.2 KB 0 B (0.00%)
misc 1017.02 KB 1.01 MB 18.3 KB (1.80%)

@jnnwnk jnnwnk changed the title feat: Prepare for multilingual support feat: Prepare for multilingual support (app part) Nov 5, 2020
@jnnwnk jnnwnk marked this pull request as ready for review November 5, 2020 16:08
@github-actions
Copy link

github-actions bot commented Nov 5, 2020

Bundle difference

Asset group Old size New size Diff
all 12.17 MB 12.17 MB -1.77 KB (-0.01%)
documents 9.17 KB 9.17 KB 0 B (0.00%)
scripts 2.41 MB 2.39 MB -29.75 KB (-1.20%)
stylesheets 181.71 KB 181.71 KB 0 B (0.00%)
images 802.2 KB 802.2 KB 0 B (0.00%)
misc 1017.02 KB 1.03 MB 33.15 KB (3.26%)

@github-actions
Copy link

github-actions bot commented Nov 5, 2020

Bundle difference

Asset group Old size New size Diff
all 12.17 MB 12.19 MB 15.95 KB (0.13%)
documents 9.17 KB 9.17 KB 0 B (0.00%)
scripts 2.41 MB 2.4 MB -20.04 KB (-0.81%)
stylesheets 181.71 KB 181.71 KB 0 B (0.00%)
images 802.2 KB 802.2 KB 0 B (0.00%)
misc 1017.02 KB 1.03 MB 33.85 KB (3.33%)

Copy link
Collaborator

@DanielHabenicht DanielHabenicht left a 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 :)

@jnnwnk jnnwnk changed the title feat: Prepare for multilingual support (app part) feat: Prepare for multilingual support Nov 6, 2020
@github-actions
Copy link

github-actions bot commented Nov 6, 2020

Bundle difference

Asset group Old size New size Diff
all 12.17 MB 12.19 MB 18.78 KB (0.15%)
documents 9.17 KB 9.17 KB 0 B (0.00%)
scripts 2.41 MB 2.4 MB -19.87 KB (-0.80%)
stylesheets 181.71 KB 181.71 KB 0 B (0.00%)
images 802.2 KB 802.2 KB 0 B (0.00%)
misc 1017.02 KB 1.03 MB 35.7 KB (3.51%)

@@ -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">
Copy link
Collaborator Author

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. 🙂

@github-actions
Copy link

github-actions bot commented Nov 6, 2020

Bundle difference

Asset group Old size New size Diff
all 12.17 MB 12.19 MB 18.93 KB (0.15%)
documents 9.17 KB 9.17 KB 0 B (0.00%)
scripts 2.41 MB 2.4 MB -19.82 KB (-0.80%)
stylesheets 181.71 KB 181.71 KB 0 B (0.00%)
images 802.2 KB 802.2 KB 0 B (0.00%)
misc 1017.02 KB 1.03 MB 35.7 KB (3.51%)

@kimamov kimamov merged commit 8af14e9 into master Nov 11, 2020
@github-actions
Copy link

🎉 This PR is included in version 1.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants