From abceb356db6683be94edb37230d9a753359a8e17 Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Sat, 20 Nov 2021 19:10:36 +0100 Subject: [PATCH] format code Signed-off-by: Tilman Vatteroth --- .../initializers/i18n/i18n.ts | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/application-loader/initializers/i18n/i18n.ts b/src/components/application-loader/initializers/i18n/i18n.ts index 019452125..5ba142d2c 100644 --- a/src/components/application-loader/initializers/i18n/i18n.ts +++ b/src/components/application-loader/initializers/i18n/i18n.ts @@ -5,7 +5,7 @@ */ import type { ResourceKey } from 'i18next' -import i18n, { use as i18nUse } from 'i18next' +import i18n, { use as i18nUse } from 'i18next' import LanguageDetector from 'i18next-browser-languagedetector' import resourcesToBackend from 'i18next-resources-to-backend' import { Settings } from 'luxon' @@ -13,16 +13,16 @@ import { initReactI18next } from 'react-i18next' export const setUpI18n = async (): Promise => { await i18nUse( - resourcesToBackend((language, namespace, callback) => { - import(`../../../../../locales/${language}.json`) - .then((resources: ResourceKey) => { - callback(null, resources) - }) - .catch((error: Error) => { - callback(error, null) - }) - }) - ) + resourcesToBackend((language, namespace, callback) => { + import(`../../../../../locales/${language}.json`) + .then((resources: ResourceKey) => { + callback(null, resources) + }) + .catch((error: Error) => { + callback(error, null) + }) + }) + ) .use(LanguageDetector) .use(initReactI18next) .init({