@sanity/cli
Version:
Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets
20 lines (18 loc) • 407 B
JavaScript
import supportedLanguages from './supportedLanguages'
export default {
name: 'localeText',
type: 'object',
fieldsets: [
{
title: 'Translations',
name: 'translations',
options: {collapsible: true},
},
],
fields: supportedLanguages.map((lang) => ({
title: lang.title,
name: lang.id,
type: 'text',
fieldset: lang.isDefault ? null : 'translations',
})),
}