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

[Question]: Multi language support #39

Open
Gelidan opened this issue Aug 25, 2023 · 3 comments
Open

[Question]: Multi language support #39

Gelidan opened this issue Aug 25, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Gelidan
Copy link

Gelidan commented Aug 25, 2023

What happened?

I know this is not a bug, but there is no feature request option

How to reproduce the bug

Any ETA on multi language support?
It would be much appreciated.

Package Version

2

PHP Version

8.2

Laravel Version

10

Which operating systems does with happen with?

No response

Notes

No response

@Gelidan Gelidan added the bug Something isn't working label Aug 25, 2023
@Gelidan Gelidan changed the title [Bug]: Multi language support [Question]: Multi language support Aug 25, 2023
@shicosoft2011
Copy link

  • 1

@dgironella
Copy link

Is there any forecast for a solution to have multilanguage support? The package does its job very well, but the language issue is very important for many projects.

@kpsanmao
Copy link

kpsanmao commented Jan 9, 2024

A temporary solution

  1. format public/js/coolsam/flatpickr/components/flatpickr-component.js code
    online js formater tool :https://tools.02405.com/tool/js-formatter

  2. change the code below to your language:

    weekdays: {
         shorthand: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
         longhand: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
     },
     months: {
         shorthand: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
         longhand: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October",  "November", "December"]
     },
     rangeSeparator: " to ",
     weekAbbreviation: "Wk",
     scrollTitle: "Scroll to increment",
    toggleTitle: "Click to toggle",

example:

   weekdays: {
       shorthand: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
       longhand: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]
   },
   months: {
       shorthand: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
       longhand: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"]
   },
   rangeSeparator: " 至 ",
   weekAbbreviation: "周",
   scrollTitle: "滚动切换",
   toggleTitle: "点击切换 12/24 小时时制",

微信截图_20240109153058

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants