You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the following validations to Localization in Nox Solution:
All are valid Culture Codes, use CultureCode.From()
On Apply defaults ensure (add to list if not) that supported SupportedCultures contains also DefaultCulture
On Apply defaults Create a Collection of SupportedCultures of Type CultureCode
Update IHttpLanguage to return CultureCode
public class Localization
{
[Title("The list of culture codes supported by the solution.")]
[Description("The list of culture codes that the solution supports.")]
[Pattern(@"^[a-z]{2}-[A-Z]{2}$")]
[Required]
public IReadOnlyList<string> SupportedCultures { get; set; } = new List<string>() { "en-US" };
[Title("The default culture code for the solution.")]
[Description("The default culture code used for formatting and translation.")]
[Pattern(@"^[a-z]{2}-[A-Z]{2}$")]
[Required]
public string DefaultCulture { get; set; } = "en-US";
}
The text was updated successfully, but these errors were encountered:
Add the following validations to Localization in Nox Solution:
CultureCode.From()
The text was updated successfully, but these errors were encountered: