Try our conversational search powered by Generative AI!

DbLocalizationProvider shows duplicate entry

Vote:
 

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.