fix: api helper voor extra error checks bij fetch dwengo api + schrijffout in controllers/themes

This commit is contained in:
Gabriellvl 2025-03-01 15:15:04 +01:00
parent 0c7f5791ea
commit 91eb374b7e
5 changed files with 45 additions and 8 deletions

View file

@ -17,7 +17,7 @@ function loadTranslations(language: string): Translations {
return yaml.load(yamlFile) as Translations;
} catch (error) {
console.error(
`Cant load for language: ${language}, fallen back on dutch`
`Cannot load translation for: ${language}, fallen back to Dutch`
);
console.error(error);
const fallbackPath = path.join(process.cwd(), '_i18n', 'nl.yml');