Import v7.1 files
This commit is contained in:
14
src/PrayerTracker.Tests/TestLocalization.fs
Normal file
14
src/PrayerTracker.Tests/TestLocalization.fs
Normal file
@@ -0,0 +1,14 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user