Problem/Motivation

This module is useful to prevent overriding interface translation when importing config.
But it would also be useful to prevent overriding config when importing interface translation.
(Our use case is to keep config translation and interface translation completely separate.)

Steps to reproduce

  1. Add a string to interface translation that also exists in configuration.
  2. Configuration is overriden when importing translation.

(There is an explanation here about why Drupal does this.)

Proposed resolution

We could override the locale.config_manager service to prevent this.

But maybe having a separate contrib module for this would make more sense?

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

prudloff created an issue. See original summary.

prudloff’s picture

I pushed a basic patch but we probably want to have a separate config for this.

nginex’s picture

Status: Active » Needs review
Related issues: +#3204490: Add option to alter config import only in CLI mode

  • L_VanDamme committed 6828dbf7 on 1.x authored by prudloff
    Issue #3349131 by prudloff: Also prevent overriding config translation
    
l_vandamme’s picture

Status: Needs review » Fixed

Released in 2.0.0

nginex’s picture

Version: 8.x-1.x-dev » 2.0.0

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.