branch bow-v2-go updated (ff54968 -> 32cb69c)
This is an automated email from the git hooks/post-receive script. New change to branch bow-v2-go in repository bow. See https://gitlab.nuiton.org/chorem/bow.git from ff54968 ajout du support i18n (ajout du champs lang dans les info du user) new 32cb69c correction type mime et label The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 32cb69c4b7122a43d36857229dc270494588a5a4 Author: Benjamin <poussin@codelutin.com> Date: Fri Jun 5 01:15:50 2020 +0200 correction type mime et label Summary of changes: pkg/http/router.go | 5 +++++ web/src/components/preferences/LangEditor.vue | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch bow-v2-go in repository bow. See https://gitlab.nuiton.org/chorem/bow.git commit 32cb69c4b7122a43d36857229dc270494588a5a4 Author: Benjamin <poussin@codelutin.com> Date: Fri Jun 5 01:15:50 2020 +0200 correction type mime et label --- pkg/http/router.go | 5 +++++ web/src/components/preferences/LangEditor.vue | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pkg/http/router.go b/pkg/http/router.go index f19d027..0a8b4a7 100644 --- a/pkg/http/router.go +++ b/pkg/http/router.go @@ -5,6 +5,7 @@ import ( "fmt" "io" "log" + "mime" "net/http" "os" "path/filepath" @@ -90,6 +91,10 @@ func Start(bowPublicURL string, addr string) { log.Fatal(srv.ListenAndServe()) } +func initMimeType() { + mime.AddExtensionType(".json", "application/json") +} + func handler404(w http.ResponseWriter, r *http.Request) { http.Error(w, "404 page not found", 404) } diff --git a/web/src/components/preferences/LangEditor.vue b/web/src/components/preferences/LangEditor.vue index 2ea7de1..10648e0 100644 --- a/web/src/components/preferences/LangEditor.vue +++ b/web/src/components/preferences/LangEditor.vue @@ -1,6 +1,6 @@ <template> <div class="lang-editor"> - <label for="lang">Max result</label> + <label for="lang">{{ $t('Lang') }}</label> <select v-model="lang"> <option v-for="l in availableLang" :key="l">{{ l }}</option> </select> @@ -39,7 +39,7 @@ class LangEditor extends Vue { (user) => { this.saveUser(user) - this.errorMsg = 'lang change to ' + v + this.errorMsg = this.$t('lang change to {lang}', {lang: v}) }, (err) => { console.log('ko', err) -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
chorem.org scm