1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-18 20:59:43 +02:00

French localization

This commit is contained in:
Harvey Kandola 2023-02-06 11:45:47 -05:00
parent ea9ff78411
commit 76c777acc1
4 changed files with 13 additions and 5 deletions

View file

@ -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)

View file

@ -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
}

View file

@ -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)) {

View file

@ -1,6 +1,6 @@
{
"name": "documize",
"version": "5.4.2",
"version": "5.5.0",
"private": true,
"description": "Documize Community",
"repository": "",