Files
PrayerTracker/src/Tests/TestLocalization.fs
T

15 lines
497 B
FSharp

module PrayerTracker.Tests.TestLocalization
open Microsoft.Extensions.Localization
open Microsoft.Extensions.Logging.Abstractions
open Microsoft.Extensions.Options
open PrayerTracker
let _s =
let asm = typeof<Common>.Assembly.GetName().Name
let opts =
{ new IOptions<LocalizationOptions> with
member _.Value with get () = LocalizationOptions (ResourcesPath = "Resources")
}
ResourceManagerStringLocalizerFactory(opts, new NullLoggerFactory ()).Create("Common", asm)