Skip to content

Commit

Permalink
🌐 - feat: use english en as default language
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvandescheur committed Feb 13, 2024
1 parent 345ee44 commit 728ac71
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/i18n/useIntl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,10 @@ const getLocalizedFallbackIntl = (
) => {
let messages: Record<string, MessageDescriptor> = {};
try {
if (locale === "en") {
messages = require("./messages/en.json");
}
if (locale === "nl") {
messages = require("./messages/nl.json");
} else {
messages = require("./messages/en.json");
}
} catch (e) {
// messages not loaded.
Expand Down

0 comments on commit 728ac71

Please sign in to comment.