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
var supportedCultures = new List<CultureInfo>
{
new CultureInfo("en"),
new CultureInfo("uk"),
new CultureInfo("ru")
};
app.UseRequestLocalization(new RequestLocalizationOptions
{
DefaultRequestCulture = new RequestCulture("en"),
SupportedCultures = supportedCultures,
SupportedUICultures = supportedCultures
});
@stenvix can you share your model code? The data annotations attributes have some complicated behavior because they have their own localization system.
Hi. We're closing this issue as we have heard no response from you for some time now. If you have more details and are encountering this issue please add a new reply and re-open the issue.
From @stenvix on Monday, May 22, 2017 1:33:54 AM
Technical details
Operating system: Windows 10
IDE: Visual Studio 2017 Professional Version 15.2(26430.6)
Runtime: .NET Core 1.1
Information
I had strange behaviour when use data annotation with "ResourceType",
Like in docs I init localization:
ConfigureServices
Configure
In model I use attribute
IHtmlLocalizer, IStringLocalizer working correctly, But name on DataAnnotations use Russian resx by default
English Language:
Link
But if I use Ukrainian language all working fine
Ukrainian Language:
Link
Have any logical explanation why this happend??
Copied from original issue: aspnet/Localization#371
The text was updated successfully, but these errors were encountered: