Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

I18nModuleOptions

interfaz

ts
import type { I18nModuleOptions } from "@meekojs/meeko/i18n/module";

Source code src/modules/i18n/module.ts:9

Declaración #

ts
interface I18nModuleOptions {
	readonly defaultLocale: string
	readonly catalogs: Readonly<Record<string, string | Readonly<Record<string, string>>>>
	readonly routes?: Readonly<Record<string, readonly string[]>>
	readonly directions?: Readonly<Record<string, 'ltr' | 'rtl'>>
}

Propiedades #

defaultLocale #

propiedad sólo lectura

readonly defaultLocale: string

Locale to use for an unprefixed URL.

catalogs #

propiedad sólo lectura

readonly catalogs: Readonly<Record<string, string | Readonly<Record<string, string>>>>

JSON catalog path, or named catalog paths, for each locale. common loads on every route.

routes #

propiedad sólo lectura opcional

readonly routes?: Readonly<Record<string, readonly string[]>>

Additional catalog namespaces for each exact route ID in the Meeko manifest.

directions #

propiedad sólo lectura opcional

readonly directions?: Readonly<Record<string, 'ltr' | 'rtl'>>

Text direction overrides; all other locales use ltr.

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/modules/i18n/module.ts