We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
developer_message in translations files are useful and provides context for translators in Transifex. However, in most MFEs it's gets discarded.
developer_message
Most repositories provides no developer_message e.g. Learning MFE:
openedx-translations/translations/frontend-app-learning/src/i18n/transifex_input.json
Lines 2 to 6 in e4f68ad
The transifex_input.json is extract with the following command:
transifex_input.json
package.json: https://github.com/openedx/frontend-app-learning/blob/81442bebe9af1084e7f01a962cec78f355a4e960/package.json#L14 "i18n_extract": "BABEL_ENV=i18n fedx-scripts babel src --quiet > /dev/null",
package.json
"i18n_extract": "BABEL_ENV=i18n fedx-scripts babel src --quiet > /dev/null",
Makefile: https://github.com/openedx/frontend-app-learning/blob/0bfb817439e71c78f4fd62bc99378f1054d3188f/Makefile#L16-L25
Makefile
Paragon transifex_input.json includes developer_message which provides helpful context for translators:
openedx-translations/translations/paragon/src/i18n/transifex_input.json
Lines 1 to 13 in 5acf6d6
Paragon uses the following scripts:
package.json: https://github.com/openedx/paragon/blob/f7cb7066f92d4bd25dc6dce8681dbf8338987ced/package.json#L39
"i18n_extract": "formatjs extract 'src/**/*.{jsx,js,tsx,ts}' --out-file ./src/i18n/transifex_input.json --format transifex",
Makefile: https://github.com/openedx/paragon/blob/ee4daa09521e8cad760c068bbba6314853fa0bd9/Makefile#L33-L37
The text was updated successfully, but these errors were encountered:
Thank you for your report! The Translations WG has been notified and will take a look as soon as they can.
Sorry, something went wrong.
No branches or pull requests
Description
developer_message
in translations files are useful and provides context for translators in Transifex. However, in most MFEs it's gets discarded.Bad example: frontend-app-learning
Most repositories provides no
developer_message
e.g. Learning MFE:openedx-translations/translations/frontend-app-learning/src/i18n/transifex_input.json
Lines 2 to 6 in e4f68ad
The
transifex_input.json
is extract with the following command:package.json
: https://github.com/openedx/frontend-app-learning/blob/81442bebe9af1084e7f01a962cec78f355a4e960/package.json#L14"i18n_extract": "BABEL_ENV=i18n fedx-scripts babel src --quiet > /dev/null",
Makefile
: https://github.com/openedx/frontend-app-learning/blob/0bfb817439e71c78f4fd62bc99378f1054d3188f/Makefile#L16-L25Good example: Paragon
Paragon
transifex_input.json
includesdeveloper_message
which provides helpful context for translators:openedx-translations/translations/paragon/src/i18n/transifex_input.json
Lines 1 to 13 in 5acf6d6
Paragon uses the following scripts:
package.json
: https://github.com/openedx/paragon/blob/f7cb7066f92d4bd25dc6dce8681dbf8338987ced/package.json#L39"i18n_extract": "formatjs extract 'src/**/*.{jsx,js,tsx,ts}' --out-file ./src/i18n/transifex_input.json --format transifex",
Makefile
: https://github.com/openedx/paragon/blob/ee4daa09521e8cad760c068bbba6314853fa0bd9/Makefile#L33-L37The text was updated successfully, but these errors were encountered: