Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
i18next.addResourceBundleDebounce = (...props) => {
i18next.addResourceBundle(...props, { silent: true })
i18next.emitResourceAddedDebounce()
}
window.i18n.resources = {
__: str => spacing(str),
translate: (locale, str) => spacing(str),
setLocale: str => str,
}
// inject translator for English names
if (!isMain && config.get('plugin.poi-plugin-translator.enable', false)) {
try {
require('poi-plugin-translator').pluginDidLoad()
} catch (e) {
console.warn('poi-plugin-translator', e)
}
}
export default i18next
devMode: false,
})
window.i18n[namespace].setLocale(window.language)
}
}
window.i18n.resources = {
__: (str) => spacing(str),
translate: (locale, str) => spacing(str),
setLocale: (str) => (str),
}
// inject translator for English names
if (!isMain && config.get('plugin.poi-plugin-translator.enable', false)) {
try {
require('poi-plugin-translator').pluginDidLoad()
} catch (e) {
console.warn('poi-plugin-translator', e)
}
}