public JsonStringLocalizer(
     JsonLocalizationOptions localizationOptions,
     string resourceName,
     ILogger logger)
 {
     _resourceName  = resourceName ?? throw new ArgumentNullException(nameof(resourceName));
     _logger        = logger ?? NullLogger.Instance;
     _resourcesPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, localizationOptions.ResourcesPath);
 }
 public JsonStringLocalizerFactory(IOptions <JsonLocalizationOptions> localizationOptions, ILoggerFactory loggerFactory)
 {
     _localizationOptions = localizationOptions.Value;
     _loggerFactory       = loggerFactory;
 }