i18n.ts

Source

4 documented symbols. Read the signatures first, then expand each item for parameters, return types, and examples.

4 symbols 3 functions 1 modules 4 parameters 3 returns

Reference

fncreateI18nPlugin(resolvedOptions: ResolvedOptions): PluginCreates the i18n sub-plugin for the Vite plugin array.

Creates the i18n sub-plugin for the Vite plugin array.

Signature

export function createI18nPlugin(resolvedOptions: ResolvedOptions): Plugin

View source

Parameters

Returns

Plugin
fngenerateI18nModule(options: ResolvedI18nOptions, root: string): stringGenerates the virtual module for i18n configuration.

Generates the virtual module for i18n configuration.

Signature

export function generateI18nModule(options: ResolvedI18nOptions, root: string): string

View source

Parameters

Returns

string
modulei18ni18n plugin for Ox Content. Provides: - Dictionary loading and validation at build time - Virtual module for i18n confi…

i18n plugin for Ox Content.

Provides:

  • Dictionary loading and validation at build time
  • Virtual module for i18n config
  • Build-time i18n checking
  • Locale-aware routing middleware for dev server

View source

fnresolveI18nOptions(options: I18nOptions | false | undefined): ResolvedI18nOptions | falseResolves i18n options with defaults.

Resolves i18n options with defaults.

Signature

export function resolveI18nOptions(options: I18nOptions | false | undefined): ResolvedI18nOptions | false

View source

Parameters

Returns

ResolvedI18nOptions | false