Skip to content

Commit

Permalink
feat(i18n): add a Makefile recipe to install i18n extraction dependen…
Browse files Browse the repository at this point in the history
…cies
  • Loading branch information
Goutte committed Jan 10, 2024
1 parent c922911 commit 20e0d82
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 20e0d82

Please sign in to comment.