113 lines
2.3 KiB
JavaScript
113 lines
2.3 KiB
JavaScript
|
/*eslint eqeqeq: "off"*/
|
||
|
/*eslint no-nested-ternary: "off"*/
|
||
|
|
||
|
export default [{
|
||
|
locale: "oc",
|
||
|
pluralRuleFunction: function(e, a) {
|
||
|
var n = String(e).split("."),
|
||
|
l = !n[1],
|
||
|
o = Number(n[0]) == e,
|
||
|
t = o && n[0].slice(-1),
|
||
|
r = o && n[0].slice(-2);
|
||
|
return a ? 1 == t && 11 != r ? "un" : 2 == t && 12 != r ? "dos" : 3 == t && 13 != r ? "pauc" : "autre" : 1 == e && l ? "un" : "autre"
|
||
|
},
|
||
|
fields: {
|
||
|
year: {
|
||
|
displayName: "an",
|
||
|
relative: {
|
||
|
0: "ongan",
|
||
|
1: "l'an que ven",
|
||
|
"-1": "l'an passat"
|
||
|
},
|
||
|
relativeTime: {
|
||
|
future: {
|
||
|
one: "dins {0} an",
|
||
|
other: "dins {0} ans"
|
||
|
},
|
||
|
past: {
|
||
|
one: "fa {0} an",
|
||
|
other: "fa {0} ans"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
month: {
|
||
|
displayName: "mes",
|
||
|
relative: {
|
||
|
0: "aqueste mes",
|
||
|
1: "lo mes que ven",
|
||
|
"-1": "lo mes passat"
|
||
|
},
|
||
|
relativeTime: {
|
||
|
future: {
|
||
|
one: "dins {0} mes",
|
||
|
other: "dins {0} meses"
|
||
|
},
|
||
|
past: {
|
||
|
one: "fa {0} mes",
|
||
|
other: "fa {0} meses"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
day: {
|
||
|
displayName: "jorn",
|
||
|
relative: {
|
||
|
0: "uèi",
|
||
|
1: "deman",
|
||
|
"-1": "ièr"
|
||
|
},
|
||
|
relativeTime: {
|
||
|
future: {
|
||
|
one: "dins {0} jorn",
|
||
|
other: "dins {0} jorns"
|
||
|
},
|
||
|
past: {
|
||
|
one: "fa {0} jorn",
|
||
|
other: "fa {0} jorns"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
hour: {
|
||
|
displayName: "ora",
|
||
|
relativeTime: {
|
||
|
future: {
|
||
|
one: "dins {0} ora",
|
||
|
other: "dins {0} oras"
|
||
|
},
|
||
|
past: {
|
||
|
one: "fa {0} ora",
|
||
|
other: "fa {0} oras"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
minute: {
|
||
|
displayName: "minuta",
|
||
|
relativeTime: {
|
||
|
future: {
|
||
|
one: "dins {0} minuta",
|
||
|
other: "dins {0} minutas"
|
||
|
},
|
||
|
past: {
|
||
|
one: "fa {0} minuta",
|
||
|
other: "fa {0} minutas"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
second: {
|
||
|
displayName: "segonda",
|
||
|
relative: {
|
||
|
0: "ara"
|
||
|
},
|
||
|
relativeTime: {
|
||
|
future: {
|
||
|
one: "dins {0} segonda",
|
||
|
other: "dins {0} segondas"
|
||
|
},
|
||
|
past: {
|
||
|
one: "fa {0} segonda",
|
||
|
other: "fa {0} segondas"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}]
|