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 --- sanity/schemas/localized-string.ts | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 sanity/schemas/localized-string.ts (limited to 'sanity/schemas/localized-string.ts') diff --git a/sanity/schemas/localized-string.ts b/sanity/schemas/localized-string.ts deleted file mode 100644 index e4bcff6..0000000 --- a/sanity/schemas/localized-string.ts +++ /dev/null @@ -1,20 +0,0 @@ -import {supportedLanguages} from "./_locales"; - -export default { - title: "Localized string", - name: "localizedString", - type: "object", - fieldsets: [ - { - title: "Translations", - name: "translations", - options: {collapsible: true}, - }, - ], - fields: supportedLanguages.map((lang) => ({ - title: lang.title, - name: lang.id, - type: "string", - fieldset: lang.isDefault ? null : "translations", - })), -}; -- cgit v1.3