Fetch current selected locale in a config file

  • How to fetch current selected locale on a config file which is located inside config folder? Actually im using a custom file called frontend-assets.php for all frontend assets at config->frontend-assets.php which is a config file similar to config->asgard->core->core.php which has all the admin assets. In the frontend-assets.php i want to fetch the current selected locale on the site. app()->getLocale() always gives me the site default locale but i want the current selected locale.

  • admin

    For reference:

    This was answered here: https://github.com/AsgardCms/Platform/issues/484

Log in to reply

Looks like your connection to AsgardCms was lost, please wait while we try to reconnect.