-
Notifications
You must be signed in to change notification settings - Fork 77
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
(fix): Wrap page header in t function #226
Conversation
Size Change: -50 B (-0.01%) Total Size: 373 kB ℹ️ View Unchanged
|
Thanks, @NethmiRodrigo. I wouldn't expect to see changes to the non- |
@denniskigen yeah makes sense. I just added the same text that was there from |
yeah, best to see what we get back from Transifex so we know if there's anything that should be fixed upstream. |
Alrighty @denniskigen , done |
72b31f4
to
aebf942
Compare
// t('home', 'Home'); | ||
|
||
registerBreadcrumbs([ | ||
{ | ||
path: `${window.spaBase}/${pageName}`, | ||
title: () => Promise.resolve(window.i18next.t('home', { defaultValue: 'Home', ns: moduleName })), | ||
}, | ||
]); |
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.
Removed because we're no longer using the breadcrumbs navigation pattern in the Home app.
/** | ||
* Translation for the home page header | ||
* // t('home', 'Home') | ||
*/ | ||
return <PageHeader className={styles.pageHeader} illustration={<HomePictogram />} title={t(dashboardTitle)} />; |
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.
@NethmiRodrigo I think this is the correct pattern to follow for translating the dashboard title.
This commit cuts a new patch release of the Home app, v5.5.1, with the following changes: * (fix) Wrap page header in t function by @NethmiRodrigo in #226 * (chore) Update translations from Transifex by @github-actions in #219 * (chore) Bump webpack from 5.93.0 to 5.94.0 by @dependabot in #220 * (chore) Bump express from 4.19.2 to 4.21.0 by @dependabot in #221 * (chore) Bump rollup from 2.77.2 to 2.79.2 by @dependabot in #223 * (chore) Update translations from Transifex by @github-actions in #224 * (chore) Bump http-proxy-middleware from 2.0.6 to 2.0.7 by @dependabot in #225 * (chore) Tweak tsconfig lib targets by @denniskigen in #227 * (chore) Remove unused test wrapper helper by @denniskigen in #228 * (chore) Update translations from Transifex by @github-actions in #229 * (docs) O3-3525: Enhance README by @Twiineenock in #211
This commit cuts a new patch release of the Home app, v5.5.1, with the following changes: * (fix) Wrap page header in t function by @NethmiRodrigo in #226 * (chore) Update translations from Transifex by @github-actions in #219 * (chore) Bump webpack from 5.93.0 to 5.94.0 by @dependabot in #220 * (chore) Bump express from 4.19.2 to 4.21.0 by @dependabot in #221 * (chore) Bump rollup from 2.77.2 to 2.79.2 by @dependabot in #223 * (chore) Update translations from Transifex by @github-actions in #224 * (chore) Bump http-proxy-middleware from 2.0.6 to 2.0.7 by @dependabot in #225 * (chore) Tweak tsconfig lib targets by @denniskigen in #227 * (chore) Remove unused test wrapper helper by @denniskigen in #228 * (chore) Update translations from Transifex by @github-actions in #229 * (docs) O3-3525: Enhance README by @Twiineenock in #211
Requirements
Summary
This PR wraps the page header title in the
t
function so that it can be translated. I had to addHome
with the capitalH
to the translation files, as the keyhome
doesn't get applied to the text.Screenshots
After fix:
Before fix:
Related issue
Other