An object containing:
t — the i18next translation functionsetLocale(locale) — changes the active language; resolves when loadedgetLocale() — returns the current language code (e.g. 'en')getAvailableLocales() — returns all supported SupportedLanguage codesgetLocaleName(locale) — returns the display name for a language code,
or the raw code if it is not in SUPPORTED_LANGUAGES
Hook providing translation utilities for React components.
Wraps
react-i18next'suseTranslationand exposes a stable API for reading and changing the active locale.