Class DefaultFtpCatalogLoader
The default implementation of the IFtpCatalogLoader.
Implements
Inherited Members
Namespace: FubarDev.FtpServer.Localization
Assembly: FubarDev.FtpServer.dll
Syntax
public class DefaultFtpCatalogLoader : IFtpCatalogLoader
Properties
| Improve this Doc View SourceDefaultCatalog
Gets the catalog for the DefaultLanguage.
Declaration
public ICatalog DefaultCatalog { get; }
Property Value
| Type | Description |
|---|---|
| NGettext.ICatalog |
DefaultLanguage
Gets the default language.
Declaration
public CultureInfo DefaultLanguage { get; }
Property Value
| Type | Description |
|---|---|
| CultureInfo |
Methods
| Improve this Doc View SourceGetSupportedLanguages()
Gets all supported languages.
Declaration
public 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
public 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. |