From 9d275dad06112998d6c7d30e827221270021bcd8 Mon Sep 17 00:00:00 2001 From: Daniel Jann Date: Thu, 15 Apr 2021 16:57:36 +0200 Subject: [PATCH] fix issue #60, use stringLocalizer arguments --- .../DbStringLocalizer/SqlStringLocalizer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Localization.SqlLocalizer/DbStringLocalizer/SqlStringLocalizer.cs b/src/Localization.SqlLocalizer/DbStringLocalizer/SqlStringLocalizer.cs index fbd5292..6b57c0a 100644 --- a/src/Localization.SqlLocalizer/DbStringLocalizer/SqlStringLocalizer.cs +++ b/src/Localization.SqlLocalizer/DbStringLocalizer/SqlStringLocalizer.cs @@ -37,7 +37,8 @@ public LocalizedString this[string name] { get { - return this[name]; + var localizedString = this[name]; + return new LocalizedString(name, String.Format(localizedString.Value, arguments), localizedString.ResourceNotFound); } }