🌎: Italian translation update & refactor: translations (#1414)

* italian translation update

* fix: removed some translations

* refactor(Translation)
This commit is contained in:
Marco Beretta 2023-12-28 23:10:58 +01:00 committed by GitHub
parent bce4f41fae
commit 8be2b6f380
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 129 additions and 107 deletions

View file

@ -57,8 +57,7 @@ if (!String.prototype.format) {
// input: language code in string
// returns an object of translated strings in the language
export const getTranslations = (langCode: string) => {
const language = languageMap[langCode] || English;
return language;
return languageMap[langCode] || English;
};
// input: language code in string & phrase key in string