Skip to content
Discussion options

You must be logged in to vote

Hello joaopedrobarbosa,

To localize into Portuguese, import the translated file as follows:

import { Portuguese } from "flatpickr/dist/l10n/pt.js";
import Flatpickr from "flatpickr";

Flatpickr.localize(Portuguese);

This will configure Flatpickr to use Portuguese as the localization.

Don't forget to run the development environment to test your changes. Once development is complete, you can build the assets for production.

Let me know if you have any questions!

Best regards,
Suraj

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by devansh-webkul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants