Open OmarIthawi opened 11 months ago
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:
https://github.com/openedx/openedx-translations/blob/e4f68adcb8f0b3e9d8ceaa0b6f3562e8c4511a36/translations/frontend-app-learning/src/i18n/transifex_input.json#L2-L6
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:
https://github.com/openedx/openedx-translations/blob/5acf6d6c51ccb459c5fe2138e0c77416884a7bb6/translations/paragon/src/i18n/transifex_input.json#L1-L13
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",
Thank you for your report! The Translations WG has been notified and will take a look as soon as they can.
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:https://github.com/openedx/openedx-translations/blob/e4f68adcb8f0b3e9d8ceaa0b6f3562e8c4511a36/translations/frontend-app-learning/src/i18n/transifex_input.json#L2-L6
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:https://github.com/openedx/openedx-translations/blob/5acf6d6c51ccb459c5fe2138e0c77416884a7bb6/translations/paragon/src/i18n/transifex_input.json#L1-L13
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