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 | b67a26248d5dde4c3909c29b92b8a182248bdcc1 (patch) | |
tree | b005aa3d8bc34d8e710ce7fae30236c62dcbe712 /Timeline/Helpers/StringLocalizerFactoryExtensions.cs | |
parent | 9c9762b4ecbd816be98ee0dd606fe15cc253b415 (diff) | |
download | timeline-b67a26248d5dde4c3909c29b92b8a182248bdcc1.tar.gz timeline-b67a26248d5dde4c3909c29b92b8a182248bdcc1.tar.bz2 timeline-b67a26248d5dde4c3909c29b92b8a182248bdcc1.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 |