diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-11-26 15:24:04 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-11-26 15:24:04 +0100 |
| commit | 5c69dacebaa9a330932dcbf54574093ec1b869f5 (patch) | |
| tree | e3752d30b1944878e80d754eaa33080a9db3abc5 /code/app/src/lib/i18n | |
| parent | b4a8720f6ddb1fb8bf9ee41628982e704852e699 (diff) | |
| download | greatoffice-5c69dacebaa9a330932dcbf54574093ec1b869f5.tar.xz greatoffice-5c69dacebaa9a330932dcbf54574093ec1b869f5.zip | |
feat: Give general response if request is invalid
Diffstat (limited to 'code/app/src/lib/i18n')
| -rw-r--r-- | code/app/src/lib/i18n/en/index.ts | 2 | ||||
| -rw-r--r-- | code/app/src/lib/i18n/i18n-types.ts | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/code/app/src/lib/i18n/en/index.ts b/code/app/src/lib/i18n/en/index.ts index b9cdae7..fbf5423 100644 --- a/code/app/src/lib/i18n/en/index.ts +++ b/code/app/src/lib/i18n/en/index.ts @@ -46,6 +46,8 @@ const en: BaseTranslation = { expired: "Expired", requestHasExpired: "Your request has expired", requestANewReset: "Request a new reset", + invalidRequestTitle: "Your request is invalid", + invalidRequestMessage: "This could be due to it being expired, nonexsistent or something else", newPassword: "New password", requestSentMessage: "If we find your email address in our systems, you will receive an email with instructions on how to set a new password for your account.", requestAPasswordReset: "Request a password reset", diff --git a/code/app/src/lib/i18n/i18n-types.ts b/code/app/src/lib/i18n/i18n-types.ts index 870bf23..cf968d7 100644 --- a/code/app/src/lib/i18n/i18n-types.ts +++ b/code/app/src/lib/i18n/i18n-types.ts @@ -181,6 +181,14 @@ type RootTranslation = { */ requestANewReset: string /** + * Your request is invalid + */ + invalidRequestTitle: string + /** + * This could be due to it being expired, nonexsistent or something else + */ + invalidRequestMessage: string + /** * New password */ newPassword: string @@ -382,6 +390,14 @@ export type TranslationFunctions = { */ requestANewReset: () => LocalizedString /** + * Your request is invalid + */ + invalidRequestTitle: () => LocalizedString + /** + * This could be due to it being expired, nonexsistent or something else + */ + invalidRequestMessage: () => LocalizedString + /** * New password */ newPassword: () => LocalizedString |
