diff options
author | 杨宇千 <crupest@outlook.com> | 2019-10-23 20:41:19 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-10-23 20:41:19 +0800 |
commit | 9a163719b76958374d1c27616393368e54e8b8a5 (patch) | |
tree | b005aa3d8bc34d8e710ce7fae30236c62dcbe712 /Timeline/Helpers/StringLocalizerFactoryExtensions.cs | |
parent | 3ddb38839ac07de4edf071faeb753b62acb0bed1 (diff) | |
download | timeline-9a163719b76958374d1c27616393368e54e8b8a5.tar.gz timeline-9a163719b76958374d1c27616393368e54e8b8a5.tar.bz2 timeline-9a163719b76958374d1c27616393368e54e8b8a5.zip |
...
Diffstat (limited to 'Timeline/Helpers/StringLocalizerFactoryExtensions.cs')
-rw-r--r-- | Timeline/Helpers/StringLocalizerFactoryExtensions.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Timeline/Helpers/StringLocalizerFactoryExtensions.cs b/Timeline/Helpers/StringLocalizerFactoryExtensions.cs index 3cb561f5..c2252b2c 100644 --- a/Timeline/Helpers/StringLocalizerFactoryExtensions.cs +++ b/Timeline/Helpers/StringLocalizerFactoryExtensions.cs @@ -10,5 +10,10 @@ namespace Timeline.Helpers {
return factory.Create(basename, new AssemblyName(typeof(StringLocalizerFactoryExtensions).Assembly.FullName!).Name);
}
+
+ internal static StringLocalizer<T> Create<T>(this IStringLocalizerFactory factory)
+ {
+ return new StringLocalizer<T>(factory);
+ }
}
}
\ No newline at end of file |