Skip to content

@tanzlate/root / vanilla/src

vanilla/src

Interfaces

InterfaceDescription
CoreContext-
CoreContextParams-
I18nFormatterHelper-

Type Aliases

Type AliasDescription
ChangeLanguageFunc-
Createi18nConfigParamsi18n configuration parameters It extends i18next InitOptions but omits some properties to allow custom naming and typing.
InputNamespaces-
TFunc-

Variables

VariableDescription
changeLanguage-
coreContextStub-
i18nFormatterMock-

Functions

FunctionDescription
contextCoreStubCreates a stub CoreContext with safe no-op defaults (used for SSR and fallback).
getFlagEmoji-
i18nFormatterHelperProvide helper formatter based on current i18next instance to access translations
initI18nConfigInitializes and configures an i18nApp instance which extends i18n to support custom methods and properties.
useCoreContextInitializes i18next and returns a CoreContext. On SSR (ssr: true) or when no config is provided, returns the stub context.