From aca8d6e10dae08dbc7c96f3127df682c562057a4 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Sat, 7 Sep 2024 14:27:01 +0300 Subject: [PATCH] Changed the names of session keys, cookies and headers for localization to `Accept-Language` --- config/public.php | 6 +++--- src/Constants/RouteName.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/public.php b/config/public.php index 0eb3cab..08a6545 100644 --- a/config/public.php +++ b/config/public.php @@ -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 */ diff --git a/src/Constants/RouteName.php b/src/Constants/RouteName.php index b22adfa..776c064 100644 --- a/src/Constants/RouteName.php +++ b/src/Constants/RouteName.php @@ -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'; }