volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

AI OnAI Off

DbLocalizationProvider shows duplicate entry

We have started using DbLocalizationProvider to allow editors to edit strings in their websites.  And we're using static classes with [LocalizedResource] attributes to define translation strings.

But in the Optimizely UI, I am presented with duplicated entries for each translation:

This looks a bit confusing for the editors. Is there a way to get rid of the bottom entry?

Here's how we configure DbLocalizationProvider:

services
    .AddDbLocalizationProviderAdminUI(opts =>
    {
        opts.ShowInvariantCulture = false;
        opts.ShowHiddenResources = false;
        opts.DefaultView = ResourceListView.Table;
        opts.AccessPolicyOptions = (builder) 
            => builder.AddRequirements(new RolesAuthorizationRequirement(new[] { RoleNames.WebAdmins, RoleNames.CmsAdmins, RoleNames.Administrators }));
    })
    .AddOptimizelyAdminUI();
#317357
Edited, Feb 19, 2024 14:49
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.