mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 22:47:03 +03:00
babeljs: step 2
This commit is contained in:
parent
007a03b8d4
commit
53cf543795
74 changed files with 2551 additions and 2963 deletions
|
|
@ -7,9 +7,11 @@ import Globals from 'Common/Globals';
|
|||
|
||||
class Translator
|
||||
{
|
||||
data = {};
|
||||
notificationI18N = {};
|
||||
|
||||
constructor() {
|
||||
this.data = window['rainloopI18N'] || {};
|
||||
this.notificationI18N = {};
|
||||
this.trigger = ko.observable(false);
|
||||
this.i18n = _.bind(this.i18n, this);
|
||||
this.init();
|
||||
|
|
@ -185,7 +187,7 @@ class Translator
|
|||
|
||||
this.notificationI18N = this.notificationI18N || {};
|
||||
|
||||
_.each(map, (item) => {
|
||||
map.forEach((item) => {
|
||||
this.notificationI18N[item[0]] = this.i18n(item[1]);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue