mirror of
https://github.com/spf13/cobra
synced 2024-06-16 08:49:09 +00:00
feat(i18n): add a Makefile recipe to install i18n extraction dependencies
This commit is contained in:
parent
c922911024
commit
20e0d82e97
11
Makefile
11
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
|
||||
|
|
Loading…
Reference in a new issue