aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Helpers/StringLocalizerFactoryExtensions.cs
blob: 3cb561f5bc1daf2fac3fd2bdbfe3b4dbe7d2cec1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
        }
    }
}