aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Helpers
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-10-20 21:32:38 +0800
committer杨宇千 <crupest@outlook.com>2019-10-20 21:32:38 +0800
commit1ce632ad3c093bd60e4c75dd4229266604012729 (patch)
treec50aff4b98c2582a216a57268bcf3cfa67ff03ae /Timeline/Helpers
parentbd7eaa3c7f605ec1234ca5a8c664ec165e581b70 (diff)
downloadtimeline-1ce632ad3c093bd60e4c75dd4229266604012729.tar.gz
timeline-1ce632ad3c093bd60e4c75dd4229266604012729.tar.bz2
timeline-1ce632ad3c093bd60e4c75dd4229266604012729.zip
...
Diffstat (limited to 'Timeline/Helpers')
-rw-r--r--Timeline/Helpers/StringLocalizerFactoryExtensions.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/Timeline/Helpers/StringLocalizerFactoryExtensions.cs b/Timeline/Helpers/StringLocalizerFactoryExtensions.cs
new file mode 100644
index 00000000..3cb561f5
--- /dev/null
+++ b/Timeline/Helpers/StringLocalizerFactoryExtensions.cs
@@ -0,0 +1,14 @@
+
+using Microsoft.Extensions.Localization;
+using System.Reflection;
+
+namespace Timeline.Helpers
+{
+ internal static class StringLocalizerFactoryExtensions
+ {
+ internal static IStringLocalizer Create(this IStringLocalizerFactory factory, string basename)
+ {
+ return factory.Create(basename, new AssemblyName(typeof(StringLocalizerFactoryExtensions).Assembly.FullName!).Name);
+ }
+ }
+} \ No newline at end of file