From 479346faf008f639382601e78752934f8fa031af Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 2 Feb 2018 12:03:23 -0500 Subject: [PATCH] placeholder support from interface --- src/services/i18n2.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/i18n2.service.ts b/src/services/i18n2.service.ts index b8b7ad4d1e..0f9bc077dd 100644 --- a/src/services/i18n2.service.ts +++ b/src/services/i18n2.service.ts @@ -19,11 +19,11 @@ export default class I18n2Service implements I18nServiceAbstraction { this.collator = new Intl.Collator(this.locale); } - t(id: string): string { + t(id: string, p1?: string, p2?: string, p3?: string): string { return this.translate(id); } - translate(id: string): string { + translate(id: string, p1?: string, p2?: string, p3?: string): string { return this.i18nService[id]; } }