Unable to use global variant group "locale" with the PlasmicRootProvider

I defined a global variant group named “locale”. I tried to use it with @plasmicapp/loader-gatsby PlasmicRootProvider without success.

<PlasmicRootProvider
    loader={initPlasmicLoader(plasmicOptions)}
    prefetchedData={plasmicComponents}
    globalVariants={[{ name: "locale", value: "en" }]}
>

If instead, I capitalize the first letter (“Locale”) in my code, but not in the studio, it does work.

It should not be case-sensitive in my opinion. And if it has to, there should be consistency between the studio and the code loader

Note: If that helps, I faced a similar issue when importing components before, that has already been fixed.

Yeah, I agree the case-sensitivity is kind of a mess right now :pensive: