diff --git a/packages/kolibri-tools/lib/i18n/astUtils.js b/packages/kolibri-tools/lib/i18n/astUtils.js index 5a0540a2627..c14f11bdc43 100644 --- a/packages/kolibri-tools/lib/i18n/astUtils.js +++ b/packages/kolibri-tools/lib/i18n/astUtils.js @@ -630,13 +630,12 @@ function getMessagesFromFile(filePath, verbose = false) { logging.info(`Extracted ${Object.keys(messages).length} messages from :: ${filePath}`); logging.info(JSON.stringify(messages)); } - return messages; } catch (_) { logging.error( `Tried to find parsable Javascript in ${filePath} but could not. Will skip the file for now. This is a problem if you are expecting to translate any messages in that file - otherwise - you may ignore this message.` ); - return; } + return messages; } module.exports = {