When I get my top level groups using:
var shop = !string.IsNullOrEmpty(shopId) ? Services.Shops.GetShop(shopId) : Services.Shops.GetDefaultShop(); var topLevelGroups = shop.get_TopLevelGroups(ecomLanguage);
Where my ecomLanguage value = "LANG2"
And I would like the subgroups of one of there top groups using:
var parentGroup = topLevelGroups.FirstOrDefault(tg => tg.Id.Equals(parentId)); var validGroups = parentGroup?.Subgroups?.Where(sg => validGroupIds.Contains(sg.Id));
The parentGroup.Subgroups are of "LANG1" ....
And there seems to be no way to get the LANG2 versions at this point ...
The subgroups are in the context language, which doesn't necessarily makes sense ....