Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
OmarIthawi opened this issue Jun 13, 2024 · 0 comments
Open

Comments

@OmarIthawi
Copy link
Member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant