ILocaleOptions
interface
Internationalisation
Configuration options for the built-in Origam locale adapter — passed to createLocale() when not using a third-party i18n library.
TypeScript
Définition
La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
API
Propriétés
Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.
- localestring
- Initial locale code, e.g. "en". Falls back to browser navigator.language when omitted.
- fallbackLocalestring
- Locale code used when a key is not found in the active locale messages.
- messagesRecord<string, unknown>
- Map of locale codes to their message objects, e.g. { en: { ok_label: "OK" }, fr: { ok_label: "OK" } }.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Providing locale options to createOrigam