Hi. I need to Complete split out the language settings cause I wont to be able to add more language in a prod environment and don't wont that to be overridden by pushing new config to prod. I have tried to do this by using config split and set all language modules as complete split, also set all configuration item I could find that have anything with language to do and also set "additional configuration" to language.*. When i then do drush cex it stills generate a lot of language files in [global-sync-folder]/language/[lang-code]/. This seems not right. I thought that it wouldn't create this [lang-code] folder at all?
Is it something I configured wrong or is this an issue with config split?
Comments
Comment #2
yareckon commentedHey, did you ever figure this out? We are in the middle of trying to allow languages to be changed on client sites without overwriting them with our config deployements.
Comment #3
bircherwell languages are config overrides that are saved in config collections.
it shouldn't matter that there are the translations in the collections as drupal will just ignore them if the config translations is not enabled. But using the same config once with multi lingual and once without is a recipe for trouble.
Maybe if we define clear specifications we can cooperate on a module that does that. But I would rather not complicate config_split more than necessary.
Comment #4
sinn commentedPlease try to use https://www.drupal.org/project/config_import_locale.
There is a setting "Nothing: Config imports will never add / change any interface translations".
Comment #5
lpeabody commented@bircher can you provide some more context/use case around what you mean by this:
What is a use case you can imagine that were this implemented would cause Drupal to go off the rails?
Comment #6
attraktive commentedHi !
I'm facing issues with language config split
I have one drupal site, with several instances.
Each instance has got its own language (fr, es, it, de).
the split configuration for each is like this (example with FR split configuration) :
blacklist:
- language.entity.fr
graylist:
- language.entity.und
- language.entity.zxx
- language.negotiation
But when i try ti drush cim, Drupal tries to import language.es collection translations, but spanish is not an active language on FR split config.... :/ ?
+-------------+--------------------------------------------------------------+-----------+
| Collection | Config | Operation |
+-------------+--------------------------------------------------------------+-----------+
| language.es | block_content.type.basic | Create |
| language.es | captcha.settings | Create |
| language.es | comment.type.comment | Create |
| language.es | core.base_field_override.node.page.promote | Create |
| language.es | core.date_format.fallback | Create |
| language.es | core.date_format.html_date | Create |
| language.es | core.date_format.html_datetime | Create |
| language.es | core.date_format.html_month | Create |
| language.es | core.date_format.html_time | Create |
| language.es | core.date_format.html_week | Create |
| language.es | core.date_format.html_year | Create |
| language.es | core.date_format.html_yearless_date | Create |
| language.es | core.date_format.long | Create |
| language.es | core.date_format.medium | Create |
| language.es | core.date_format.short | Create
...
Am i doing something wrong ?
EDIT : i even tried to blacklist all languages elements, and tried config_import_locale module too.. but without success.. impossible to split languages collections :/
Thanks
Comment #7
abu-zakham commentedhttps://www.drupal.org/project/idlc
Comment #8
attraktive commentedthanks @abu-zakham i'll try this ;)