- Issue created by @trickfun
- 🇮🇹Italy trickfun
I found the solution.
I need to translate config.$config_factory = \Drupal::service('config.factory'); $config = $config_factory->getEditable('taxonomy.vocabulary.myvocabolary'); if($config){ $key = $config->getName(); $data =$config->get(); $data['langcode'] = $langcode; $data['name'] = $translated_name; $trans = \Drupal::languageManager()->getLanguageConfigOverride($langcode, $key); $trans->merge($data); $trans->save(); }
- Status changed to Closed: works as designed
about 1 year ago 10:27am 14 November 2023