-
Notifications
You must be signed in to change notification settings - Fork 72
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
How to change language #242
Comments
You can configure // example :
Format rules: https://date-fns.org/v2.28.0/docs/format |
@walkerkay Tank you, last question: How changing locale globally? |
Time zone ? ngx-gantt data uses timestamp. |
Hello @walkerkay. Congrats for this project, I liked so much. Could you tell me, how can I set the locale to ptBR in date-fns, to project-wide. I'm already used GanttViewOptions, dateFormat, but I need put my project as portuguese. Is this possible? |
I have the same issue. It seems the GanttDate class doesn't provide any entry points to set date-fns locale option (https://date-fns.org/v2.0.0-alpha.26/docs/Locale). So my week numbering is not ISO, some year have not the right number of weeks. // Set global locale: Update date-fns to 2.29 is probably the esiest way to solve this issue without touching anything. |
Yes, the date format uses date-fns, so you need to import date-fns to set the time zone. |
No description provided.
The text was updated successfully, but these errors were encountered: