Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Changing the admin panel language not programmatically.

    General Discussion
    2
    2
    216
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zack_akt07 last edited by

      The problem

      Hi, I'm a developer.

      • When I change the APP_LOCALE in .env the Configuration languages change accordingly.

      7d78c8ad-55e4-4e51-b59a-2357561f4946-image.png

      • but when I change the language from the admin panel it defaults back to the APP_LOCALE variable.

      • notice the green flash message in the screenshot below is still in french

      36505239-778f-4ab8-baa5-8e3e8b575f5d-image.png

      when I leave the Configuration tab and comeback, the setting goes back to french

      403f5f8a-da31-462d-a919-839721e2a032-image.png

      Questions

      • is this normal behavior in a bagisto setup?

      • case yes: If the admin can't change the language of the panel why is this setting even shown?

      • case no: what am I doing wrong possibly? and how can I override the default panel language?

      1 Reply Last reply Reply Quote 0
      • A
        Amitk-Webkul last edited by

        Hello there,

        After changing the APP_LOCALE run the optimization command-

        php artisan optimize:clear
        

        Note: To handle the dynamic attribute value, you need to include 'lang' in the 'edit attributes'.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post