Skip to content

Commit

Permalink
feat(i18n): test the locales using the appropriate build flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Goutte committed Jan 10, 2024
1 parent f7f98c4 commit d362950
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ********************)
Expand Down
3 changes: 3 additions & 0 deletions localizer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit d362950

Please sign in to comment.