UNPKG

@websolutespa/payload-plugin-bowl

Version:

Bowl PayloadCms plugin of the BOM Repository

35 lines (34 loc) 942 B
import { hasRole } from '../core'; import { roles } from '../types'; export const Language = (options)=>({ type: 'withStatic', src: 'https://actarian.github.io/cms-i18n-react/api/language.json', slug: options.slug.language, admin: { hidden: (args)=>!hasRole(args.user, roles.Admin) }, fields: [ { name: 'id', label: 'ID', type: 'text' }, { name: 'name', label: 'Name', type: 'text', localized: true }, { name: 'englishName', label: 'English Name', type: 'text' }, { name: 'nativeName', label: 'Native Name', type: 'text' } ] }); //# sourceMappingURL=Language.js.map