Skip to content

Commit

Permalink
Update translate.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Danila-Arg committed Oct 21, 2024
1 parent 7f9f1c8 commit 2c8191b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Localizations/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ async function translateCompanyDescriptions(translations: Translations, companie
}

// Signals that there were changes in company translations.
if (translationsCount != previousTranslationsCount) {
if (translationsCount !== previousTranslationsCount) {
translatedCompaniesCount += 1;
previousTranslationsCount = translationsCount;
}
Expand Down Expand Up @@ -144,7 +144,7 @@ async function generateTranslations(
for (const lang of languages) {
// Only translate it if there's a language missing or if the
// base description changed.
if (!baseDescriptionChanged && companyTranslations[lang] != undefined) {
if (!baseDescriptionChanged && companyTranslations[lang] !== undefined) {
consola.info(`Language description ${companyTranslations[lang]} not changed`);
continue;
}
Expand Down

0 comments on commit 2c8191b

Please sign in to comment.