UNPKG

@sanity/cli

Version:

Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets

20 lines (18 loc) 411 B
import supportedLanguages from './supportedLanguages' export default { name: 'localeString', type: 'object', fieldsets: [ { title: 'Translations', name: 'translations', options: {collapsible: true}, }, ], fields: supportedLanguages.map((lang) => ({ title: lang.title, name: lang.id, type: 'string', fieldset: lang.isDefault ? null : 'translations', })), }