Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

This small project provides the ability for your Drupal 9 website to redirect new users to the correct translation language of your website based on the user's browser language preference.

Features

The project was created when we get the task to redirect a user to configured translation when the user first gets to the website. And most of the modules had too much functionality(not needed in the context of the task) or too much of configurations(some third-party services) or basically had conflicts with already presented features on our website as language switchers. So was decided to leave this module for the community, maybe it will solve someone's similar tasks.

Post-Installation

Basically, when the user first log in to your website it detects his browser's preferred language and checks for your mapping configurations in language detection and selection - Browser method, then if there is configured translation for this specific language and the node has been translated to this language - redirects the user to the correct translation and adding a cookie in order to avoid further redirections and allow a user to switch freely between languages using such features as for example language switcher.

Additional Requirements

This module's proper work depends on Drupal multilingual extensions, and configurations in detection and selection(admin->config->regional and language->languages->detection and selection(or simply by this url: /admin/config/regional/language/detection)). Then configure and enable the Browser detection method.

Basically, this module does good work in the pair with lang_dropdown(Language Switcher Dropdown) module.

Similar projects

There are some modules on drupal.org that have similar functions, but this module is basically very simple and uses the Drupal core basic language detection method(browser detection), so you don't need lots of additional configurations.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jun 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.0-alpha1 Pre-release Jun 22, 2023