mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
Prep v5.13.0 release
This commit is contained in:
parent
3fc0a15f87
commit
efb092ef8f
7 changed files with 31 additions and 21 deletions
|
@ -9,7 +9,7 @@ import Service, { inject as service } from '@ember/service';
|
|||
import $ from 'jquery';
|
||||
|
||||
export default Service.extend({
|
||||
langs: { enUS: [], deDE: [] , zhCN: [], ptBR: [], frFR: [], jaJP: [], itIT: [] },
|
||||
langs: { enUS: [], deDE: [] , zhCN: [], ptBR: [], frFR: [], jaJP: [], itIT: [], esAR: [] },
|
||||
locales: [],
|
||||
session: service(),
|
||||
|
||||
|
@ -36,6 +36,9 @@ export default Service.extend({
|
|||
$.getJSON("/i18n/it-IT.json", (data) => {
|
||||
this.langs.itIT = data;
|
||||
});
|
||||
$.getJSON("/i18n/es-AR.json", (data) => {
|
||||
this.langs.esAR = data;
|
||||
});
|
||||
},
|
||||
|
||||
localize(key, ...args) {
|
||||
|
@ -63,7 +66,10 @@ export default Service.extend({
|
|||
case "it-IT":
|
||||
str = this.langs.itIT[key];
|
||||
break;
|
||||
}
|
||||
case "es-AR":
|
||||
str = this.langs.esAR[key];
|
||||
break;
|
||||
}
|
||||
|
||||
if (_.isUndefined(str)) {
|
||||
// eslint-disable-next-line no-console
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue