From efb0c07c6197085c02621b0904a1e5e1367f8922 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Mon, 10 Oct 2022 00:43:20 +0800 Subject: feat(i18n): Add name string --- code/app/src/lib/i18n/en/index.ts | 1 + code/app/src/lib/i18n/i18n-types.ts | 8 ++++++++ code/app/src/lib/i18n/nb/index.ts | 1 + 3 files changed, 10 insertions(+) (limited to 'code/app/src') diff --git a/code/app/src/lib/i18n/en/index.ts b/code/app/src/lib/i18n/en/index.ts index e084a6c..1d6ff26 100644 --- a/code/app/src/lib/i18n/en/index.ts +++ b/code/app/src/lib/i18n/en/index.ts @@ -2,6 +2,7 @@ import type { BaseTranslation } from "../i18n-types"; const en: BaseTranslation = { or: "Or", + name: "Name", emailAddress: "Email address", password: "Password", pageNotFound: "Page not found", diff --git a/code/app/src/lib/i18n/i18n-types.ts b/code/app/src/lib/i18n/i18n-types.ts index 0df6d1a..2c564c4 100644 --- a/code/app/src/lib/i18n/i18n-types.ts +++ b/code/app/src/lib/i18n/i18n-types.ts @@ -21,6 +21,10 @@ type RootTranslation = { * O​r */ or: string + /** + * N​a​m​e + */ + name: string /** * E​m​a​i​l​ ​a​d​d​r​e​s​s */ @@ -198,6 +202,10 @@ export type TranslationFunctions = { * Or */ or: () => LocalizedString + /** + * Name + */ + name: () => LocalizedString /** * Email address */ diff --git a/code/app/src/lib/i18n/nb/index.ts b/code/app/src/lib/i18n/nb/index.ts index fa81477..ef67504 100644 --- a/code/app/src/lib/i18n/nb/index.ts +++ b/code/app/src/lib/i18n/nb/index.ts @@ -2,6 +2,7 @@ import type { Translation } from "../i18n-types"; const nb: Translation = { or: "Eller", + name: "Navn", emailAddress: "E-postadresse", password: "Passord", pageNotFound: "Fant ikke siden", -- cgit v1.3