From 6cb399e7267ae78e3e498bdbf5f51678ffb2cd45 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Tue, 21 Feb 2023 23:24:14 +0100 Subject: feat: Many things Configure sanity in same project as the app Implement type safe sanity schema Read localised documents Strip down design --- src/i18n/en/index.ts | 2 ++ src/i18n/i18n-types.ts | 16 ++++++++++++++++ src/i18n/nb/index.ts | 2 ++ 3 files changed, 20 insertions(+) (limited to 'src/i18n') diff --git a/src/i18n/en/index.ts b/src/i18n/en/index.ts index a6b79c2..1f8260f 100644 --- a/src/i18n/en/index.ts +++ b/src/i18n/en/index.ts @@ -7,6 +7,8 @@ const en = { emailTitle: "Email", phoneTitle: "Phone", }, + goToBookingPage: "Go to booking", + ourServices: "Our services", homeTitle: "Home", } satisfies BaseTranslation; diff --git a/src/i18n/i18n-types.ts b/src/i18n/i18n-types.ts index 9a32b2f..52b1fd2 100644 --- a/src/i18n/i18n-types.ts +++ b/src/i18n/i18n-types.ts @@ -32,6 +32,14 @@ type RootTranslation = { */ phoneTitle: string } + /** + * G​o​ ​t​o​ ​b​o​o​k​i​n​g + */ + goToBookingPage: string + /** + * O​u​r​ ​s​e​r​v​i​c​e​s + */ + ourServices: string /** * H​o​m​e */ @@ -57,6 +65,14 @@ export type TranslationFunctions = { */ phoneTitle: () => LocalizedString } + /** + * Go to booking + */ + goToBookingPage: () => LocalizedString + /** + * Our services + */ + ourServices: () => LocalizedString /** * Home */ diff --git a/src/i18n/nb/index.ts b/src/i18n/nb/index.ts index 5206b07..0064639 100644 --- a/src/i18n/nb/index.ts +++ b/src/i18n/nb/index.ts @@ -7,6 +7,8 @@ const nb = { emailTitle: "E-postadresse", phoneTitle: "Telefon", }, + goToBookingPage: "Gå til bestilling", + ourServices: "Våre tjenester", homeTitle: "Hjem", } satisfies Translation; -- cgit v1.3