Stratal API Reference
    Preparing search index...

    Function setupI18nCompiler

    • Setup JIT message compiler for i18n

      Registers a message compiler that uses JIT compilation mode. In @intlify/core-base v10+, JIT mode is enabled by default, which generates AST (Abstract Syntax Tree) instead of JavaScript code, making it compatible with CSP-restricted environments like Cloudflare Workers.

      IMPORTANT: Call this function once at application startup before creating any I18nService instances. Safe to call multiple times (only registers once).

      Returns void

      // In application entry point (before app.initialize())
      setupI18nCompiler()