From a7d773680605274407fd87f9663ea727ed29fd0c Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 9 Jun 2020 10:25:37 -0400 Subject: [PATCH] Add i18nservice abstraction (#770) --- src/Core/Services/II18nService.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/Core/Services/II18nService.cs diff --git a/src/Core/Services/II18nService.cs b/src/Core/Services/II18nService.cs new file mode 100644 index 000000000..0b9102c0e --- /dev/null +++ b/src/Core/Services/II18nService.cs @@ -0,0 +1,11 @@ +using Microsoft.Extensions.Localization; + +namespace Bit.Core.Services +{ + public interface II18nService + { + LocalizedString GetLocalizedHtmlString(string key); + string Translate(string key, params object[] args); + string T(string key, params object[] args); + } +}