Skip to content

Commit

Permalink
fix: no error when translation is invalid (close #715)
Browse files Browse the repository at this point in the history
  • Loading branch information
orestbida committed Aug 12, 2024
1 parent da3ca52 commit 2730f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const loadTranslationData = async (desiredLanguageCode) => {
}

if (!translationData) {
return false;
throw `Could not load translation for the '${currentLanguageCode}' language`;
}

state._currentTranslation = translationData;
Expand Down

0 comments on commit 2730f6c

Please sign in to comment.