diff --git a/config_translation.module b/config_translation.module index d55cb9f..8690ef5 100644 --- a/config_translation.module +++ b/config_translation.module @@ -425,6 +425,6 @@ function config_translation_page_alter(&$page) { */ function config_translation_enter_context($language) { $user_config_context = config_context_enter('Drupal\user\UserConfigContext'); - $account = new User(array('preferred_langcode' => $language->langcode), 'user'); + $account = new User(array('langcode' => $language->langcode), 'user'); $user_config_context->setAccount($account); }