-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 pt-PT displays weekdays in long format causing words to overlap #2817
Comments
You didn't provide a fork of the sample stackblitz. Please do that. |
There’s no code. Just load the instance w/ localization object pt-PT. When you click on the input the weekdays are overlapping. Let me see if I can send a screenshot.
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Eonasdan ***@***.***>
Sent: Tuesday, May 23, 2023 4:06:03 PM
To: Eonasdan/tempus-dominus ***@***.***>
Cc: Jason Monroe ***@***.***>; Author ***@***.***>
Subject: Re: [Eonasdan/tempus-dominus] Locale pt-PT displays weekdays in long format causing words to overlap (Issue #2817)
You didn't provide a fork of the sample stackblitz. Please do that.
—
Reply to this email directly, view it on GitHub<#2817 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AANF52UUXCRZ34UB3NWGFDDXHURDXANCNFSM6AAAAAAYMMI6SE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Thank you. I see the issue |
@Eonasdan any updates? Are you going to simply abbreviate the weekdays in Portuguese or just only use the first three letters? |
Thanks! |
I don't have any updates right now. There's not a good way for me to fix this easily at the moment. Those values come from |
Is it possible to simply truncate or abbreviate the weekdays for pt-PT? |
Anything I do now will affect all locales. You are welcome to fork and modify the picker or overwrite the function that generates the weekdays yourself until I have time to work on this. |
Look at file date-display.ts line 186. Can we put a condition to str_limit(3) the innerDate.format? |
Hello. This fixed with released with 6.7.19. A new option was added, |
Prerequisites
Describe the issue
Locale pt-PT displays weekdays in long format causing words to overlap in the UI. Please fix this by abbreviating the weekdays. Thank you.
https://getdatepicker.com/6/plugins/customDateFormat.html
Locale: pt-PT
StackBlitz fork
//using "window" is just for the stackblitz, you do not need to do this
// https://stackblitz.com/edit/tempus-dominus-v6-simple-setup?file=index.js
window.datetimepicker1 = new tempusDominus.TempusDominus(
document.getElementById('datetimepicker1'),
{
localization: {
dayViewHeaderFormat: { month: 'long', year: '2-digit' },
locale: 'pt-PT',
startOfTheWeek: 1
}
});
document.getElementById(
'info'
).innerHTML =
Your browser's locale is ${navigator.language}.<br/> You are using version ${tempusDominus.version}
;What operating system(s) are you seeing the problem on?
macOS
What browser(s) are you seeing the problem on?
Chrome
What version of are you using? You can find this information from the sample StackBlitz.
6.2.10
What your browser's locale? You can find this information from the sample StackBlitz.
pt-PT
The text was updated successfully, but these errors were encountered: