mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-06 07:25:53 -05:00
23 lines
650 B
JavaScript
23 lines
650 B
JavaScript
|
const { readdirSync } = require("fs");
|
||
|
|
||
|
console.log(
|
||
|
"var locale_keys = " +
|
||
|
JSON.stringify([
|
||
|
...readdirSync("node_modules/dayjs/locale")
|
||
|
.filter((x) => x.endsWith(".js"))
|
||
|
.map((x) => {
|
||
|
v = x.split(".");
|
||
|
v.pop();
|
||
|
return v.join(".");
|
||
|
}),
|
||
|
...readdirSync("external/lang")
|
||
|
.filter((x) => x.endsWith(".json"))
|
||
|
.map((x) => {
|
||
|
v = x.split(".");
|
||
|
v.pop();
|
||
|
return v.join(".");
|
||
|
}),
|
||
|
]) +
|
||
|
";",
|
||
|
);
|