Unable to get the current language in the route.

Created on 2 February 2023, almost 2 years ago

When my drupal/core is upgraded from 9.3.22 to 9.5.2, $this->languageManager->getCurrentLanguage(); does not work properly, no matter how I change the language in the url, it always returns en.
Similar to the problem mentioned in the link below.
https://www.drupal.org/forum/support/module-development-and-code-questio... β†’

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024