• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

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

Login form - Translation of error messages

Knowledge Base
8
11
2.0k
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.
  • W
    William Hatanaka last edited by 30 Apr 2020, 02:47

    Hello,
    I am trying to translate Bagisto to Japanese and I found the place that I have some difficulties to do it.
    Just for the record, I am using the Laravel eCommerce Hide Shop for Guest extention.
    .env

    APP_TIMEZONE=Asia/Tokyo
    APP_LOCALE=ja
    

    I already translate some part of the system without problem.
    I added at the /bagisto/resources/lang/ja/validation.php for Japanese language, but the message error is in English as the following :
    LoginErrorMsgTranslation.png
    Please, could someone guide me where I can translate the error message?
    Thank you very much!

    1 Reply Last reply Reply Quote 0
    • S
      shaiv-webkul last edited by 1 May 2020, 06:39

      To resolve your issue just the follow the step
      go to your shop->src->resources->js->app.js and following line import ja from 'vee-validate/dist/locale/ja'; just after line no 4

      then replace your Vue.use function with the below one

      Vue.use(VeeValidate, {
      dictionary: {
      ar: ar,
      de: de,
      ja: ja,
      },
      events: 'input|change|blur',
      });

      after that you have to run npm i and npm run watch in the shop package.

      W 1 Reply Last reply 1 May 2020, 10:47 Reply Quote 0
      • W
        William Hatanaka @shaiv-webkul last edited by 1 May 2020, 10:47

        Hey @shaiv-webkul,
        I'm using Bagisto with docker, so do you know how i must to proceed to configure npm on file docker-compose.yml?
        And after that which is the command to do execute it?
        Like:

        docker exec -i apache2 bash -c "su - www-data -s /bin/bash -c 'npm i'"
        
        docker exec -i apache2 bash -c "su - www-data -s /bin/bash -c 'npm run watch'"
        

        How to redirect to folder shop package?
        Thank you

        W 1 Reply Last reply 4 May 2020, 02:30 Reply Quote 0
        • W
          William Hatanaka @William Hatanaka last edited by 4 May 2020, 02:30

          Hello!
          Did you get some solution for my difficult?
          Thank you !

          1 Reply Last reply Reply Quote 0
          • S
            shaiv-webkul last edited by 5 May 2020, 04:21

            you have to run below command

            docker exec -i apache2 bash -c "su - www-data -s /bin/bash -c 'cd bagisto_installation_directory && npm i'"

            docker exec -i apache2 bash -c "su - www-data -s /bin/bash -c 'cd bagisto_installation_directory && npm run watch'"

            1 Reply Last reply Reply Quote 0
            • S
              sebastian last edited by sebastian 13 May 2020, 18:33 13 May 2020, 18:22

              Still having the same problem, but with the admin errors translation, I changed the locale, but without success

              webkul/admin/src/resources/assets/js/app.js

              Snímek obrazovky 2020-05-13 v 20.19.48.png

              1 Reply Last reply Reply Quote 0
              • V
                Vaishali Agarwal last edited by 14 May 2020, 05:36

                @sebastian
                change the default locale from .env and run php artisan config:cache

                1 Reply Last reply Reply Quote 0
                • H
                  hypernomad last edited by 16 Jan 2024, 12:15

                  I'm facing the exact same issue with admin area of bagisto 2.0.0.
                  alt text

                  It is much appreciated if anyone can provide the step by step guide to solve this issue.

                  Thank you in advance.

                  ashish2409 1 Reply Last reply 24 Jan 2024, 07:27 Reply Quote 0
                  • ashish2409
                    ashish2409 @hypernomad last edited by 24 Jan 2024, 07:27

                    @hypernomad

                    Please follow below path and there chose the locale in which you want to add translation.

                    Root Path -> lang -> ja - > validation.php

                    Thank You

                    S 1 Reply Last reply 29 Jan 2024, 06:27 Reply Quote 0
                    • S
                      sunsourceenergy @ashish2409 last edited by 29 Jan 2024, 06:27

                      @ashish2409 can you please check why my contact form not working? https://www.sunsource-energy.com/contact-us

                      admin 1 Reply Last reply 29 Jan 2024, 07:18 Reply Quote 0
                      • admin
                        admin @sunsourceenergy last edited by 29 Jan 2024, 07:18

                        @sunsourceenergy is the site built on bagisto?

                        1 Reply Last reply Reply Quote 0
                        1 out of 11
                        • First post
                          1/11
                          Last post