i'm trying to change language with laravel but it still en (fallback_locale)
locale changes successfully to another language but laravel still depends on fallback_locale
while changing fallback locale to 'ar' as example, blade prints the key as web.product.name
i tried trans('web.product.name',[],'ar');
in tinker cmd and it works fine
/config/app.php
'locale' => 'ar',
'locales' => ['en', 'ar', 'ku', 'tu'],
php artisan cache:clear
does not effect
echo 'locale' anywhere returns what i set but lang still en
question from:
https://stackoverflow.com/questions/66065537/laravel-translation-still-en-even-if-locale-changed 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…