Skip to content

Commit

Permalink
refactor: rename /internationalization/i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiazom committed Oct 9, 2024
1 parent 63e475b commit d298e27
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 15 deletions.
File renamed without changes.
File renamed without changes.
5 changes: 1 addition & 4 deletions studio/components/LanguageSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
4 changes: 2 additions & 2 deletions studio/schemas/documents/admin/legalDocuments.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion studio/schemas/documents/languageSettings.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion studio/studioConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion studioShared/deskStructure.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion studioShared/schemas/documents/customerCase.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
7 changes: 2 additions & 5 deletions studioShared/studioConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit d298e27

Please sign in to comment.