UNPKG

lynx-intlayer

Version:

A Lynx plugin for seamless internationalization (i18n) and localization (l10n) of your mobile app.

25 lines 852 B
import type { RsbuildPlugin } from '@rsbuild/core'; /** * A Lynx plugin to integrate Intlayer into the Lynx build process. * * - Loads the Intlayer configuration and injects environment variables. * - If enabled, starts a file watcher for dictionary changes. * - On build, prepares the Intlayer configuration. * - Optionally checks for dictionary changes before compiling (hot reload). * * Usage in your lynx.config.ts: * * import { defineConfig } from '@lynx-js/rspeedy' * import { pluginIntlayerLynx } from '@intlayer/lynx-plugin' * * export default defineConfig({ * plugins: [ * pluginIntlayerLynx({ * hotReload: true, // optional * }), * ], * // ...other configuration * }) */ export declare const pluginIntlayerLynx: () => RsbuildPlugin; //# sourceMappingURL=pluginIntlayerLynx.d.ts.map