Remove vluzrmos/language-detector package

This commit is contained in:
2026-01-11 16:31:16 +01:00
parent 4dc5dee2b9
commit 7e4ebd91ad
3 changed files with 2 additions and 112 deletions

View File

@@ -28,8 +28,7 @@
"rtconner/laravel-tagging": "^5.0", "rtconner/laravel-tagging": "^5.0",
"socialiteproviders/discord": "^4.2", "socialiteproviders/discord": "^4.2",
"spatie/laravel-discord-alerts": "^1.8", "spatie/laravel-discord-alerts": "^1.8",
"spatie/laravel-sitemap": "^7.3", "spatie/laravel-sitemap": "^7.3"
"vluzrmos/language-detector": "^2.3"
}, },
"require-dev": { "require-dev": {
"barryvdh/laravel-debugbar": "^3.16", "barryvdh/laravel-debugbar": "^3.16",

65
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "402d519a184641b9f18e8b106630dabe", "content-hash": "9287e7ef1f943600ac3e2b78bc9cd7c8",
"packages": [ "packages": [
{ {
"name": "brick/math", "name": "brick/math",
@@ -8703,69 +8703,6 @@
], ],
"time": "2025-12-27T19:49:13+00:00" "time": "2025-12-27T19:49:13+00:00"
}, },
{
"name": "vluzrmos/language-detector",
"version": "v2.3.6",
"source": {
"type": "git",
"url": "https://github.com/vluzrmos/laravel-language-detector.git",
"reference": "4f257f8b6bbe6d46c836b7b77de8cefd2db716d8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/vluzrmos/laravel-language-detector/zipball/4f257f8b6bbe6d46c836b7b77de8cefd2db716d8",
"reference": "4f257f8b6bbe6d46c836b7b77de8cefd2db716d8",
"shasum": ""
},
"require": {
"illuminate/support": "~6.0 || ~7.0 || ~8.0 || ~9.0 || ~10.0 || ^11.0 || ^12.0",
"php": "^7.2 || ^8.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.16 || ^3.51",
"orchestra/testbench": "^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
"phpunit/phpunit": "^8.5 || ^9.0 || ^10.5 || ^11.5.3"
},
"type": "package",
"extra": {
"laravel": {
"providers": [
"Vluzrmos\\LanguageDetector\\Providers\\LanguageDetectorServiceProvider"
]
}
},
"autoload": {
"files": [
"src/Support/helpers.php"
],
"psr-4": {
"Vluzrmos\\LanguageDetector\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Vagner do Carmo",
"email": "vluzrmos@gmail.com"
}
],
"description": "Detect the language for your application using browser preferences, subdomains or route prefixes.",
"keywords": [
"i18n",
"language",
"laravel",
"locale",
"lumen"
],
"support": {
"issues": "https://github.com/vluzrmos/laravel-language-detector/issues",
"source": "https://github.com/vluzrmos/laravel-language-detector/tree/v2.3.6"
},
"time": "2025-02-17T19:37:08+00:00"
},
{ {
"name": "voku/portable-ascii", "name": "voku/portable-ascii",
"version": "2.0.3", "version": "2.0.3",

View File

@@ -1,46 +0,0 @@
<?php
return [
/*
* Indicates whenever should autodetect and apply the language of the request.
*/
'autodetect' => env('LANG_DETECTOR_AUTODETECT', true),
/*
* Default driver to use to detect the request language.
*
* Available: browser, subdomain, uri.
*/
'driver' => env('LANG_DETECTOR_DRIVER', 'browser'),
/*
* Used on subdomain and uri drivers. That indicates which segment should be used
* to verify the language.
*/
'segment' => env('LANG_DETECTOR_SEGMENT', 0),
/*
* Languages available on the application.
*
* You could use parse_langs_to_array to use the string syntax
* or just use the array of languages with its aliases.
*/
'languages' => parse_langs_to_array(
env('LANG_DETECTOR_LANGUAGES', ['en', 'de', 'fr'])
),
/*
* Indicates if should store detected locale on cookies
*/
'cookie' => (bool) env('LANG_DETECTOR_COOKIE', true),
/*
* Indicates if should encrypt cookie
*/
'cookie_encrypt' => (bool) env('LANG_DETECTOR_COOKIE_ENCRYPT', false),
/*
* Cookie name
*/
'cookie_name' => env('LANG_DETECTOR_COOKIE', 'locale'),
];