I'm trying to fix some .js code to show the date and time properly in Basque but I don't have any JS knowledge so basically I'm looking for a volunteer.

    The piece of code that I'd like to fix is on this GitHub and it should be easy peasy.

    My approach has been:

    var dateFormats = {
    full: "y'(e)ko' MMMM'ren' d'a', EEEE",
    long: "y'(e)ko' MMMM'ren' d'a'",
    medium: "y'(e)ko' MMMM'k' d",
    short: "yy/MM/dd",
    }

    var timeFormats = {
    full: 'HH:mm:ss zzzz',
    long: 'HH:mm:ss z',
    medium: 'HH:mm:ss',
    short: 'HH:mm'
    }

    var dateTimeFormats = {
    full: "{{date}}, {{time}}e(t)an",
    long: "{{date}}, {{time}}e(t)an",
    medium: '{{date}}, {{time}}',
    short: '{{date}} {{time}}'
    }

    This would be the quick and dirty solution. A more accurate approach would be:

    • years ending in "1" and "5" should be followed by 'eko'
    • years ending in 2, 3, 4, 6, 7, 8, 9, 'ko'
    • years ending in 0:
    • — 10 30 50 70 90 100, 'eko'
    • — 20 40 60 80, 'ko'

    Let me know if you are bored :wink:
    #code #js