Coming from
#3446084-26: EntityTypeBundleInfo static caching is not language aware →
.
There is no method to get a config item for a specific language.
The core-blessed hack is to globally ::setConfigOverrideLanguage, and change it back. Which is cumbersome and error-prone.
From ConfigurableLanguageManager::getNativeLanguages
public function getNativeLanguages() {
$languages = $this->getLanguages(LanguageInterface::STATE_CONFIGURABLE);
$natives = [];
$original_language = $this->getConfigOverrideLanguage();
foreach ($languages as $langcode => $language) {
$this->setConfigOverrideLanguage($language);
$natives[$langcode] = ConfigurableLanguage::load($langcode);
}
$this->setConfigOverrideLanguage($original_language);
Language::sort($natives);
return $natives;
}
Add sth like Config::get($name, $language)
Bikeshed where the method should live, do it.
None.
None.
New method.
None.
New method to get config for a languege.
Active
11.0 🔥
configuration system
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No activities found.