@roudanio/awesome-comment 0.4.4 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/i18n.js ADDED
@@ -0,0 +1,7 @@
1
+ import { writeFile } from 'node:fs/promises';
2
+
3
+ const response = await fetch('https://qe-editor.arealme.com/-/output/comment.arealme.com');
4
+ const i18n = await response.json();
5
+ i18n[ 'zh-CN' ] = i18n.cn;
6
+ delete i18n.cn;
7
+ await writeFile('i18n.json', JSON.stringify(i18n, null, 2), 'utf8');