JsonLocalTextRegistration.AddJsonTexts method
namespace: Serenity.Localization assembly: Serenity.Net.Core
Adds translations from JSON files at specified path. File names in this directory should be in format ..json where is a language code like 'en', 'en-GB' etc.
public static void AddJsonTexts(this ILocalTextRegistry registry, string path,
IFileSystem fileSystem = null)
parameter | description |
---|---|
registry | Registry |
path | Path containing JSON files |
fileSystem | File system |
See Also
- interface ILocalTextRegistry
- interface IFileSystem
- class JsonLocalTextRegistration