diff --git a/internationalization/languageSchemaField.ts b/i18n/languageSchemaField.ts similarity index 100% rename from internationalization/languageSchemaField.ts rename to i18n/languageSchemaField.ts diff --git a/internationalization/supportedLanguages.ts b/i18n/supportedLanguages.ts similarity index 100% rename from internationalization/supportedLanguages.ts rename to i18n/supportedLanguages.ts diff --git a/studio/components/LanguageSelector.tsx b/studio/components/LanguageSelector.tsx index a23c0de32..973785572 100644 --- a/studio/components/LanguageSelector.tsx +++ b/studio/components/LanguageSelector.tsx @@ -2,10 +2,7 @@ import { Box, Button, Card, Checkbox, Flex, useTheme } from "@sanity/ui"; import React from "react"; import { ArrayOfObjectsInputProps, PatchEvent, set } from "sanity"; -import { - Language, - supportedLanguages, -} from "internationalization/supportedLanguages"; +import { Language, supportedLanguages } from "i18n/supportedLanguages"; const colorMap = { dark: { diff --git a/studio/schemas/documents/admin/legalDocuments.ts b/studio/schemas/documents/admin/legalDocuments.ts index 6fafb5724..0091b481c 100644 --- a/studio/schemas/documents/admin/legalDocuments.ts +++ b/studio/schemas/documents/admin/legalDocuments.ts @@ -1,7 +1,7 @@ import { defineField } from "sanity"; -import languageSchemaField from "internationalization/languageSchemaField"; -import { getLanguageById } from "internationalization/supportedLanguages"; +import languageSchemaField from "i18n/languageSchemaField"; +import { getLanguageById } from "i18n/supportedLanguages"; import { richText, title } from "studio/schemas/fields/text"; import { titleSlug } from "studio/schemas/schemaTypes/slug"; diff --git a/studio/schemas/documents/languageSettings.ts b/studio/schemas/documents/languageSettings.ts index b3da34c24..ee47c2f5d 100644 --- a/studio/schemas/documents/languageSettings.ts +++ b/studio/schemas/documents/languageSettings.ts @@ -1,6 +1,6 @@ import { defineType } from "sanity"; -import { defaultLanguage } from "internationalization/supportedLanguages"; +import { defaultLanguage } from "i18n/supportedLanguages"; import LanguageSelector from "studio/components/LanguageSelector"; export const languageSettingsID = "languageSettings"; diff --git a/studio/studioConfig.tsx b/studio/studioConfig.tsx index 80865a813..864d58438 100644 --- a/studio/studioConfig.tsx +++ b/studio/studioConfig.tsx @@ -6,7 +6,7 @@ import { structureTool } from "sanity/structure"; import { internationalizedArray } from "sanity-plugin-internationalized-array"; import { media } from "sanity-plugin-media"; -import { languageID } from "internationalization/languageSchemaField"; +import { languageID } from "i18n/languageSchemaField"; import StudioIcon from "./components/studioIcon/StudioIcon"; import { deskStructure } from "./deskStructure"; diff --git a/studioShared/deskStructure.ts b/studioShared/deskStructure.ts index 609041027..6f3a2aa4e 100644 --- a/studioShared/deskStructure.ts +++ b/studioShared/deskStructure.ts @@ -1,6 +1,6 @@ import { StructureResolver } from "sanity/structure"; -import { defaultLanguage } from "internationalization/supportedLanguages"; +import { defaultLanguage } from "i18n/supportedLanguages"; import { customerCaseID } from "./schemas/documents/customerCase"; diff --git a/studioShared/schemas/documents/customerCase.ts b/studioShared/schemas/documents/customerCase.ts index 8b9b0806f..9e44cac94 100644 --- a/studioShared/schemas/documents/customerCase.ts +++ b/studioShared/schemas/documents/customerCase.ts @@ -1,6 +1,6 @@ import { defineField, defineType } from "sanity"; -import languageSchemaField from "internationalization/languageSchemaField"; +import languageSchemaField from "i18n/languageSchemaField"; import { richText, title } from "studio/schemas/fields/text"; import { titleSlug } from "studio/schemas/schemaTypes/slug"; diff --git a/studioShared/studioConfig.tsx b/studioShared/studioConfig.tsx index d7e0d06f4..3a0c3a6fc 100644 --- a/studioShared/studioConfig.tsx +++ b/studioShared/studioConfig.tsx @@ -4,11 +4,8 @@ import { WorkspaceOptions } from "sanity"; import { structureTool } from "sanity/structure"; import { media } from "sanity-plugin-media"; -import { languageID } from "internationalization/languageSchemaField"; -import { - defaultLanguage, - supportedLanguages, -} from "internationalization/supportedLanguages"; +import { languageID } from "i18n/languageSchemaField"; +import { defaultLanguage, supportedLanguages } from "i18n/supportedLanguages"; import StudioIcon from "studio/components/studioIcon/StudioIcon"; import { deskStructure } from "./deskStructure";