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

Bagisto

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

please can you tell me where the errors are displayed in english, I would like to translate them into french

General Discussion
3
13
805
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.
  • O
    Omar last edited by 11 Jul 2020, 15:05

    Hello ,
    please can you tell me where the errors are displayed in english, I would like to translate them into french

    erreur.png

    1 Reply Last reply Reply Quote 0
    • V
      Vaishali Agarwal last edited by 11 Jul 2020, 15:36

      Hi @Omar
      All the shop package errors are defined here https://github.com/bagisto/bagisto/tree/master/packages/Webkul/Shop/src/Resources/lang .

      1 Reply Last reply Reply Quote 0
      • O
        Omar last edited by 11 Jul 2020, 15:44

        Hello @Vaishali-Agarwal ,
        yes I have already consult this link I did not find this error in red on password,
        there are only the errors displayed at the top but not the one

        1 Reply Last reply Reply Quote 0
        • V
          Vaishali Agarwal last edited by 13 Jul 2020, 04:45

          Hi @Omar
          for translation of error message, you can follow this link https://github.com/bagisto/bagisto/issues/2437

          1 Reply Last reply Reply Quote 0
          • O
            Omar last edited by 13 Jul 2020, 10:14

            Please @Vaishali-Agarwal ,
            please see I don't see the lang folder of the link https://github.com/bagisto/bagisto/tree/master/packages/Webkul/Shop/src/Resources/assets/js/lang in my project

            1 Reply Last reply Reply Quote 0
            • O
              Omar last edited by 13 Jul 2020, 11:18

              error.png

              please tell me where the file /Webkul/Shop/src/Resources/assets/js/lang/locales.js is located. so that I can translate the error because I don't see it in my project

              1 Reply Last reply Reply Quote 0
              • V
                Vaishali Agarwal last edited by 13 Jul 2020, 12:31

                @Omar
                go to this file; https://github.com/bagisto/bagisto/blob/master/packages/Webkul/Shop/src/Resources/assets/js/app.js

                1 Reply Last reply Reply Quote 0
                • O
                  Omar last edited by 13 Jul 2020, 12:46

                  @Vaishali-Agarwal
                  yes there is no translation file in app.js
                  there is only import (import from 'vee-validate / dist / locale / de';
                  import ar from 'vee-validate / dist / locale / ar';)
                  I think the errors must be in this import

                  1 Reply Last reply Reply Quote 0
                  • P
                    prateek-webkul last edited by 13 Jul 2020, 14:33

                    @Omar
                    Yes, within app.js file, you need to import your locale of vee-validate in shop or velocity app.js file and add it it dictionary with their locale code.

                    Once changes is done, run npm install and npm run watch in shop or velocity package for which you are trying to perform the operation

                    1 Reply Last reply Reply Quote 0
                    • O
                      Omar last edited by 13 Jul 2020, 15:30

                      @prateek-webkul
                      I already did this action, where the vee-validate file is located, please?

                      1 Reply Last reply Reply Quote 0
                      • O
                        Omar last edited by 13 Jul 2020, 15:36

                        because I made the translation of my project by this bagisto/tree/master/packages/Webkul/Shop/src/Resources/lang/en manually, I did not add regional parameters

                        1 Reply Last reply Reply Quote 0
                        • O
                          Omar last edited by 13 Jul 2020, 15:43

                          I can't see this file in my project,
                          i think the error is in this file
                          lien.png

                          1 Reply Last reply Reply Quote 0
                          • P
                            prateek-webkul last edited by 13 Jul 2020, 15:50

                            @Omar ,
                            in our previous versions, we have locales.js file but now in our latest version we can do the respective changes in app.js file. Follow below points:

                            1. assume you want to add ar locales, then you need to add "import ar from 'vee-validate/dist/locale/ar';" in app.js file

                            2. Next, you need to register your locale like this in dictionary
                              Vue.use(VeeValidate, {
                              dictionary: {
                              ar: ar,
                              de: de,
                              },
                              events: 'input|change|blur',
                              });

                            Note: Follow this https://vee-validate.logaretm.com/v2/guide/localization.html#using-the-dictionary-api for more details

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