Comments (15)
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:
from localisation.
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.
what do you mean by "datepicker keys"?
from localisation.
from localisation.
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.
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.
- Composer update
- add the placeholder to the form template in the date column’s meta
Play
from localisation.
from localisation.
from localisation.
what does your dev tools show for the datepicker? (locale)
from localisation.
Do I have to set the locale anywhere? Or where do you set it?
from localisation.
from here
from localisation.
from localisation.
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.
That was the mistake - just changed it to VueFormSS
from localisation.
Related Issues (20)
- Error message for selects not translated HOT 5
- Document title not translated if 'extendedDocumentTitle' => true
- Datatable not translated HOT 2
- Language of login page HOT 2
- Document title not translated after reload HOT 1
- Errors on login page (in 2.5.5) HOT 1
- Toastr title not translated on login screen HOT 7
- Translate time info in notifications HOT 1
- Don't get 2.3.7 on composer update HOT 1
- Update Tests HOT 1
- Build Factories for all relevant packages
- can_store_language expects deleted files HOT 3
- Language not set in Laravel session? HOT 2
- Support parameters in keys HOT 12
- Support filtering on translation values in editTexts HOT 6
- Localisation of login/password reset HOT 2
- system.localisation.merge 404 exception
- Refactor
- [bug] Remove key from lang files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from localisation.