{"action":"created","issue":{"url":"https://api.github.com/repos/vwochnik/jekyll-language-plugin/issues/8","labels_url":"https://api.github.com/repos/vwochnik/jekyll-language-plugin/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/vwochnik/jekyll-language-plugin/issues/8/comments","events_url":"https://api.github.com/repos/vwochnik/jekyll-language-plugin/issues/8/events","html_url":"https://github.com/vwochnik/jekyll-language-plugin/issues/8","id":121869199,"number":8,"title":"Provide pre-translated strings","user":{"login":"Anthony-Gaudino","id":2439728,"avatar_url":"https://avatars.githubusercontent.com/u/2439728?v=3","gravatar_id":"","url":"https://api.github.com/users/Anthony-Gaudino","html_url":"https://github.com/Anthony-Gaudino","followers_url":"https://api.github.com/users/Anthony-Gaudino/followers","following_url":"https://api.github.com/users/Anthony-Gaudino/following{/other_user}","gists_url":"https://api.github.com/users/Anthony-Gaudino/gists{/gist_id}","starred_url":"https://api.github.com/users/Anthony-Gaudino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anthony-Gaudino/subscriptions","organizations_url":"https://api.github.com/users/Anthony-Gaudino/orgs","repos_url":"https://api.github.com/users/Anthony-Gaudino/repos","events_url":"https://api.github.com/users/Anthony-Gaudino/events{/privacy}","received_events_url":"https://api.github.com/users/Anthony-Gaudino/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vwochnik/jekyll-language-plugin/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"vwochnik","id":373255,"avatar_url":"https://avatars.githubusercontent.com/u/373255?v=3","gravatar_id":"","url":"https://api.github.com/users/vwochnik","html_url":"https://github.com/vwochnik","followers_url":"https://api.github.com/users/vwochnik/followers","following_url":"https://api.github.com/users/vwochnik/following{/other_user}","gists_url":"https://api.github.com/users/vwochnik/gists{/gist_id}","starred_url":"https://api.github.com/users/vwochnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vwochnik/subscriptions","organizations_url":"https://api.github.com/users/vwochnik/orgs","repos_url":"https://api.github.com/users/vwochnik/repos","events_url":"https://api.github.com/users/vwochnik/events{/privacy}","received_events_url":"https://api.github.com/users/vwochnik/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-12-12T17:58:58Z","updated_at":"2015-12-13T19:03:59Z","closed_at":"2015-12-12T22:37:11Z","body":"How do you like it if I create YAML files containing translated dates, translated language names and maybe other things for most languages?\r\n\r\n[Rails-i18n](https://github.com/svenfuchs/rails-i18n/tree/master/rails/locale) provide files with translations for dates and other things.\r\n\r\nYou will be able to include the files on the plugin or make it available to users, so they can use on their websites.\r\n\r\nIt would be something like this:\r\n\r\n```YAML\r\n---\r\nen-US:\r\n  language: English\r\n  date:\r\n    abbr_day_names:\r\n    - Sun\r\n    - Mon\r\n    - Tue\r\n    - Wed\r\n    - Thu\r\n    - Fri\r\n    - Sat\r\n    abbr_month_names:\r\n    - Jan\r\n    - Feb\r\n    - Mar\r\n    - Apr\r\n    - May\r\n    - Jun\r\n    - Jul\r\n    - Aug\r\n    - Sep\r\n    - Oct\r\n    - Nov\r\n    - Dec\r\n    day_names:\r\n    - Sunday\r\n    - Monday\r\n    - Tuesday\r\n    - Wednesday\r\n    - Thursday\r\n    - Friday\r\n    - Saturday\r\n    month_names:\r\n    - January\r\n    - February\r\n    - March\r\n    - April\r\n    - May\r\n    - June\r\n    - July\r\n    - August\r\n    - September\r\n    - October\r\n    - November\r\n    - December\r\n    prompts:\r\n      day: Day\r\n      hour: Hour\r\n      minute: Minute\r\n      month: Month\r\n      second: Seconds\r\n      year: Year\r\n```\r\n\r\nSo, if someone wants to create a menu with links for all available languages, they can query the `language` in the YAML and create a list like this:\r\n\r\n```\r\nEnglish\r\nFrançais\r\nPortuguês\r\n```\r\n\r\nIf you want to, you can even automate the plugin to look for the Jekyll `date` liquid tag and translate the date without the user having to use another liquid tag just for it, but then in this case, the user would need to use the same language names provided by the plugin.\r\n\r\nAnd if you think there's other interesting strings that could be added I will see what I can do."},"comment":{"url":"https://api.github.com/repos/vwochnik/jekyll-language-plugin/issues/comments/164288109","html_url":"https://github.com/vwochnik/jekyll-language-plugin/issues/8#issuecomment-164288109","issue_url":"https://api.github.com/repos/vwochnik/jekyll-language-plugin/issues/8","id":164288109,"user":{"login":"Anthony-Gaudino","id":2439728,"avatar_url":"https://avatars.githubusercontent.com/u/2439728?v=3","gravatar_id":"","url":"https://api.github.com/users/Anthony-Gaudino","html_url":"https://github.com/Anthony-Gaudino","followers_url":"https://api.github.com/users/Anthony-Gaudino/followers","following_url":"https://api.github.com/users/Anthony-Gaudino/following{/other_user}","gists_url":"https://api.github.com/users/Anthony-Gaudino/gists{/gist_id}","starred_url":"https://api.github.com/users/Anthony-Gaudino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anthony-Gaudino/subscriptions","organizations_url":"https://api.github.com/users/Anthony-Gaudino/orgs","repos_url":"https://api.github.com/users/Anthony-Gaudino/repos","events_url":"https://api.github.com/users/Anthony-Gaudino/events{/privacy}","received_events_url":"https://api.github.com/users/Anthony-Gaudino/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T19:03:59Z","updated_at":"2015-12-13T19:03:59Z","body":"Nice, I think that adding the languages on the plugin is great, and it's much more simple than having to load it from other gems.\r\n\r\nWhy didn't you said you wanted to add the language files? I could have helped you.\r\n\r\nCan I add the other languages or are you already working on it?"}}