From 6525e34f77aa8648fca2a5c1f6b45318e2bf9229 Mon Sep 17 00:00:00 2001 From: Gabriellvl Date: Wed, 26 Feb 2025 18:13:02 +0100 Subject: [PATCH] fix: lint const to function --- backend/src/routes/themes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/routes/themes.ts b/backend/src/routes/themes.ts index 96b6b610..c673ff26 100644 --- a/backend/src/routes/themes.ts +++ b/backend/src/routes/themes.ts @@ -137,7 +137,7 @@ interface Translations { // Function to load translations from YAML files -const loadTranslations = (language: string): Translations => { +function loadTranslations(language: string): Translations { try { const filePath = path.join(process.cwd(), "_i18n", `${language}.yml`); const yamlFile = fs.readFileSync(filePath, "utf8");