From 53f7667cdde9965c00715b63a352df56cff40c66 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Mon, 25 Nov 2024 11:39:34 -0800 Subject: [PATCH] restore eslint comments --- src/renderer/i18n.js | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/src/renderer/i18n.js b/src/renderer/i18n.js index c98af375f..5d3627f83 100644 --- a/src/renderer/i18n.js +++ b/src/renderer/i18n.js @@ -37,27 +37,29 @@ const resources = { }, }; -i18n.use(initReactI18next).init({ - react: { - useSuspense: true, - }, - resources: resources, - lng: "en", - keySeparator: ".", - ns: ["messages"], - returnEmptyString: true, - defaultNS: "messages", - fallbackLng: "en", - interpolation: { - escapeValue: false, - }, -}); +i18n // eslint-disable-line import/no-named-as-default-member + .use(initReactI18next) + .init({ + react: { + useSuspense: true, + }, + resources: resources, + lng: "en", + keySeparator: ".", + ns: ["messages"], + returnEmptyString: true, + defaultNS: "messages", + fallbackLng: "en", + interpolation: { + escapeValue: false, + }, + }); i18n.refreshHardware = (device) => { Object.keys(i18n.options.resources).forEach((code) => { const key = "devices." + device?.info.vendor + "." + device?.info.product + ".updateInstructions"; const instructions = { - updateInstructions: i18n.exists(key) ? i18n.t(key) : undefined, + updateInstructions: i18n.exists(key) ? i18n.t(key) : undefined, // eslint-disable-line import/no-named-as-default-member }; i18n.addResource(code, "messages", "hardware", instructions); });