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

Locale didn't change years A.D to Buddhist Era (BE). #238

Closed
X1ZERO opened this issue Sep 13, 2019 · 2 comments · Fixed by #241
Closed

Locale didn't change years A.D to Buddhist Era (BE). #238

X1ZERO opened this issue Sep 13, 2019 · 2 comments · Fixed by #241
Assignees
Labels
bug Something isn't working

Comments

@X1ZERO
Copy link

X1ZERO commented Sep 13, 2019

2019-09-13_11h25_06

I use locale for Thailand.

it use Buddhist Era.

this is my code:
<Calendar locale='th-Th' calendarType="US" />

2019-09-13_11h23_55

And in the month view, it change to Buddhist Era (BE), but in year view, decade view and century view, it didn't change.

2019-09-13_11h24_09

2019-09-13_11h24_26

@l2el3er
Copy link

l2el3er commented Sep 23, 2019

god bless !!
i have this problem too ._.

@wojtekmaj wojtekmaj self-assigned this Sep 23, 2019
@wojtekmaj wojtekmaj added the bug Something isn't working label Sep 23, 2019
@wojtekmaj
Copy link
Owner

Wow! I've learned so much about world calendars when working on this project. Now there's another thing :)

I'll be happy to fix that.

wojtekmaj added a commit that referenced this issue Sep 23, 2019
… custom function

Fix an issue where Navigation for century view, decade view and year view would not have titles properly localized in th-TH locale
Fix an issue where Decade and Year tiles would not have labels properly localized in th-TH locale
Add support for custom formatYear function
Add new tests for formatting tiles

Fixes #238
wojtekmaj added a commit that referenced this issue Sep 26, 2019
… custom function (#241)

Fix an issue where Navigation for century view, decade view and year view would not have titles properly localized in th-TH locale
Fix an issue where Decade and Year tiles would not have labels properly localized in th-TH locale
Add support for custom formatYear function
Add new tests for formatting tiles

Fixes #238
felixmosh pushed a commit to felixmosh/react-calendar that referenced this issue Nov 8, 2020
… custom function (wojtekmaj#241)

Fix an issue where Navigation for century view, decade view and year view would not have titles properly localized in th-TH locale
Fix an issue where Decade and Year tiles would not have labels properly localized in th-TH locale
Add support for custom formatYear function
Add new tests for formatting tiles

Fixes wojtekmaj#238
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
3 participants