Child React tree that receives i18n context.
OptionaldefaultDefault context applied to every t() call unless an explicit context
option is passed.
When set, t('greeting') behaves as if every call were
t('greeting', { context: defaultContext }) — it first tries
key.<defaultContext>, then falls back to key, then to the key itself.
Can be changed dynamically via the setDefaultContext API returned by
useI18n().
OptionaldefaultInitial language code. Defaults to the first available locale.
OptionalfallbackFallback language to try when a key is missing in the current language. If the key is also missing in the fallback, the key itself is returned.
OptionalpathPath to a directory scanned synchronously for {locale}.json files.
Each file becomes one language resource.
OptionalresourcesInline translation resources keyed by locale code.
Props for the LanguageProvider component.
Provide at least one of
resources(inline translation object) orpath(directory of{locale}.jsonfiles).