Skip to content
FrameworkStyle

onI18nRegistryChange

Subscribe to global i18n registry mutations

onI18nRegistryChange registers a callback that runs whenever any locale layer changes, for example after registerI18n or browser translation prefetch. Returns an unsubscribe function.

React I18nProvider uses this to invalidate translators when the registry updates.

API Reference

Parameters

Parameter Type Default Details
callback* function

Return Value

Type Details
function