UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

2 lines 528 B
import e from"../../libs/repositories/locales.mjs";import t from"../../libs/formatters/locales.mjs";const n=async n=>{let r=await new e(n.db.client,n.config.db).selectMultiple({select:[`code`,`created_at`,`updated_at`,`is_deleted`,`is_deleted_at`],where:[{key:`is_deleted`,operator:`!=`,value:n.config.db.getDefault(`boolean`,`true`)}],validation:{enabled:!0}});return r.error?r:{error:void 0,data:t.formatMultiple({locales:r.data,localization:n.config.localization})}};export{n as default}; //# sourceMappingURL=get-all.mjs.map