Bagisto Forum

    Bagisto

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

    Changes on language file not reflecting.

    General Discussion
    2
    8
    551
    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.
    • G
      gwachhamit last edited by

      I just changed some translation in app.php in shop package (default bagisto package). ie sale => Sale, New => New Arrival. But the changes were not reflected.
      this is the line to show language attribute.

      __('shop::app.products.new')
      
      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by

        Hi @gwachhamit,

        Which bagisto version are you using? Did you published your translation?

        1 Reply Last reply Reply Quote 0
        • G
          gwachhamit last edited by gwachhamit

          I'm using bagisto v1.3.1

          I want to change the language text New to New Arrival (marked in image below),

          'new' => 'New Arrival'
          

          so updated in app.php file inside webkul/shop package. But it is not reflecting any changes.
          langIssue1.jpg

          1 Reply Last reply Reply Quote 0
          • devansh-webkul
            devansh-webkul last edited by

            Hi @gwachhamit,

            I think you have changed in the wrong place may be. I am just assuming or may be a cached issue because I have done exact same thing and it's working fine.

            Screenshot.png

            1 Reply Last reply Reply Quote 0
            • G
              gwachhamit last edited by

              I have changed in the file inside directory

              packages/Webkul/Shop/src/Resources/lang/en/app.php
              

              if this is not correct file, then which one is?

              1 Reply Last reply Reply Quote 0
              • devansh-webkul
                devansh-webkul last edited by

                @gwachhamit said in Changes on language file not reflecting.:

                packages/Webkul/Shop/src/Resources/lang/en/app.php

                This is the right place and you are doing right also. The problem is that you are not publishing your lang file.

                In short, just do one thing, change here, you will automatically get what I am trying to say.
                resources/lang/vendor/shop/en/app.php

                1 Reply Last reply Reply Quote 0
                • G
                  gwachhamit last edited by

                  thank you, I forgot to publish.

                  1 Reply Last reply Reply Quote 0
                  • devansh-webkul
                    devansh-webkul last edited by

                    Thanks for the update.

                    Also, if you like our support, you may give us the review here:- https://www.trustpilot.com/review/bagisto.com

                    That would be grateful for us.

                    Thanks & Regards,
                    Bagisto Team

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