0
0
お題は不問!Qiita Engineer Festa 2024で記事投稿!
Qiita Engineer Festa20242024年7月17日まで開催中!

#github.com/go-playground/universal-translatorのエラーの解決

Posted at

エラー

#github.com/go-playground/universal-translator
C:\Users\user\go\pkg\mod\github.com\go-playground\universal-translator@v0.18.1\import_export.go:221:12: undefined: ErrMissingLocale
C:\Users\user\go\pkg\mod\github.com\go-playground\universal-translator@v0.18.1\import_export.go:244:12: undefined: ErrBadPluralDefinition
C:\Users\user\go\pkg\mod\github.com\go-playground\universal-translator@v0.18.1\translator.go:101:11: undefined: ErrConflictingTranslation
C:\Users\user\go\pkg\mod\github.com\go-playground\universal-translator@v0.18.1\translator.go:108:11: undefined: ErrMissingBracket
C:\Users\user\go\pkg\mod\github.com\go-playground\universal-translator@v0.18.1\translator.go:121:12: undefined: ErrBadParamSyntax
C:\Users\user\go\pkg\mod\github.com\go-playground\universal-translator@v0.18.1\translator.go:151:11: undefined: ErrCardinalTranslation
C:\Users\user\go\pkg\mod\github.com\go-playground\universal-translator@v0.18.1\translator.go:158:12: undefined: ErrConflictingTranslation
C:\Users\user\go\pkg\mod\github.com\go-playground\universal-translator@v0.18.1\translator.go:176:11: undefined: ErrCardinalTranslation
C:\Users\user\go\pkg\mod\github.com\go-playground\universal-translator@v0.18.1\translator.go:203:11: undefined: ErrOrdinalTranslation
C:\Users\user\go\pkg\mod\github.com\go-playground\universal-translator@v0.18.1\translator.go:210:12: undefined: ErrConflictingTranslation
C:\Users\user\go\pkg\mod\github.com\go-playground\universal-translator@v0.18.1\translator.go:210:12: too many errors

コンパイルは終了コード 1 で終了しました

環境

  • GoLand 2024.1.3
  • go-playground\universal-translator@v0.18.1

解決策

1.依存関係をアップデートする

go get -u github.com/go-playground/universal-translator

2.ダウングレードをする

go get github.com/go-playground/universal-translator@v0.17.0
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0