- Support contextual binding (#879)
For guidance on the upgrade process, please refer to the UPGRADING.md file.
- Added compatibility with Laravel 6
- Respect locales mapping (#631)
- Merged in solution for caching translated and localized routes (originally in separate package czim/laravel-localization-route-cache) by CZim. If you used this package, be sure to remove it when upgrading to this version.
- Added
'utf8suffix' => env('LARAVELLOCALIZATION_UTF8SUFFIX', '.UTF-8')
to config file.
- Added
getLocalesOrder()
function to the package
- Added compatibility with Laravel 5.4
- Added compatibility with Laravel 5.2
- Added regional for date localization
- Added Session and Cookie Middleware
- Deleted useSessionLocale and useCookieLocale from config file
- Laravel 5 supported
- Added Middleware
- Removed deprecated functions
- Added tests from scratch
- Refactored multiple functions
- getLocalizedURL now accepts attributes for the url (if needed)
- $routeName is always a string, no need to be an array if it just have the translation key for the current url
- Laravel 4.2 compatibility
- Removed Laravel 4.0 compatibility
- Fixes issue with grouped routes
- Fixes issue localizing a url when segment starts with a locale
- Allow no url to be passed in localizeURL
- Fixes issue with double slashes in localized urls
- Strip trailing slashes from all localized urls
- Fixes URL localization issue when the base path is not / (a.k.a, Laravel is not installed in the web root).
- Deprecated "getLanguageBar"
- Throws exception if Larvel's default locale is not in the array of supported locales.
- Changes 302 redirect in to 307 to prevent POST values from being consumed.
- Added localizeURL function
- Deprecated "getCurrentLanguageDirection", "getCurrentLanguageScript"
- Added "getCurrentLocaleDirection", "getCurrentLocaleScript", "getCurrentLocaleName"
- Fixes to maintain compatibility with older config and languagebar.blade.php templates
- Fixed backward compatibility of getLanguageBar
- getLocalizedURL now returns URL paths in the same format as parameter inputted; trailing and leading slashes or lack of are respected.
- getLocalizedURL now compatible with querystrings
- merged getNonLocalizedURL and getLocalizedURL
- getNonLocalizedURL($url = null) is now a wrapper for getLocalizedURL(false, $url = null)
- Standardizing function names and variables using locale
- Deprecated getCleanRoute
- Deprecated useBrowserLanguage
- Changed config useBrowserLanguage to useAcceptLanguageHeader
- Deprecated useSessionLanguage
- Changed config useSessionLanguage to useSessionLocale
- Deprecated useCookieLanguagee
- Changed config useCookieLanguage to useCookieLocale
- Fixes issue #47
- Fixes issue where getCleanRoute would only clean out the currently set locale.
- getLocalizedURL now throws an UnsupportedLocaleException if the requested locale is not in the list of supported locales.
- Changed getLanguageBar to just return view. All other code has been moved to languagebar view.
- Deprecated getPrintCurrentLanguage
- Deprecated getLanguageBarClassName
- Merged languagesAllowed & supportedLanguages
- Added native for language names
- Added new function getSupportedLocales
- Deprecated getAllowedLanguages use getSupportedLocales instead
- Deprecated getSupportedLanguages use getSupportedLocales instead
- Added support for language script and direction
- Added multi-language routes
- Function
getCurrentLanguage
is not static
- Added the ability to edit the language bar code
- Added 'LaravelLocalizationRedirectFilter' filter
- Added
getURLLanguage
method. - Added
getLanguageBar
method. - Added
getURLLanguage
method. - Added config file
- Added
useBrowserLanguage
config value - Added README
- Initial release.