From 76c777acc15f5cc4d9d131b3207cbc0a9e6d9193 Mon Sep 17 00:00:00 2001 From: Harvey Kandola Date: Mon, 6 Feb 2023 11:45:47 -0500 Subject: [PATCH] French localization --- README.md | 7 ++++--- core/i18n/localize.go | 1 + gui/app/services/i18n.js | 8 +++++++- gui/package.json | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 54811500..6ebb23af 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,9 @@ All you need to provide is your database -- PostgreSQL, Microsoft SQL Server or ## Latest Release -[Community edition: v5.4.2](https://github.com/documize/community/releases) +[Community edition: v5.5.0](https://github.com/documize/community/releases) -[Community+ edition: v5.4.2](https://www.documize.com/community/get-started) +[Community+ edition: v5.5.0](https://www.documize.com/community/get-started) The Community+ edition is the "enterprise" offering with advanced capabilities and customer support: @@ -63,7 +63,7 @@ For all database types, Full-Text Search support (FTS) is mandatory. ## Technology Stack -- Go (v1.19.2) +- Go (v1.20.0) - Ember JS (v3.12.0) ## Authentication Options @@ -83,6 +83,7 @@ Languages supported out-of-the-box: - English - German +- French - Chinese (中文) - Portuguese (Brazil) (Português - Brasil) diff --git a/core/i18n/localize.go b/core/i18n/localize.go index 90a5a407..a8bda3f0 100644 --- a/core/i18n/localize.go +++ b/core/i18n/localize.go @@ -23,6 +23,7 @@ func SupportedLocales() (locales []string) { locales = append(locales, "de-DE") locales = append(locales, "zh-CN") locales = append(locales, "pt-BR") + locales = append(locales, "fr-FR") return } diff --git a/gui/app/services/i18n.js b/gui/app/services/i18n.js index 4c12122c..6feb719a 100644 --- a/gui/app/services/i18n.js +++ b/gui/app/services/i18n.js @@ -9,7 +9,7 @@ import Service, { inject as service } from '@ember/service'; import $ from 'jquery'; export default Service.extend({ - langs: { enUS: [], deDE: [] , zhCN: [], ptBR: [] }, + langs: { enUS: [], deDE: [] , zhCN: [], ptBR: [], frFR: [] }, locales: [], session: service(), @@ -27,6 +27,9 @@ export default Service.extend({ $.getJSON("/i18n/pt-BR.json", (data) => { this.langs.ptBR = data; }); + $.getJSON("/i18n/fr-FR.json", (data) => { + this.langs.frFR = data; + }); }, localize(key, ...args) { @@ -45,6 +48,9 @@ export default Service.extend({ case "pt-BR": str = this.langs.ptBR[key]; break; + case "fr-FR": + str = this.langs.frFR[key]; + break; } if (_.isUndefined(str)) { diff --git a/gui/package.json b/gui/package.json index 8c416617..82231997 100644 --- a/gui/package.json +++ b/gui/package.json @@ -1,6 +1,6 @@ { "name": "documize", - "version": "5.4.2", + "version": "5.5.0", "private": true, "description": "Documize Community", "repository": "",