Skip to content

Commit

Permalink
Let tags be translated
Browse files Browse the repository at this point in the history
  • Loading branch information
Snugug committed Sep 1, 2023
1 parent 1cae7dc commit ea47388
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cms/schemas/tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
* limitations under the License.
*/
import { defineField, defineType } from 'sanity';
import { isL10n } from '$lib/validators/i18n';

export default defineType({
name: 'tag',
title: 'Tag',
type: 'document',
i18n: true,
groups: [
{
name: 'tag',
Expand Down Expand Up @@ -60,12 +62,16 @@ export default defineType({
title: 'Is post category',
type: 'boolean',
group: 'category',
readOnly: isL10n,
hidden: isL10n,
}),
defineField({
name: 'is_story_category',
title: 'Is story category',
type: 'boolean',
group: 'category',
readOnly: isL10n,
hidden: isL10n,
}),
],
});

0 comments on commit ea47388

Please sign in to comment.