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>.