| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using System.Collections.Generic;
- using Abp.Localization;
- namespace Abp.Configuration.Startup
- {
- /// <summary>
- /// Used for localization configurations.
- /// </summary>
- internal class LocalizationConfiguration : ILocalizationConfiguration
- {
- /// <inheritdoc/>
- public IList<LanguageInfo> Languages { get; }
- /// <inheritdoc/>
- public ILocalizationSourceList Sources { get; }
- /// <inheritdoc/>
- public bool IsEnabled { get; set; }
- /// <inheritdoc/>
- public bool ReturnGivenTextIfNotFound { get; set; }
- /// <inheritdoc/>
- public bool WrapGivenTextIfNotFound { get; set; }
- /// <inheritdoc/>
- public bool HumanizeTextIfNotFound { get; set; }
- public bool LogWarnMessageIfNotFound { get; set; }
- public LocalizationConfiguration()
- {
- Languages = new List<LanguageInfo>();
- Sources = new LocalizationSourceList();
- IsEnabled = true;
- ReturnGivenTextIfNotFound = true;
- WrapGivenTextIfNotFound = true;
- HumanizeTextIfNotFound = true;
- LogWarnMessageIfNotFound = true;
- }
- }
- }
|