Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vardot/smart_ip_locale
This module adds language redirection via Smart IP module.
https://github.com/vardot/smart_ip_locale
country-codes drupal languages smart-ip
Last synced: 30 days ago
JSON representation
This module adds language redirection via Smart IP module.
- Host: GitHub
- URL: https://github.com/vardot/smart_ip_locale
- Owner: Vardot
- Created: 2021-08-14T15:14:12.000Z (over 3 years ago)
- Default Branch: 2.0.x
- Last Pushed: 2023-10-26T10:51:51.000Z (over 1 year ago)
- Last Synced: 2024-11-12T20:18:46.448Z (3 months ago)
- Topics: country-codes, drupal, languages, smart-ip
- Language: PHP
- Homepage: https://www.drupal.org/project/smart_ip_locale
- Size: 40 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Smart IP - Language Negotiation Redirect
This module adds language redirection via [Smart IP](https://www.drupal.org/project/smart_ip) module.
## Installation:
```
composer require drupal/smart_ip_locale
```## Usage:
We recommend you use this module along with [Language Cookie](https://www.drupal.org/project/language_cookie) module. This way you prevent IP to Language resolution for every page request.* Enable the module and go to:
Administration \ Configuration \ Regional and language \ Languages
* Enable the "Smart IP country code" detection method
and re-arrange the detection methods as you see fit.
The recommended arrangement is: "URL \ Cookie \ Smart IP country code".
* Edit the configuration of the module, by adding the country
code mapping to each corresponding language.## Dependencies:
* [Smart IP](https://www.drupal.org/project/smart_ip)## Best used with:
* [Language Cookie](https://www.drupal.org/project/language_cookie)