Skip to content

Commit

Permalink
Fix pt translation not showing properly (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duddino authored Nov 15, 2023
1 parent c1ac0e7 commit bc43e82
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ function getParentLanguage(langName) {
? langName.split('-')[0]
: defaultLang;
// Ensure the code exists
if (arrActiveLangs.find((lang) => lang.code === strParentCode)) {
return strParentCode;
} else {
return defaultLang;
}
return strParentCode;
}

/**
Expand Down

0 comments on commit bc43e82

Please sign in to comment.