Re: [go-nuts] Internationalized webpage depending on the user's web browser locale

2022-10-10 Thread 'Sean Liao' via golang-nuts
.Lang comes from something gitea provided to the template, it's not an intrinsic part of go - sean On Mon, Oct 10, 2022, 19:48 Christoph wrote: > Hello, > > I am running a git-server, powered by gitea, an open-source git server > project written in Go. In gitea, it is possible to customize the

[go-nuts] Internationalized webpage depending on the user's web browser locale

2022-10-10 Thread Christoph
Hello, I am running a git-server, powered by gitea, an open-source git server project written in Go. In gitea, it is possible to customize the home page, what I did. My customized home page, among other things, contains: {{if eq .Lang "de-DE"}} Willkommen auf dem Git-Server der Fakultät