JS loaded SurfaceController-partialview returns wr...
# help-with-umbraco
d
I have used the same setup for changing cultures for years but it doesnt work anymore. VariationContext is correct and publishedcontent gets correct culture, but debugging shows wrong culture and GetDictionaryValue returns wrong culture. The controllers have no Attributes or OnAction and the site have no custom routings etc. Could it be related to cultures and hostnames? The site has "/" as Swedish culture and "/en" as english? Not sure why it happens... https://cdn.discordapp.com/attachments/1197538421606977657/1197538421917360188/image.png?ex=65bba190&is=65a92c90&hm=d3df5f821186d4605a9011615da9b863b0448e587b93cd81a8f03a14706095c3& https://cdn.discordapp.com/attachments/1197538421606977657/1197538422185803786/image.png?ex=65bba191&is=65a92c91&hm=bb8a1fe76c46aba14647377b450c556055421afefb6aec52f8e888fbfa1181d6&
k
Is
CurrentUICulture
also wrong?
Not sure why the culture is wrong...
k
I've only ever seen
en-US
as a "default when can't resolve" so that's likely what's happening, not Culture & Hostnames resolving to "English" because of configuration. Beyond that I have no idea. We do what you do, maybe not with partial actions/views but the rest.
3 Views