Interface IFtpCatalogLoader
Loads the catalog for a given language.
Namespace: FubarDev.FtpServer.Localization
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public interface IFtpCatalogLoader
Properties
| Improve this Doc View SourceDefaultCatalog
Gets the catalog for the DefaultLanguage.
Declaration
ICatalog DefaultCatalog { get; }
Property Value
Type | Description |
---|---|
NGettext.ICatalog |
DefaultLanguage
Gets the default language.
Declaration
CultureInfo DefaultLanguage { get; }
Property Value
Type | Description |
---|---|
CultureInfo |
Methods
| Improve this Doc View SourceGetSupportedLanguages()
Gets all supported languages.
Declaration
IReadOnlyCollection<string> GetSupportedLanguages()
Returns
Type | Description |
---|---|
IReadOnlyCollection<String> | The collection of all supported languages. |
LoadAsync(CultureInfo, CancellationToken)
Loads the catalog for a given language
.
Declaration
Task<ICatalog> LoadAsync(CultureInfo language, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
CultureInfo | language | The language to load the catalog for. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<NGettext.ICatalog> | The loaded catalog. |