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

Update index.js #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update index.js #18

wants to merge 1 commit into from

Conversation

giorgoc
Copy link

@giorgoc giorgoc commented Jun 19, 2015

Added two new options, stringDays, which will allow somebody to translate into any language the days list , also added the timeFormat, which accepts two values (hh:mm or HH:MM) and does the obvious.

Added two new options, stringDays, which will allow somebody to translate into any language the days list , also added the timeFormat, which accepts two values (hh:mm or HH:MM) and does the obvious.
@@ -37,7 +39,7 @@
* @public
*/
DayScheduleSelector.prototype.renderHeader = function () {
var stringDays = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
var stringDays = this.options.stringDays
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good idea, and we should figure out a way to do internationalization for other labels, too. 👍

@starsirius
Copy link
Member

Yay! Thanks for the FIRST pull request here! I have some comments inline. See if that makes sense to you.

Also, I set up the tests with Karma. The test coverage is still very low now, and if you can add those covering your changes, that will be awesome. You can install npm and execute npm test to run the tests.

I will add a tests section to the readme. Let me know if you have any questions. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants