I recently wanted to convert a bunch of .jsx
i18n files to json
to compare the total bundle size of the GP2040-CE firmware.
This is my hacky attempt.
export default {
"header-text": "GP2040-CE",
};
{
"header-text": "GP2040-CE"
}
Edit directoryPath at the bottom of the file and run with node index.js
Oh, the results: OpenStickCommunity/GP2040-CE#343 (comment)