@tanzlate/root / vanilla/src
vanilla/src
Interfaces
| Interface | Description |
|---|---|
| CoreContext | - |
| CoreContextParams | - |
| I18nFormatterHelper | - |
Type Aliases
| Type Alias | Description |
|---|---|
| ChangeLanguageFunc | - |
| Createi18nConfigParams | i18n configuration parameters It extends i18next InitOptions but omits some properties to allow custom naming and typing. |
| InputNamespaces | - |
| TFunc | - |
Variables
| Variable | Description |
|---|---|
| changeLanguage | - |
| coreContextStub | - |
| i18nFormatterMock | - |
Functions
| Function | Description |
|---|---|
| contextCoreStub | Creates a stub CoreContext with safe no-op defaults (used for SSR and fallback). |
| getFlagEmoji | - |
| i18nFormatterHelper | Provide helper formatter based on current i18next instance to access translations |
| initI18nConfig | Initializes and configures an i18nApp instance which extends i18n to support custom methods and properties. |
| useCoreContext | Initializes i18next and returns a CoreContext. On SSR (ssr: true) or when no config is provided, returns the stub context. |