hi
Howt about this way?
app.UseAbpRequestLocalization();
app.Use(async (httpContext, next) =>
{
if (CultureInfo.CurrentUICulture.TwoLetterISOLanguageName == "ar")
{
CultureInfo.CurrentUICulture = new CultureInfo("ar")
{
DateTimeFormat =
{
ShortDatePattern = "your custom format",
Calendar = new GregorianCalendar()
// other properties of DateTimeFormat
}
// other properties of CultureInfo
};
}
await next(httpContext);
});
hi
https://support.abp.io/QA/Questions/3327/
hi
Can you consider it like this?
@if (CultureInfo.CurrentUICulture.TwoLetterISOLanguageName == "ar")
{
<input type="text"
class="form-control"
name="StartDate"
value="@DateTime.Now.AddMonths(-1).Date.ToString("Custom your ShortDatePattern")" />
}
else
{
<input type="text"
class="form-control"
name="StartDate"
value="@DateTime.Now.AddMonths(-1).Date.ToString(CultureInfo.CurrentUICulture.DateTimeFormat.ShortDatePattern)" />
}
I can't download, please share a url that can be downloaded directly.
A minimal project, Thanks liming.ma@volosoft.com
Please find a way to provide a project that reproduces the problem.
In your Blazor.csproj file and update the Blazorise packages version to 1.0.4 then re-run the abp bundle command.
hi
You can try to update the version of Blazorise.,
<PackageReference Include="Blazorise.Bootstrap5" Version="1.0.4" />
<PackageReference Include="Blazorise.Icons.FontAwesome" Version="1.0.4" />
<PackageReference Include="Blazorise.Components" Version="1.0.4" />
I can't find a possible solution based on the info you provided, You can try to prepare a minimal project to reproduce the problem.