Skip to content

JsonLocalTextRegistration.AddJsonTexts method

Adds translations from JSON files at the specified path. File names in this directory should be in the 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 The registry to add texts to.
path The path containing the JSON files.
fileSystem The file system to use, or null to use the physical file system.

See Also