@saykit/config
v0.1.0
Published
CLI and configuration tooling for saykit
Readme
@saykit/config
Configuration schema and CLI for SayKit.
Provides the defineConfig helper, the Zod-validated schema for saykit.config.ts, and the saykit CLI used to extract messages from your source.
Install
pnpm add -D @saykit/configConfiguration
import { defineConfig } from '@saykit/config';
import po from '@saykit/format-po';
import js from '@saykit/transform-js';
export default defineConfig({
locales: ['en', 'fr'],
buckets: [
{
include: ['src/**/*.ts'],
output: 'src/locales/{locale}.{extension}',
formatter: po(),
transformer: js(),
},
],
});CLI
saykit extract # extract messages once
saykit extract --watch # extract and watch for changesDocumentation
Full configuration guide and CLI reference at saykit.js.org.
