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/site.ts | |
| parent | b99397f884e41a1018a217c6eb116ed00f922a4f (diff) | |
Parameterises translation
Diffstat (limited to 'src/i18n/translations/site.ts')
| -rw-r--r-- | src/i18n/translations/site.ts | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/i18n/translations/site.ts b/src/i18n/translations/site.ts index 89e9ed5..b414499 100644 --- a/src/i18n/translations/site.ts +++ b/src/i18n/translations/site.ts @@ -2,22 +2,22 @@ import type { TranslationsDictionary } from '../../types/TranslationsDictionary' const siteTranslations = { title: { - sco: 'Scots Leid Associe', - 'en-GB': 'Scots Language Society', + sco: () => 'Scots Leid Associe', + 'en-GB': () => 'Scots Language Society', }, description: { - sco: 'The wabsteid o the Scots Leid Associe', - 'en-GB': 'The website of the Scots Language Society', + sco: () => 'The wabsteid o the Scots Leid Associe', + 'en-GB': () => 'The website of the Scots Language Society', }, lallans: { - sco: 'Lallans', - 'en-GB': 'Lallans', + sco: () => 'Lallans', + 'en-GB': () => 'Lallans', }, by: { - sco: 'bi', - 'en-GB': 'by', + sco: () => 'bi', + 'en-GB': () => 'by', }, }; -type Keys = keyof typeof siteTranslations; -export default siteTranslations as TranslationsDictionary<Keys>; +type Raw = typeof siteTranslations; +export default siteTranslations as TranslationsDictionary<Raw>; |
