fix: eslint issue
parent
2a72cb1bb5
commit
829cbb0ae2
|
@ -51,7 +51,7 @@ export default {
|
||||||
const importedTrads = await Promise.all(
|
const importedTrads = await Promise.all(
|
||||||
locales.map(async (locale) => {
|
locales.map(async (locale) => {
|
||||||
try {
|
try {
|
||||||
// eslint-disable-next-line import/no-dynamic-require
|
// eslint-disable-next-line import/no-dynamic-require, global-require
|
||||||
const data = require(`./translations/${locale}.json`);
|
const data = require(`./translations/${locale}.json`);
|
||||||
return {
|
return {
|
||||||
data: prefixPluginTranslations(data, pluginId),
|
data: prefixPluginTranslations(data, pluginId),
|
||||||
|
|
Loading…
Reference in New Issue