-
Notifications
You must be signed in to change notification settings - Fork 13
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
Undefined in calendar #7
Comments
Exactly the same problem here |
@mssc89 i used the moment.js without the locales. change to moments with locales may resolve |
Hi, same issue here, any way to remedy this ? i tried using moment with locals, but no luck. Your feedback is greatly appreciated. |
We can declare your personal translator see example with FR = epepite.DatePicker.Translations.fr = {
'close': 'Fermer',
'booking': 'Réservation',
'reserve': 'Réservé',
'travel': 'Trajet',
'travel_time': 'Temps de trajet',
'day': 'Jour',
'month': 'Mois',
'header': {
'year_next': 'Année suivante',
'year_prev': 'Année précédente %year%'
},
'days' : [
'Dimanche',
'Lundi',
'Mardi',
'Mercredi',
'Jeudi',
'Vendredi',
'Samedi'
],
'months': [
'Janvier',
'Février',
'Mars',
'Avril',
'Mai',
'Juin',
'Juillet',
'Août',
'Septembre',
'Octobre',
'Novembre',
'Décembre'
]
}; epepite.Datepicker.Calendar use epepite.DatePicker.Translator by default epepite.DatePicker.Calendar = function(config, translator, templating, unavailabilities) Api interface of epepite.DatePicker.Translator: epepite.DatePicker.Translator:setCurrentLocale(string locale): void
epepite.DatePicker.Translator:getCurrentLocale(): string
epepite.DatePicker.Translator:setTranslation(string locale, object translations): self
epepite.DatePicker.Translator:trans(string message, object? params, string? locale): string
epepite.DatePicker.Translator:has(string locale): bool |
As image below, the calendar have undefined everywhere (this is the index.html of the repo)
The text was updated successfully, but these errors were encountered: