Interface IInternationalizationService
Namespace: Cmc.Nexus.Common.Services
Assembly: Cmc.Nexus.Common.Contracts.dll
Syntax
public interface IInternationalizationService : IEntityService<InternationalizationEntity>, IService
Methods
DownloadDataTranslation(DataTranslationDownloadRequest)
Download Data translation file in process time
Declaration
DataTranslationDownloadResponse DownloadDataTranslation(DataTranslationDownloadRequest request)
Parameters
Type | Name | Description |
---|---|---|
DataTranslationDownloadRequest | request |
Returns
Type | Description |
---|---|
DataTranslationDownloadResponse |
Get(String)
Get Internationalization Entity by Code
Declaration
InternationalizationEntity Get(string localeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | localeName | Locale Name |
Returns
Type | Description |
---|---|
InternationalizationEntity |
GetDefaultActiveLocale()
Get Default Active Locale name
Declaration
string GetDefaultActiveLocale()
Returns
Type | Description |
---|---|
System.String | Locale Name |
GetResourceFile(String)
Get the Resource for the culture
Declaration
string GetResourceFile(string localeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | localeName | Locale Name |
Returns
Type | Description |
---|---|
System.String | string containing the file contents |
GetTextFile(String)
Get the text file for the client
Declaration
string GetTextFile(string localeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | localeName | Locale Name |
Returns
Type | Description |
---|---|
System.String | string containing the file contents |
GetTextFileJs(String)
Get the text JS file for the client
Declaration
string GetTextFileJs(string localeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | localeName | Locale Name |
Returns
Type | Description |
---|---|
System.String | string containing the file contents |
IsLocaleNameActive(String)
Is the locale name active
Declaration
bool IsLocaleNameActive(string localeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | localeName | Locale Name |
Returns
Type | Description |
---|---|
System.Boolean | boolean |
QueueDataTranslation(DataTranslationQueueRequest)
Queue Data translation file in process time
Declaration
DataTranslationQueueResponse QueueDataTranslation(DataTranslationQueueRequest request)
Parameters
Type | Name | Description |
---|---|---|
DataTranslationQueueRequest | request | DataTranslationQueueRequest |
Returns
Type | Description |
---|---|
DataTranslationQueueResponse | DataTranslationQueueResponse |
UploadDataTranslation(DataTranslationUploadRequest)
Upload Data translation file in process time
Declaration
DataTranslationUploadResponse UploadDataTranslation(DataTranslationUploadRequest request)
Parameters
Type | Name | Description |
---|---|---|
DataTranslationUploadRequest | request | DataTranslationUploadRequest |
Returns
Type | Description |
---|---|
DataTranslationUploadResponse | DataTranslationUploadResponse |