fix: lint const to function

This commit is contained in:
Gabriellvl 2025-02-26 18:13:02 +01:00
parent 1dc5cfa283
commit 6525e34f77

View file

@ -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");