await _localizationService.AddLocaleResourceAsync("en-US", "Hello", "Hello World");
await _localizationService.AddLocaleResourceAsync("fr-FR", "Resources/MyFile.fr-FR.resx");In this example, the method adds a new localized resource file for the French (France) culture located at the path "Resources/MyFile.fr-FR.resx". The package library used for this example could be the Microsoft.Extensions.Localization.ResxLocalization package.