Skip to content

Commit

Permalink
Merge pull request #35 from Laravel-Lang/1.x
Browse files Browse the repository at this point in the history
Changed the names of session keys, cookies and headers for localization to `Accept-Language`
  • Loading branch information
andrey-helldar authored Sep 7, 2024
2 parents 6836060 + aca8d6e commit 67c9273
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions config/public.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@
* Default values:
*
* parameter - locale
* header - X-Localization
* cookie - X-Localization
* session - X-Localization
* header - Accept-Language
* cookie - Accept-Language
* session - Accept-Language
* column - column
*/

Expand Down
6 changes: 3 additions & 3 deletions src/Constants/RouteName.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
class RouteName
{
public const Column = 'locale';
public const Cookie = 'X-Localization';
public const Header = 'X-Localization';
public const Cookie = 'Accept-Language';
public const Header = 'Accept-Language';
public const Parameter = 'locale';
public const Session = 'X-Localization';
public const Session = 'Accept-Language';
}

0 comments on commit 67c9273

Please sign in to comment.