i18n textdomains; specifically in our JavaScript packages
igorschoester opened this issue · comments
Via the following PR I found out we forgot the translations when moving code to their own packages: #13359
That solution could be improved still. 2 things come to mind:
- The
textdomain
used in the JavaScript packages are stillyoast-components
. Should this be changed to the package name? - For every package:
- An entry is added in the
package.json
scripts. - A Grunt
shell
task is created (which runs the script above). - A Grunt
copy
task is created (which moves the output of above). - The above tasks are added to the Grunt
build:i18n:potFiles
alias list.
- An entry is added in the
Closing this in favor of a comment in the readme of the javascript repo.