ES5 space-before-function-parens

This commit is contained in:
Amine Ben hammou
2017-09-21 08:35:12 +00:00
parent bf1d76a3a7
commit 680446b77e
52 changed files with 871 additions and 872 deletions

View File

@ -1,7 +1,7 @@
define('i18n',
[
'mailpoet'
], function(
], function (
mp
) {
'use strict';
@ -11,13 +11,13 @@ define('i18n',
var translations = {};
MailPoet.I18n = {
add: function(key, value) {
add: function (key, value) {
translations[key] = value;
},
t: function(key) {
t: function (key) {
return translations[key] || 'TRANSLATION "%$1s" NOT FOUND'.replace('%$1s', key);
},
all: function() {
all: function () {
return translations;
}
};