From 20e0d82e97fbda75414c119b962b252169a01112 Mon Sep 17 00:00:00 2001 From: Goutte Date: Wed, 10 Jan 2024 16:13:34 +0100 Subject: [PATCH] feat(i18n): add a Makefile recipe to install i18n extraction dependencies --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 53262b6e..87d1228b 100644 --- a/Makefile +++ b/Makefile @@ -27,13 +27,16 @@ richtest: install_deps $(info ******************** running tests with kyoh86/richgo ********************) richgo test -v ./... +i18n_extract: install_i18n_deps + $(info ******************** extracting translation files ********************) + xgotext -v -in . -out locales + install_deps: $(info ******************** downloading dependencies ********************) go get -v ./... +install_i18n_deps: + go install github.com/leonelquinteros/gotext/cli/xgotext + clean: rm -rf $(BIN) - -i18n_extract: - $(info ******************** extracting translation files ********************) - xgotext -v -in . -out locales