UNPKG

@lucidcms/core

Version:

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

1 lines 735 B
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/libs/toolkit/locales/index.ts"],"sourcesContent":["import type { Locale } from \"../../../types/response.js\";\nimport type {\n\tServiceContext,\n\tServiceResponse,\n} from \"../../../utils/services/types.js\";\nimport getAll from \"./get-all.js\";\n\nexport type ToolkitLocales = {\n\t/** Returns all enabled locales. */\n\tgetAll: () => ServiceResponse<Locale[]>;\n};\n\n/** Creates locale helpers for a toolkit instance. */\nexport const createLocalesToolkit = (\n\tcontext: ServiceContext,\n): ToolkitLocales => ({\n\tgetAll: () => getAll(context),\n});\n\nexport default createLocalesToolkit;\n"],"mappings":"6BAaA,MAAa,EACZ,IACqB,CACrB,WAAc,EAAO,CAAO,CAC7B"}