Additionally, the two messages.pot writeFileSync calls were removed. This file is added also when both calls are removed, and both calls errors out due to the "wx" flag failing if the path exists. Even when initially manually removing the file, this error occurs.
Lastly, the forEach iteration for the locales is replaced with a for of loop as the promise returned in the forEach is not used.
If adjusting the catch blocks to print out the error if caught, below message is shown.
This file is specified to contain the list of available translations.
More here: https://www.gnu.org/software/gettext/manual/html_node/po_002fLINGUAS.html
Additionally, the two
messages.pot
writeFileSync calls were removed. This file is added also when both calls are removed, and both calls errors out due to the "wx" flag failing if the path exists. Even when initially manually removing the file, this error occurs.Lastly, the forEach iteration for the locales is replaced with a
for of
loop as the promise returned in the forEach is not used.If adjusting the catch blocks to print out the error if caught, below message is shown.