Skip to content

Commit

Permalink
Change the translation in +title.ts page to use i18n.
Browse files Browse the repository at this point in the history
  • Loading branch information
Elweyn committed Mar 26, 2024
1 parent 8b3dfaf commit 2830930
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 7 deletions.
6 changes: 5 additions & 1 deletion presenter/src/pages/_error/+title.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export const title = 'DreamMall | Fehler'
import i18n from '#plugins/i18n'

export const title = () => {
return i18n.global.t('error.title')
}
6 changes: 5 additions & 1 deletion presenter/src/pages/datenschutz/+title.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export const title = 'DreamMall | Datenschutz'
import i18n from '#plugins/i18n'

export const title = () => {
return i18n.global.t('dataProtection.title')
}
7 changes: 6 additions & 1 deletion presenter/src/pages/impressum/+title.ts
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
export const title = 'DreamMall | Impressum'
import i18n from '#plugins/i18n'

// DreamMall | Impressum
export const title = () => {
return i18n.global.t('impress.title')
}
6 changes: 4 additions & 2 deletions presenter/src/pages/index/+title.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { META } from '#src/env'
import i18n from '#plugins/i18n'

export const title = META.DEFAULT_TITLE
export const title = () => {
return i18n.global.t('title')
}
7 changes: 6 additions & 1 deletion presenter/src/pages/optin/+title.ts
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
export const title = 'DreamMall | Newsletter'
import i18n from '#plugins/i18n'

// 'DreamMall | Newsletter'
export const title = () => {
return i18n.global.t('optin.title')
}
6 changes: 5 additions & 1 deletion presenter/src/pages/silent-refresh/+title.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export const title = 'DreamMall | Authentifizierung'
import i18n from '#plugins/i18n'

export const title = () => {
return i18n.global.t('auth.title') // 'DreamMall | Authentifizierung'
}

0 comments on commit 2830930

Please sign in to comment.