Skip to content

Commit

Permalink
Added support for Craft CMS 5
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrestoffe committed Apr 21, 2024
1 parent a2bd8af commit 6d4d59d
Show file tree
Hide file tree
Showing 5 changed files with 7,039 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .craftplugin
@@ -1 +1 @@
{"pluginName":"Locale Redirector","pluginDescription":"Automatically redirect visitors to their preferred language","pluginVersion":"2.0.1","pluginAuthorName":"Pierre Stoffe","pluginVendorName":"pierrestoffe","pluginAuthorUrl":"https://pierrestoffe.be","pluginAuthorGithub":"pierrestoffe","codeComments":"yes","pluginComponents":["services"],"consolecommandName":"","controllerName":"","cpsectionName":"","elementName":"","fieldName":"","modelName":"","purchasableName":"","recordName":"","serviceName":"","taskName":"","utilityName":"","widgetName":"","apiVersion":"api_version_3_0"}
{"pluginName":"Locale Redirector","pluginDescription":"Automatically redirect visitors to their preferred language","pluginVersion":"3.0.0","pluginAuthorName":"Pierre Stoffe","pluginVendorName":"pierrestoffe","pluginAuthorUrl":"https://pierrestoffe.be","pluginAuthorGithub":"pierrestoffe","codeComments":"yes","pluginComponents":["services"],"consolecommandName":"","controllerName":"","cpsectionName":"","elementName":"","fieldName":"","modelName":"","purchasableName":"","recordName":"","serviceName":"","taskName":"","utilityName":"","widgetName":"","apiVersion":"api_version_3_0"}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

## [Unreleased]

## [3.0.0] - 2024-04-21

### Fixed
- Added support for Craft CMS 5.x

## [2.0.1] - 2022-06-10

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions README.md
@@ -1,10 +1,10 @@
# Language Redirector plugin for Craft CMS 3.x
# Language Redirector plugin for Craft CMS 5.x

This plugin automatically redirects visitors to their preferred language

## Requirements

This plugin requires Craft CMS 3.0.0 or later.
This plugin requires Craft CMS 5.0.0 or later.

## Installation

Expand Down
23 changes: 19 additions & 4 deletions composer.json
Expand Up @@ -2,7 +2,7 @@
"name": "pierrestoffe/craft-language-redirector",
"description": "Automatically redirect visitors to their preferred language",
"type": "craft-plugin",
"version": "2.0.1",
"version": "3.0.0",
"keywords": [
"craft",
"cms",
Expand All @@ -11,7 +11,7 @@
"language redirector"
],
"support": {
"docs": "https://github.com/pierrestoffe/craft-language-redirector/blob/master/README.md",
"docs": "https://github.com/pierrestoffe/craft-language-redirector/blob/v3/README.md",
"issues": "https://github.com/pierrestoffe/craft-language-redirector/issues"
},
"license": "MIT",
Expand All @@ -22,7 +22,7 @@
}
],
"require": {
"craftcms/cms": "^3.0.0|^4.0.0",
"craftcms/cms": "^5.0.0",
"jaybizzle/crawler-detect" :"^1.2"
},
"autoload": {
Expand All @@ -36,10 +36,25 @@
"schemaVersion": "1.0.0",
"hasCpSettings": false,
"hasCpSection": false,
"changelogUrl": "https://raw.githubusercontent.com/pierrestoffe/craft-language-redirector/master/CHANGELOG.md",
"changelogUrl": "https://raw.githubusercontent.com/pierrestoffe/craft-language-redirector/v3/CHANGELOG.md",
"components": {
"languageRedirectorService": "pierrestoffe\\languageredirector\\services\\LanguageRedirectorService"
},
"class": "pierrestoffe\\languageredirector\\LanguageRedirector"
},
"minimum-stability": "dev",
"prefer-stable": true,
"require-dev": {
"craftcms/phpstan": "dev-main",
"craftcms/rector": "dev-main"
},
"config": {
"allow-plugins": {
"yiisoft/yii2-composer": true,
"craftcms/plugin-installer": true
}
},
"scripts": {
"phpstan": "phpstan --memory-limit=1G"
}
}

0 comments on commit 6d4d59d

Please sign in to comment.