diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-12-26 16:05:14 +0000 |
|---|---|---|
| committer | Joe Carstairs <jcarstairs@scottlogic.com> | 2024-01-29 10:51:49 +0000 |
| commit | 093622681c30e022a14543a73626b8ba9dd6e7dd (patch) | |
| tree | c06ca182650f765e4b61a0c3680a766e9f0b55b9 /src/i18n/translations/pages/signUp | |
| parent | e8847d6c1aa7254928496ed855979bdcf9734ea5 (diff) | |
Better success page
Diffstat (limited to 'src/i18n/translations/pages/signUp')
| -rw-r--r-- | src/i18n/translations/pages/signUp/index.ts | 23 | ||||
| -rw-r--r-- | src/i18n/translations/pages/signUp/success.ts | 29 |
2 files changed, 52 insertions, 0 deletions
diff --git a/src/i18n/translations/pages/signUp/index.ts b/src/i18n/translations/pages/signUp/index.ts new file mode 100644 index 0000000..15a9dcf --- /dev/null +++ b/src/i18n/translations/pages/signUp/index.ts @@ -0,0 +1,23 @@ +import type { TranslationsDictionary } from '$types/TranslationsDictionary'; + +const tPage = { + title: { + sco: () => 'Sign up', + 'en-GB': () => 'Sign up', + }, + 'label-email': { + sco: () => 'Email', + 'en-GB': () => 'Email', + }, + 'label-display-name': { + sco: () => 'Name', + 'en-GB': () => 'Name', + }, + submit: { + sco: () => 'Sign up', + 'en-GB': () => 'Sign up', + }, +}; + +type Raw = typeof tPage; +export default tPage as TranslationsDictionary<Raw>; diff --git a/src/i18n/translations/pages/signUp/success.ts b/src/i18n/translations/pages/signUp/success.ts new file mode 100644 index 0000000..d853917 --- /dev/null +++ b/src/i18n/translations/pages/signUp/success.ts @@ -0,0 +1,29 @@ +import type { TranslationsDictionary } from '$types/TranslationsDictionary'; + +const tPage = { + title: { + sco: () => 'Successfullie signed up', + 'en-GB': () => 'Successfully signed up', + }, + 'para-1': { + sco: ({ displayName }: { displayName: string }) => ` + Walcome, ${displayName}! You hae successfullie registered a new account + wi us. + `, + 'en-GB': ({ displayName }: { displayName: string }) => ` + Welcome, ${displayName}! You have successfully registered a new account + with us. + `, + }, + 'para-2': { + sco: ({ userId }: { userId: string }) => ` + Your new unique user ID is ${userId}. Uise this neist time you wad log in. + `, + 'en-GB': ({ userId }: { userId: string }) => ` + Your new unique user ID is ${userId}. Use this next time you want to log in. + `, + }, +}; + +type Raw = typeof tPage; +export default tPage as TranslationsDictionary<Raw>; |
