From 976e2fc3e25bfd08c755aa222a45c42a53b0b8e0 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 17 Sep 2024 21:33:08 +0200 Subject: tc: localization --- test-client/makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'test-client/makefile') diff --git a/test-client/makefile b/test-client/makefile index 2a83f5d0..72a04791 100644 --- a/test-client/makefile +++ b/test-client/makefile @@ -14,9 +14,20 @@ # along with this program. If not, see . # .PHONY: all clean -all: main.js +all: main.js locales +locales: $(patsubst ../locale/%.ini,locale/%.json,$(wildcard ../locale/*.ini)) clean: rm main.js + rm -rf locale main.js: main.ts $(wildcard *.ts) esbuild $< --bundle --outfile=$@ --target=esnext --format=esm + +LT = ../target/release/localetool + +$(LT): $(shell find ../locale/tools -type f) + { cd ..; cargo build --release --bin localetool; } + +locale/%.json: ../locale/%.ini $(LT) ../locale/en.ini + @mkdir -p locale + $(LT) export-json $< $@ --fallback ../locale/en.ini -- cgit v1.2.3-70-g09d2