Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add i18n support #75

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from
Open

add i18n support #75

wants to merge 1 commit into from

Conversation

neatstudio
Copy link

  • add flatpickrLocales to flatpickr.js and build it
  • usage:
Flatpickr::make('created_at')->label('Created At')
    ->customConfig([
        'locale' => 'zh', //'zh_tw' ,'ru', or others [only can be string]
    ])->monthSelect(),

Copy link

what-the-diff bot commented Dec 15, 2024

PR Summary

  • Brought in foreign language support for the calendar tool! 🌐
    We've essentially borrowed something called flatpickrLocales from the 'flatpickr/dist/l10n' library. This is like calling upon an online translator to help us out!

  • Connected the language support to our datepicker! 📅 🔀
    We integrated the localization feature into our datepicker function, flatpickrDatepicker. It's like teaching our calendar to speak different languages - now it can talk to you in style, in any language you choose! Super cool, right? 🕺💃

@neatstudio
Copy link
Author

fix #39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant