We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go version
$ go version go version go1.20.5 darwin/arm64
Yes
go env
$ go env GO111MODULE="on" GOARCH="arm64" GOBIN="" GOCACHE="/Users/$USER/Library/Caches/go-build" GOENV="/Users/$USER/Library/Application Support/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="arm64" GOHOSTOS="darwin" GOINSECURE="" GOMODCACHE="/Users/$USER/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="darwin" GOPATH="/Users/$USER/go" GOPRIVATE="" GOPROXY="https://goproxy.cn,direct" GOROOT="/opt/homebrew/Cellar/go/1.20.5/libexec" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/opt/homebrew/Cellar/go/1.20.5/libexec/pkg/tool/darwin_arm64" GOVCS="" GOVERSION="go1.20.5" GCCGO="gccgo" AR="ar" CC="cc" CXX="c++" CGO_ENABLED="1" GOMOD="/dev/null" GOWORK="" CGO_CFLAGS="-O2 -g" CGO_CPPFLAGS="" CGO_CXXFLAGS="-O2 -g" CGO_FFLAGS="-O2 -g" CGO_LDFLAGS="-O2 -g" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/ql/c6vc6chx01z6269q2wwdhq3m0000gn/T/go-build4216456255=/tmp/go-build -gno-record-gcc-switches -fno-common"
I want to store the generated translation files in a specific directory, so I used the following command
gotext -srclang=en -dir=./Foo update -out=./catalog.go -lang=en,zh
The following directories should be generated
. ├── Foo │ ├── en │ │ └── out.gotext.json │ └── zh │ └── out.gotext.json ├── catalog.go └── translations.go
. ├── catalog.go ├── locales │ ├── en │ │ └── out.gotext.json │ └── zh │ └── out.gotext.json └── translations.go
The text was updated successfully, but these errors were encountered:
Change https://go.dev/cl/512015 mentions this issue: cmd/gotext: fix -dir flag
cmd/gotext: fix -dir flag
Sorry, something went wrong.
cc @mpvl
golang/text@fb697c0
No branches or pull requests
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I want to store the generated translation files in a specific directory,
so I used the following command
What did you expect to see?
The following directories should be generated
. ├── Foo │ ├── en │ │ └── out.gotext.json │ └── zh │ └── out.gotext.json ├── catalog.go └── translations.go
What did you see instead?
. ├── catalog.go ├── locales │ ├── en │ │ └── out.gotext.json │ └── zh │ └── out.gotext.json └── translations.go
The text was updated successfully, but these errors were encountered: