Referencei18n
onI18nRegistryChange
Subscribe to global i18n registry mutations
Import
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.