Skip to content
pixi-silk
GitHub repository
Interface

PrepareOptions

import type { PrepareOptions } from 'pixi-silk/i18n/pixi';

Options of Silk.prepare.

Type Parameters#

Type ParameterDefault type
Names extends stringstring

Properties#

PropertyTypeDescriptionDefined in
defaults?Omit<MessageSpec, "values" | "key">Defaults for every message.packages/pixi-silk/src/i18n/pixi/silk.ts:137
fallbackLocale?stringLocale to take messages from when locale lacks them.packages/pixi-silk/src/i18n/pixi/silk.ts:133
localestringApp locale code to show, as the bundle names it (SilkBundle.id). Its bundle must be in use.packages/pixi-silk/src/i18n/pixi/silk.ts:131
messagesRecord<Names, MessageSpec>Messages by the name the app uses.packages/pixi-silk/src/i18n/pixi/silk.ts:139
themeSilkThemeTheme of the messages.packages/pixi-silk/src/i18n/pixi/silk.ts:135