Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

Azure localization not working like in localhost #318

Closed
sanchapereira opened this issue Feb 1, 2017 · 5 comments
Closed

Azure localization not working like in localhost #318

sanchapereira opened this issue Feb 1, 2017 · 5 comments
Assignees

Comments

@sanchapereira
Copy link

sanchapereira commented Feb 1, 2017

I have an ASP.NET Core Web App (version 1.1) using Resources files for Localization/Globalization.
On localhost all resources are found, but on Azure the localizer only founds resources for Views.

For example, the resource file Controllers.HomeController.en-US.resx works ok in localhost but on Azure it only works if I rename it to Namespace.Controllers.HomeController.en-US.resx. On localhost the second name does not work.

@hishamco
Copy link
Contributor

hishamco commented Feb 1, 2017

Strange!! @ryanbrandenburg did you face this before? or is it a new scenario that needs investigation?

@Eilon
Copy link
Contributor

Eilon commented Feb 7, 2017

@ryanbrandenburg please take a look.

@Ponant
Copy link

Ponant commented Feb 7, 2017

@sanchapereira I am not having this issue with .Net Core 1.1 uploaded to Azure from VS 2017 RC. My resource file is
Controllers.HomeController.en-US.resx and the same file with fr-FR

@ryanbrandenburg
Copy link
Contributor

@sanchapereira it's hard to know without seeing your code, but I suspect you have the same (or a similar) problem as #314, namely that your namespace isn't matching the assembly name of your project. Please review #314 and the "Resource file naming" section of this documentation. If you're still having trouble after that then please upload a minimal reproduction app and link it here so I can take a look.

@ryanbrandenburg
Copy link
Contributor

If that didn't fix it let us know, closing this out until then.

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

No branches or pull requests

5 participants