diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-12 17:22:33 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-12 17:22:33 +0100 |
| commit | e0c5ec43f5c2a105dc3c626d7c4bc74b512662f4 (patch) | |
| tree | 4eabdb4b96e960e83f38b5af3b8407d58beb0220 /src/i18n/translations/pages | |
| parent | b99397f884e41a1018a217c6eb116ed00f922a4f (diff) | |
Parameterises translation
Diffstat (limited to 'src/i18n/translations/pages')
| -rw-r--r-- | src/i18n/translations/pages/furthsettins.ts | 8 | ||||
| -rw-r--r-- | src/i18n/translations/pages/home.ts | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/i18n/translations/pages/furthsettins.ts b/src/i18n/translations/pages/furthsettins.ts index 41da32b..4b87311 100644 --- a/src/i18n/translations/pages/furthsettins.ts +++ b/src/i18n/translations/pages/furthsettins.ts @@ -2,10 +2,10 @@ import type { TranslationsDictionary } from '../../../types/TranslationsDictiona const furthsettinsTranslations = { title: { - sco: 'Furthsettins', - 'en-GB': 'Publications', + sco: () => 'Furthsettins', + 'en-GB': () => 'Publications', }, }; -type Keys = keyof typeof furthsettinsTranslations; -export default furthsettinsTranslations as TranslationsDictionary<Keys>; +type Raw = typeof furthsettinsTranslations; +export default furthsettinsTranslations as TranslationsDictionary<Raw>; diff --git a/src/i18n/translations/pages/home.ts b/src/i18n/translations/pages/home.ts index 0dff80d..dda30b8 100644 --- a/src/i18n/translations/pages/home.ts +++ b/src/i18n/translations/pages/home.ts @@ -2,10 +2,10 @@ import type { TranslationsDictionary } from '../../../types/TranslationsDictiona const homeTranslations = { title: { - sco: 'Hame', - 'en-GB': 'Home', + sco: () => 'Hame', + 'en-GB': () => 'Home', }, }; -type Keys = keyof typeof homeTranslations; -export default homeTranslations as TranslationsDictionary<Keys>; +type Raw = typeof homeTranslations; +export default homeTranslations as TranslationsDictionary<Raw>; |
