mokhosh / filament-jalali

Add Jalali datetime to your filament apps
MIT License
32 stars 2 forks source link

Added new config to ignore convert date in multilingual projects #7

Closed fatehiman closed 4 months ago

fatehiman commented 4 months ago

In multilingual projects, changing a config, will ignores converting dates and also opens native Filament calendar that is in Georgian format. This added config is: 'ignore_convert'

mokhosh commented 4 months ago

Can you please explain the problem you're trying to solve?

fatehiman commented 4 months ago

Hi dear Mo Khosh and thanks a lot for your Jalali calendar. The problem is that in multilingual projects, for example, Persian and English, when the language changes, the calendar should also change throughout the entire project. It is necessary to be able to make a small change, like modifying the config file, to display the calendar natively (Gregorian).

I have a project that is offered in both English and Persian versions, and with this new config, I can switch the calendar to Gregorian without modifying the project's code.

I would appreciate it if you have a better solution. Regards Amir On Friday, 28 June 2024 at 11:41:51 am GMT+3:30, Mo Khosh @.***> wrote:

Can you please explain the problem you're trying to solve?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

mokhosh commented 4 months ago

Yeah I had a cleaner solution. Thanks though!

Available in https://github.com/mokhosh/filament-jalali/releases/tag/v3.3.0

fatehiman commented 4 months ago

Very nice! Thanks a lot dear Mo. I'll ignore my fork and will use your new version.

Good luckAmir Yahoo Mail: Search, Organize, Conquer

On Tue, Jul 2, 2024 at 13:52, Mo @.***> wrote:

Yeah I had a cleaner solution. Thanks though!

Available in https://github.com/mokhosh/filament-jalali/releases/tag/v3.3.0

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>