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
I'm new to this CMS library. I'm using .NET 5 and doing the localization. I write some code to change the culture like:
CultureInfo ci = new(culture);
CultureInfo.DefaultThreadCurrentCulture = ci;
CultureInfo.DefaultThreadCurrentUICulture = ci;
It worked when I use my resources files "resources.en-US.resx" or "resources.vi-VN.resx" (I set new supported CultureInfo "en-US" and "vi-VN") but when I change resources files in Piranha.Manager.Localization from "General.vi.resx" to "General.vi-VN.resx"(for matching the culture format) it did not work anymore.
And if I set new supported CultureInfo to "en" and "vi" (for matching with resources files in Piranha.Manager.Localization) it still not works.
services.Configure<RequestLocalizationOptions>(
opt =>
{
var supportedCultres = new List<CultureInfo>
{
new CultureInfo("en"),
new CultureInfo("vi")
};
opt.DefaultRequestCulture = new RequestCulture("en");
opt.SupportedCultures = supportedCultres;
opt.SupportedUICultures = supportedCultres;
});
I don't know what I'm doing is right way to setup localization for piranha or not? I can't find any tutorial for that.
Can you help me for localization for PiranhaCMS?
I really appreciate that.
Best Regard
The text was updated successfully, but these errors were encountered:
I'm new to this CMS library. I'm using .NET 5 and doing the localization. I write some code to change the culture like:
It worked when I use my resources files "resources.en-US.resx" or "resources.vi-VN.resx" (I set new supported CultureInfo "en-US" and "vi-VN") but when I change resources files in Piranha.Manager.Localization from "General.vi.resx" to "General.vi-VN.resx"(for matching the culture format) it did not work anymore.
And if I set new supported CultureInfo to "en" and "vi" (for matching with resources files in Piranha.Manager.Localization) it still not works.
I don't know what I'm doing is right way to setup localization for piranha or not? I can't find any tutorial for that.
Can you help me for localization for PiranhaCMS?
I really appreciate that.
Best Regard
The text was updated successfully, but these errors were encountered: