From 54bbc06bd84437c6b38e2f6c57060f21a8318720 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sun, 19 Feb 2023 14:08:33 +0100 Subject: . --- sanity/schemas/localized-string.ts | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'sanity/schemas/localized-string.ts') diff --git a/sanity/schemas/localized-string.ts b/sanity/schemas/localized-string.ts index 6ff7424..e4bcff6 100644 --- a/sanity/schemas/localized-string.ts +++ b/sanity/schemas/localized-string.ts @@ -1,20 +1,20 @@ -import { supportedLanguages } from "./_locales"; +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' - })) -} + 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