Git Product home page Git Product logo

Comments (8)

Fadev99 avatar Fadev99 commented on May 18, 2024 3

I'm trying this solution and it's working on my code ( Laravel )

  1. Use package flowbite-datepicker
  2. At file app.js
import Datepicker from "flowbite-datepicker/Datepicker";
import vi from "../../node_modules/flowbite-datepicker/js/i18n/locales/vi.js";

const datepickerEl = document.getElementById('datepickerId');
Datepicker.locales.vi = vi.vi;
new Datepicker(datepickerEl, {
   language: 'vi',
   format: 'dd/mm/yyyy'
});

from flowbite.

erenergul avatar erenergul commented on May 18, 2024 1

Hi, I am impressed with the design and I am considering purchasing a pro version, but I have a question regarding the code content. Does the pro version include exactly the same files as are free? Because I wanted to use your calendar component in my project today and... it didn't work very well.

I noticed the visual messes that were reported on other issues a while ago, as well as those wretched translations that can't be set.

From what I can see, the whole problem lies in the file base-locales.js, which is only English. My client is from Poland, so I needed a translation that is added but not used.

import {locales} from './i18n/base-locales.js';

Did you find any solution to translate ? I couldn't translate it.

from flowbite.

zoltanszogyenyi avatar zoltanszogyenyi commented on May 18, 2024

Hey @DanielCambray,

We'll address this issue in the v1.2.1 update.

https://github.com/themesberg/flowbite/projects/1

from flowbite.

bjorntj avatar bjorntj commented on May 18, 2024

Has this been resolved in 1.3.0?

from flowbite.

MichalPniak avatar MichalPniak commented on May 18, 2024

Hi, I am impressed with the design and I am considering purchasing a pro version, but I have a question regarding the code content. Does the pro version include exactly the same files as are free? Because I wanted to use your calendar component in my project today and... it didn't work very well.

I noticed the visual messes that were reported on other issues a while ago, as well as those wretched translations that can't be set.

From what I can see, the whole problem lies in the file base-locales.js, which is only English. My client is from Poland, so I needed a translation that is added but not used.

import {locales} from './i18n/base-locales.js';

from flowbite.

MichalPniak avatar MichalPniak commented on May 18, 2024

I have not found any solution, I just remember that you would have to overwrite the file where the languages are imported for this plugin. When I analyzed it some time ago, only the English language was being import.

from flowbite.

switch-coders avatar switch-coders commented on May 18, 2024

Hi!, this feature will be released in short term? I'm also using the CDN and I want to change the language with Spanish

from flowbite.

cotufaloschiflones avatar cotufaloschiflones commented on May 18, 2024

Hi, I'm having the same problem too, I'm not able to change the language. I have checked the last release 1.6.3 and it is not solving this

from flowbite.

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.