mirror of
https://github.com/spf13/cobra
synced 2025-04-27 17:17:20 +00:00
feat(i18n): add a Makefile recipe to install i18n extraction dependencies
This commit is contained in:
parent
d5cb9699a3
commit
3896533e76
1 changed files with 7 additions and 4 deletions
11
Makefile
11
Makefile
|
@ -27,13 +27,16 @@ richtest: install_deps
|
||||||
$(info ******************** running tests with kyoh86/richgo ********************)
|
$(info ******************** running tests with kyoh86/richgo ********************)
|
||||||
richgo test -v ./...
|
richgo test -v ./...
|
||||||
|
|
||||||
|
i18n_extract: install_i18n_deps
|
||||||
|
$(info ******************** extracting translation files ********************)
|
||||||
|
xgotext -v -in . -out locales
|
||||||
|
|
||||||
install_deps:
|
install_deps:
|
||||||
$(info ******************** downloading dependencies ********************)
|
$(info ******************** downloading dependencies ********************)
|
||||||
go get -v ./...
|
go get -v ./...
|
||||||
|
|
||||||
|
install_i18n_deps:
|
||||||
|
go install github.com/leonelquinteros/gotext/cli/xgotext
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(BIN)
|
rm -rf $(BIN)
|
||||||
|
|
||||||
i18n_extract:
|
|
||||||
$(info ******************** extracting translation files ********************)
|
|
||||||
xgotext -v -in . -out locales
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue