1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

i18n server-side strings

This commit is contained in:
Harvey Kandola 2022-03-16 17:39:01 -04:00
parent df534f72fa
commit 7255eb4f56
5 changed files with 16 additions and 5 deletions

View file

@ -21,6 +21,7 @@ import (
"text/template"
"github.com/documize/community/core/env"
"github.com/documize/community/core/i18n"
"github.com/documize/community/core/response"
"github.com/documize/community/core/stringutil"
"github.com/documize/community/domain"
@ -67,7 +68,10 @@ func (h *Handler) Meta(w http.ResponseWriter, r *http.Request) {
data.ConversionEndpoint = org.ConversionEndpoint
data.Storage = h.Runtime.StoreProvider.Type()
data.Location = h.Runtime.Flags.Location // reserved
data.Locale = "en-US"
data.Locale = org.Locale
if len(data.Locale) == 0 {
data.Locale = i18n.DefaultLocale
}
// Is product setup complete? SMTP in this case.
data.Configured = true