{"action":"created","issue":{"url":"https://api.github.com/repos/wix/react-native-calendars/issues/5","repository_url":"https://api.github.com/repos/wix/react-native-calendars","labels_url":"https://api.github.com/repos/wix/react-native-calendars/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/wix/react-native-calendars/issues/5/comments","events_url":"https://api.github.com/repos/wix/react-native-calendars/issues/5/events","html_url":"https://github.com/wix/react-native-calendars/issues/5","id":228016432,"number":5,"title":"i18n for months and week days","user":{"login":"sifrenette","id":2475183,"avatar_url":"https://avatars3.githubusercontent.com/u/2475183?v=3","gravatar_id":"","url":"https://api.github.com/users/sifrenette","html_url":"https://github.com/sifrenette","followers_url":"https://api.github.com/users/sifrenette/followers","following_url":"https://api.github.com/users/sifrenette/following{/other_user}","gists_url":"https://api.github.com/users/sifrenette/gists{/gist_id}","starred_url":"https://api.github.com/users/sifrenette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sifrenette/subscriptions","organizations_url":"https://api.github.com/users/sifrenette/orgs","repos_url":"https://api.github.com/users/sifrenette/repos","events_url":"https://api.github.com/users/sifrenette/events{/privacy}","received_events_url":"https://api.github.com/users/sifrenette/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-11T14:44:14Z","updated_at":"2017-05-11T14:57:05Z","closed_at":null,"body":"Currently there is no way to change the locale for months and weekdays. Defaults are in english.\r\n\r\nPossible solutions suggestions: \r\n\r\nAdd a monthNamesHash (or only monthNames) prop that would map the english months to user defined ones. (ex.: { 'January': 'Janvier', 'February': 'Février', ... }). Same thing for weekdays (ex.: { 'Sun': 'Dim', 'Mon': 'Lun', ...}). Then use those hash in CalendarHeader.\r\n\r\nOr\r\n\r\nAdd a locale prop to the calendar component. (ex.: 'en' | 'fr' | 'de' , default: 'en'), add supported locales to XDate configuration, then use the locale when formatting the months and weekdays in CalendarHeader. [Example](https://gist.github.com/arshaw/1221376)"},"comment":{"url":"https://api.github.com/repos/wix/react-native-calendars/issues/comments/300815646","html_url":"https://github.com/wix/react-native-calendars/issues/5#issuecomment-300815646","issue_url":"https://api.github.com/repos/wix/react-native-calendars/issues/5","id":300815646,"user":{"login":"tautvilas","id":1044090,"avatar_url":"https://avatars2.githubusercontent.com/u/1044090?v=3","gravatar_id":"","url":"https://api.github.com/users/tautvilas","html_url":"https://github.com/tautvilas","followers_url":"https://api.github.com/users/tautvilas/followers","following_url":"https://api.github.com/users/tautvilas/following{/other_user}","gists_url":"https://api.github.com/users/tautvilas/gists{/gist_id}","starred_url":"https://api.github.com/users/tautvilas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tautvilas/subscriptions","organizations_url":"https://api.github.com/users/tautvilas/orgs","repos_url":"https://api.github.com/users/tautvilas/repos","events_url":"https://api.github.com/users/tautvilas/events{/privacy}","received_events_url":"https://api.github.com/users/tautvilas/received_events","type":"User","site_admin":false},"created_at":"2017-05-11T14:57:05Z","updated_at":"2017-05-11T14:57:05Z","body":"Good idea. Maybe I would just prefer structure of language hashes with arrays of values. e.g.:\r\n\r\n```{'en': {months: ['January', 'Febuary']... , days: ['Sun', 'Mon']...```\r\n\r\nBut maybe somebody knows if there is a source for these translation in somewhere in github? So we could import another library with localized month/weekday names and just add it to XDate config."}}
{"actor":{"display_login":"tautvilas"}}