From 10469a0b857907f9fef0ed68b4ec5233895d8057 Mon Sep 17 00:00:00 2001 From: Claire Date: Sat, 8 Apr 2023 14:11:40 +0200 Subject: Move locale-data back to `app/javascript/mastodon/locales/locale-data` (#2169) This reduces differences with upstream and fixes a bunch of locale-data files having been forgotten. --- app/javascript/mastodon/locales/locale-data/oc.js | 108 ++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 app/javascript/mastodon/locales/locale-data/oc.js (limited to 'app/javascript/mastodon/locales/locale-data/oc.js') diff --git a/app/javascript/mastodon/locales/locale-data/oc.js b/app/javascript/mastodon/locales/locale-data/oc.js new file mode 100644 index 000000000..d4adc42eb --- /dev/null +++ b/app/javascript/mastodon/locales/locale-data/oc.js @@ -0,0 +1,108 @@ +/*eslint eqeqeq: "off"*/ +/*eslint no-nested-ternary: "off"*/ +/*eslint quotes: "off"*/ + +export default [{ + locale: "oc", + pluralRuleFunction: function (e, a) { + return a ? 1 == e ? "one" : "other" : e >= 0 && e < 2 ? "one" : "other"; + }, + fields: { + year: { + displayName: "an", + relative: { + 0: "ongan", + 1: "l'an que ven", + "-1": "l'an passat", + }, + relativeTime: { + future: { + one: "d’aquí {0} an", + other: "d’aquí {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: "d’aquí {0} mes", + other: "d’aquí {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: "d’aquí {0} jorn", + other: "d’aquí {0} jorns", + }, + past: { + one: "fa {0} jorn", + other: "fa {0} jorns", + }, + }, + }, + hour: { + displayName: "ora", + relativeTime: { + future: { + one: "d’aquí {0} ora", + other: "d’aquí {0} oras", + }, + past: { + one: "fa {0} ora", + other: "fa {0} oras", + }, + }, + }, + minute: { + displayName: "minuta", + relativeTime: { + future: { + one: "d’aquí {0} minuta", + other: "d’aquí {0} minutas", + }, + past: { + one: "fa {0} minuta", + other: "fa {0} minutas", + }, + }, + }, + second: { + displayName: "segonda", + relative: { + 0: "ara", + }, + relativeTime: { + future: { + one: "d’aquí {0} segonda", + other: "d’aquí {0} segondas", + }, + past: { + one: "fa {0} segonda", + other: "fa {0} segondas", + }, + }, + }, + }, +}]; -- cgit