Rewrite t to be called as a normal function

[MAILPOET-2677]
This commit is contained in:
Amine Ben hammou
2020-03-19 15:43:05 +01:00
committed by Veljko V
parent d1968dfe50
commit c1c845ab8d
13 changed files with 53 additions and 53 deletions

View File

@@ -1,3 +1,3 @@
import MailPoet from 'mailpoet';
export default ([word]: TemplateStringsArray) => MailPoet.I18n.t(word);
export default (word: string): string => MailPoet.I18n.t(word);