@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 542 B
JavaScript
import e from"./index.mjs";const t=e=>e.locales.map(t=>{let r=e.localization.locales.find(e=>e.code===t.code);return r?n({locale:t,configLocale:r,defaultLocale:e.localization.defaultLocale}):null}).filter(e=>e!==null),n=t=>({code:t.locale.code,name:t.configLocale.label,direction:t.configLocale.direction??`ltr`,isDefault:t.locale.code===t.defaultLocale,createdAt:e.formatDate(t.locale.created_at),updatedAt:e.formatDate(t.locale.updated_at)});var r={formatMultiple:t,formatSingle:n};export{r as default};
//# sourceMappingURL=locales.mjs.map