Skip to content

Commit

Permalink
rename trans-dump.ts to i18n-file-gen.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jan 6, 2025
1 parent 78e28df commit 53aab37
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/trans-dump.ts → bin/i18n-file-gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function keyListFrom(name: string): KeyList {
const dbCode = (obj: KeyList) => ` object ${convertObjectName(obj.name)}:\n${obj.code}`;

Promise.all(xmls.map(keyListFrom)).then(objs => {
const code = `// Generated with bin/trans-dump.ts
const code = `// Generated with bin/i18n-file-gen.ts
package lila.core.i18n
opaque type I18nKey = String
Expand Down
2 changes: 1 addition & 1 deletion bin/trans-unused
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def main() -> None:
r = subprocess.run(["sed","-i", "", f"/{unused}.*</d", path], capture_output=True)


r = subprocess.run(["pnpm", "run", "trans-dump"], cwd=LILA_DIR)
r = subprocess.run(["pnpm", "run", "i18n-file-gen"], cwd=LILA_DIR)
sys.exit(r.returncode)


Expand Down
2 changes: 1 addition & 1 deletion modules/coreI18n/src/main/key.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated with bin/trans-dump.ts
// Generated with bin/i18n-file-gen.ts
package lila.core.i18n

opaque type I18nKey = String
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"metals": "tail -F .metals/metals.log | stdbuf -oL cut -c 21- | rg -v '(notification for request|handleCancellation)'",
"serverlog": "pnpm journal & pnpm metals",
"piece-css": "pnpx tsx bin/gen/piece-css.ts",
"trans-dump": "pnpx tsx bin/trans-dump.ts",
"i18n-file-gen": "pnpx tsx bin/i18n-file-gen.ts",
"test": "vitest run --config=ui/vitest.config.mts",
"test:watch": "vitest --config=ui/vitest.config.mts",
"multilog": "pnpm serverlog & ui/build -w"
Expand Down

0 comments on commit 53aab37

Please sign in to comment.