можем ли мы получить текущее значение intl (locale) вне компонента реакции?
const locales = {
locale: 'en',
messages: {},
};
import { IntlProvider, addLocaleData } from 'react-intl';
//below is for creating
const intlProvider = new IntlProvider(locales, {});
const { intl } = intlProvider.getChildContext();
//is there any code snippet to get current value from IntlProvider?