Skip to content

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 10 Oct 08:54
· 79 commits to main since this release
1320645

Minor Changes

  • 725a0c0: The server adapters (Express, Fastify, Hono, Koa, Elysia, h3, Astro, SvelteKit, NestJS, Fetch API, Angular) accept the generated config, so { ...dialex } from dialex.generated.ts is all they need: defaultLocale, locales and fallbacks no longer have to be repeated by hand. Explicit options still win.

    Express, Hono, Koa, Elysia, h3 and Astro also export dialexExpress, dialexHono, dialexKoa, dialexElysia, dialexH3 and dialexAstro, so the adapter and the generated dialex object do not share a name. dialex keeps working.

  • 39eca0b: dialexjs no longer depends on fast-glob and unconfig (about 2.9 MB of installed size, mostly jiti). The project scanner moved into @dialexjs/cli, which already did all the scanning.

    Breaking: the dialexjs/scanner entry point is gone, and adapters no longer scan the project at startup when no dictionaries are passed. Pass the generated registry ({ ...dialex } from dialex.generated.ts); an adapter without it only finds dictionaries already registered through defineDictionary.