A language translation .pot file can be created automatically using wp-pot-cli.
.pot
Assuming that you have already run npm install, you can run the following command to create a translation file in the languages directory:
npm install
languages
npm run translate
There was an error while loading. Please reload this page.