Coder Social home page Coder Social logo

Comments (15)

aocneanu avatar aocneanu commented on June 14, 2024

It was a problem with the placeholders in vue-form, they were not translated. It's fixed in laravel-enso/forms@106e70c.

Don't forget to add the placeholder in the form template, in the field's meta section.

Sepparately, I added localisation for the datepicker component.

From now on, whenever we add a new language we will have to update this file as well:

https://github.com/laravel-enso/FormBuilder/blob/106e70c7f7d09249c8063f7712403698ec529b55/src/resources/assets/js/components/enso/vueforms/flatpickrLocale.js

from localisation.

mauthi avatar mauthi commented on June 14, 2024

The datepicker keys are not collected - should this work?

And at the moment we get collected an empty key - we should add something like if key == '' don't collect

(if needed I will open an issue for each of the 2 parts)

from localisation.

aocneanu avatar aocneanu commented on June 14, 2024

what do you mean by "datepicker keys"?

from localisation.

mauthi avatar mauthi commented on June 14, 2024

from localisation.

aocneanu avatar aocneanu commented on June 14, 2024

Datepicker is a wrapper for the Flatpickr library. This library has its own localisation. With this laravel-enso/forms@106e70c I integrated the Flatpickr's native localisation with enso. So all the "keys" are now translated.

For the themes, we were also condering an approach, but please open a new ticket. Note that right now datepicker is a part of formbuilder (package). In the future we will created a dedicated npm / github package for this.

from localisation.

mauthi avatar mauthi commented on June 14, 2024

Datepicker is a wrapper for the Flatpickr library. This library has its own localisation. With this laravel-enso/forms@106e70c I integrated the Flatpickr's native localisation with enso. So all the "keys" are now translated.

Should this work already? Or do I have to set/change anything in my forms for this?

from localisation.

aocneanu avatar aocneanu commented on June 14, 2024
  • Composer update
  • add the placeholder to the form template in the date column’s meta

Play

from localisation.

mauthi avatar mauthi commented on June 14, 2024

from localisation.

aocneanu avatar aocneanu commented on June 14, 2024

image

image

from localisation.

aocneanu avatar aocneanu commented on June 14, 2024

what does your dev tools show for the datepicker? (locale)

image

from localisation.

mauthi avatar mauthi commented on June 14, 2024

Its "en"
screenshot 2018-03-29 08 33 43

Do I have to set the locale anywhere? Or where do you set it?

from localisation.

aocneanu avatar aocneanu commented on June 14, 2024

from here

image

from localisation.

mauthi avatar mauthi commented on June 14, 2024

screenshot 2018-03-29 09 02 03

from localisation.

aocneanu avatar aocneanu commented on June 14, 2024

Ah maybe you're not using the VueFormSS wrapper?

If not you should always pass the user's locale to the vue-form component.

from localisation.

mauthi avatar mauthi commented on June 14, 2024

That was the mistake - just changed it to VueFormSS

from localisation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.