From d36295043578ec1b7cb867a8780f3e0f5c289f4e Mon Sep 17 00:00:00 2001 From: Goutte Date: Wed, 10 Jan 2024 16:44:52 +0100 Subject: [PATCH] feat(i18n): test the locales using the appropriate build flag --- Makefile | 3 ++- localizer_test.go | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 87d1228b..2c75209a 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,8 @@ lint: test: install_deps $(info ******************** running tests ********************) - LANGUAGE="en" go test -v ./... + go test -v ./... + LANGUAGE="en" go test -tags locales -v ./... richtest: install_deps $(info ******************** running tests with kyoh86/richgo ********************) diff --git a/localizer_test.go b/localizer_test.go index 44ef594c..41e28faa 100644 --- a/localizer_test.go +++ b/localizer_test.go @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build locales +// +build locales + package cobra import (