fix: api helper voor extra error checks bij fetch dwengo api + schrijffout in controllers/themes
This commit is contained in:
parent
0c7f5791ea
commit
91eb374b7e
5 changed files with 45 additions and 8 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue