From e7718eda6e584b36805f4cfbd42e03b3455e2946 Mon Sep 17 00:00:00 2001 From: Simeon Griggs Date: Tue, 13 Dec 2022 10:27:05 +0000 Subject: [PATCH] fix: remove 'lesson' text from templates --- README.md | 6 +++--- src/plugin.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6fef28d..8ca4167 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # @sanity/document-internationalization -- This is a completely new, **Sanity Studio v3 exclusive version** of @sanity/document-internationalization released as v2.0.0 which contains new features and requires content migrations to upgrade from previous versions. There is example code below. +- This is a completely new, **Sanity Studio v3 exclusive version** of @sanity/document-internationalization released as v2.0.0 which contains new features and requires content migrations to upgrade from previous versions. There is an example code below. - For the **Studio v3 compatible version** of the original plugin, please install v1.0.0 and above. @@ -172,10 +172,10 @@ on how to run this plugin with hotreload in the studio. ### Release new version -Run ["CI & Release" workflow](https://github.com/sanity-io/document-internationalization/actions/workflows/main.yml). +Run the ["CI & Release" workflow](https://github.com/sanity-io/document-internationalization/actions/workflows/main.yml). Make sure to select the main branch and check "Release new version". -Semantic release will only release on configured branches, so it is safe to run release on any branch. +The semantic release will only release on configured branches, so it is safe to run the release on any branch. ## License diff --git a/src/plugin.tsx b/src/plugin.tsx index a078afe..4415cd3 100644 --- a/src/plugin.tsx +++ b/src/plugin.tsx @@ -103,7 +103,7 @@ export const documentInternationalization = definePlugin((config) const staticTemplates = schemaTypes.flatMap((schemaType) => { return supportedLanguages.map((language) => ({ id: `${schemaType}-${language.id}`, - title: `${language.title} Lesson`, + title: `${language.title} ${schemaType}`, schemaType, value: { [languageField]: language.id,