Skip to content

bug: no translations are found when running make extract_translations #424

@OmarIthawi

Description

@OmarIthawi

This repository needs to use react-intl pattern similar to frontend-app-learning.

Run `npm audit` for details.
# Pulling display strings from .jsx files into .json files...
rm -rf ./temp/babel-plugin-formatjs
npm run-script i18n_extract

> @edx/[email protected] i18n_extract
> BABEL_ENV=i18n fedx-scripts babel src --quiet > /dev/null

# Gathering JSON messages into one file...
./node_modules/.bin/transifex-utils.js ./temp/babel-plugin-formatjs ./src/i18n/transifex_input.json
/home/runner/work/openedx-translations/openedx-translations/translations/frontend-app-enterprise-public-catalog/node_modules/@edx/frontend-platform/i18n/scripts/transifex-utils.js:42
  throw new Error('Found no messages');
  ^

Error: Found no messages
    at Object.<anonymous> (/home/runner/work/openedx-translations/openedx-translations/translations/frontend-app-enterprise-public-catalog/node_modules/@edx/frontend-platform/i18n/scripts/transifex-utils.js:42:9)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:10[76](https://github.com/openedx/openedx-translations/actions/runs/9491561897/job/26157757304#step:5:77):32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:22:47
make: *** [Makefile:23: i18n.concat] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions