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

Merged
merged 1 commit into from
Feb 28, 2025
Merged

add i18n support #75

merged 1 commit into from
Feb 28, 2025

Conversation

neatstudio
Copy link
Contributor

  • 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
Contributor Author

fix #39

@coolsam726 coolsam726 merged commit 1ce47d0 into savannabits:3.x Feb 28, 2025
1 check passed
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.

2 participants