Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localization does not work after Publish #555

Closed
maliming opened this issue Oct 22, 2018 · 8 comments
Closed

Localization does not work after Publish #555

maliming opened this issue Oct 22, 2018 · 8 comments
Assignees
Milestone

Comments

@maliming
Copy link
Member

When debug the abp_io project locally, the Localization works fine.

The Localization does not work properly after the site is published.

dotnet publish "abp_io/src/Volo.AbpWebSite.Web/Volo.AbpWebSite.Web.csproj" -c Release

app.UseRequestLocalization(options =>
{
	options.DefaultRequestCulture = new RequestCulture("zh-Hans", "zh-Hans");
	options.AddSupportedCultures("zh-Hans");
	options.AddSupportedUICultures("zh-Hans");
});

I think it is related to #554

@hikalkan
Copy link
Member

I will check this. Thanks @maliming

@hikalkan hikalkan modified the milestones: 0.8, 0.9 Oct 29, 2018
@hikalkan hikalkan self-assigned this Oct 30, 2018
@hikalkan hikalkan modified the milestones: 0.8, 0.9 Nov 16, 2018
@hikalkan hikalkan removed their assignment Nov 16, 2018
@hikalkan
Copy link
Member

hikalkan commented Dec 4, 2018

Hi @maliming does that problem still exists?

@maliming
Copy link
Member Author

maliming commented Dec 4, 2018

Wait a moment for me to sync the code and test it out

@maliming
Copy link
Member Author

maliming commented Dec 4, 2018

@hikalkan
In this document still not working.

image

image

@hikalkan hikalkan modified the milestones: 0.9, 0.10 Dec 7, 2018
@hikalkan hikalkan assigned hikalkan and unassigned yekalkan Dec 17, 2018
@hikalkan
Copy link
Member

Can you try it like that: fd72d7a

Used UseAbpRequestLocalization instead of UseRequestLocalization and configured AbpLocalizationOptions.

@maliming
Copy link
Member Author

I will try it to see.

@maliming
Copy link
Member Author

It work. thanks @hikalkan

@djlaney3
Copy link

djlaney3 commented Jan 9, 2019

This is still broke with the latest starter template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants