Skip to content

Commit

Permalink
Fix typo and conditional render header if forced theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbrunvoll committed Jan 15, 2025
1 parent 53c5513 commit daf6596
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/layouts/shared/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ export default function Footer({ withoutSettings = false }: FooterProps) {
{!withoutSettings && (
<section className={style.footer__section}>
<h3 className={style.footer__title}>
{t(ModuleText.Layout.base.footer.sections.settings.header)}
{t(
!isForcingTheme
? ModuleText.Layout.base.footer.sections.settings.header
: ModuleText.Layout.base.footer.sections.settings
.forcedThemeHeader,
)}
</h3>

<ul className={style.footer__linkList}>
Expand Down
3 changes: 2 additions & 1 deletion src/translations/modules/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const LayoutInternal = {
general: {
header: _('Reiseplanlegger', 'Travel Planner', 'Reiseplanleggar'),
supportPageLink: _(
'Help og kontakt',
'Hjelp og kontakt',
'Help and contact',
'Hjelp og kontakt',
),
Expand All @@ -33,6 +33,7 @@ export const LayoutInternal = {
'Language and appearance',
'Språk og utsjånad',
),
forcedThemeHeader: _('Språk', 'Language', 'Språk'),
setLanguage: {
norsk: _(
'Endre til norsk (bokmål)',
Expand Down

0 comments on commit daf6596

Please sign in to comment.