mirror of
https://github.com/revoltchat/revite.git
synced 2025-04-21 07:57:11 -05:00
fix: pre-cache to not include extra files
This commit is contained in:
parent
3a12f92867
commit
f9f0d5c55a
9 changed files with 71 additions and 222 deletions
22
scripts/locale.js
Normal file
22
scripts/locale.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
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(".");
|
||||
}),
|
||||
]) +
|
||||
";",
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue