Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'react-components',
'react-params',
'react-query',
'react-signer'
],
keySeparator: false,
nsSeparator: false,
react: {
wait: true
}
})
.catch((error: Error): void =>
console.log('i18n: failure', error)
);
uiSettings.on('change', settings => {
const lang = settings.i18nLang === LANGUAGE_DEFAULT
? i18n.services.languageDetector.detect()
: settings.i18nLang;
i18n.changeLanguage(lang);
});
export default i18n;
useEffect((): void => {
Promise.all([
subscribeAccounts(setAccounts),
subscribeAuthorize(setAuthRequests),
subscribeSigning(setSignRequests)
]).catch((error: Error) => console.error(error));
settings.on('change', ({ camera }): void => setCameraOn(camera === 'on'));
_onAction();
}, []);