laravel-localization
laravel-localization copied to clipboard
Easy localization for Laravel
I would like to set a custom key/name for the cookie instead of the name 'locale'. My solution is that change 'locale' on LocaleCookieRedirect middleware to a config variable with...
**Can't run tests using localization** After reading your documentation I have added the following code to the /tests/TestCase.php file: protected function refreshApplicationWithLocale($locale) { self::tearDown(); putenv(LaravelLocalization::ENV_ROUTE_KEY . '=' . $locale); self::setUp();...
Hi, I'm having troubles with the package when using optional parameters in my translated routes. I use {{LaravelLocalization::localizeURL('partners')}} in my view. I have a route file NL which contains "partners"...
Changed where the event `routes.translation` is firing in order to fix the issue of attributes not being translated even though the event was firing. ``` public function getURLFromRouteNameTranslated($locale, $transKeyName, $attributes...
Set locale in fallback_locale and timezone on config/app.php http://br1.php.net/manual/en/timezones.php
**Actual Behavior** (a) http://www.somedomain.com/en/some/path This loads the route "some/path/" (handled by Laravel) (b) http://www.somedomain.com///en/some/path This ALSO loads the route "some/path/" (handled by Laravel) **Expected Behavior** (a) http://www.somedomain.com/en/some/path This should load...
Laravel-localization version: 1.3.6 Laravel Version: 5.5.39 PHP Version: 7.2.3 I tried to get supported locale exclude current locale, it was fine in 1.3.4 & 1.3.5 version. But it doesn't work...
Translation of regular routes works perfect, but as soon as I use an extra prefix, the route translation doesn't do anything. ` ``` Route::group(['prefix' => LaravelLocalization::setLocale(), 'middleware' => ['localeSessionRedirect', 'localizationRedirect',...
**Is your feature request related to a problem? Please describe.** Method `extractAttributes()` gets extremely slow for 60+ translatable routes. We use the `localizeUrl()` method in blade file where we render...
When GoogleBot crawles the page it is stuck on example.com instead of example.com/pl Normal users are always redirected, but all crawlers seem to get urls without the locale. How to...