Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrestoffe committed Apr 26, 2024
1 parent d04c71e commit 607e432
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .craftplugin
@@ -1 +1 @@
{"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"}
{"pluginName":"Locale Redirector","pluginDescription":"Automatically redirect visitors to their preferred language","pluginVersion":"3.1.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"}
22 changes: 22 additions & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,28 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

## [Unreleased]

## [3.1.0] - 2024-04-26

### Added
- Added Twig function `getGuessedLanguage` for guessing the user's preferred language
- Added Twig function `getSavedLanguage` for getting the language preference that is saved in the user's session
- Added Twig function `hasLanguageSuggestion` for getting a `bool` indicating if a better language match exists for the user
- Added Twig function `getInformationForLanguage` for getting Site information from a language string

## Changed
- Renamed private `_getLanguageFromSession` method to `getLanguageFromSession` public method
- Renamed private `_getLanguageFromGuess` method to `getLanguageFromGuess` public method
- Renamed private `_getPreferredLanguage` method to `getPreferredLanguage` public method
- Turned private `_checkIfSiteIsAlreadyInUse` method into `_checkIfSiteIsAlreadyInUse` protected method
- Turned private `_setQueryParameters` method into `_setQueryParameters` protected method
- Turned private `_getQueryParameters` method into `_getQueryParameters` protected method
- Turned public `_getSiteGroup` method into `_getSiteGroup` protected method
- Turned public `_getSiteGroupId` method into `_getSiteGroupId` protected method

## Deprecated
- Renamed `languageSwitcher` Twig extension to `languageRedirector`
- Renamed `languageSwitcher.getUrls` method to `languageRedirector.getLanguageOptions`

## [3.0.0] - 2024-04-21

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion 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": "3.0.0",
"version": "3.1.0",
"keywords": [
"craft",
"cms",
Expand Down

0 comments on commit 607e432

Please sign in to comment.