Sitecore 10.4.
Rendering parameters are only being applied to the primary language (English) and not falling back for secondary languages (ex: es-mx). I'm using a "helper" class to get the rendering params and I tried forcing it to get from the English version but it had no effect
public CssBase(RenderingParameters parameters)
{
using (new LanguageSwitcher("en"))
{
CssStyles = parameters["Css Styles"];
CssClasses = parameters["Css Classes"];
...
There are many more params but you get the idea. I get the correct values for English pages but not when I'm testing another language.
I'm guessing it may be because I need to get the English version before that point? This is the spot in the view where I get the params and pass them to the class:
...
@model RenderingModel
@{
var rendering = RenderingContext.Current.Rendering;
var parameters = rendering.Parameters;
var css = new CssBase(parameters);
...
But css is coming out with all empty strings.
Even when I try to get the rendering params directly in the view, I still get nothing where there should be something:
...
@model RenderingModel
@{
var rendering = RenderingContext.Current.Rendering;
var parameters = rendering.Parameters;
var cssClasses = parameters["Css Classes"];
...
I checked the Enable Field Level Fallback
on the /sitecore/templates/System/Templates/Sections/Layout/Layout/__Final Renderings
field.