diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-03-17 12:54:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-17 12:54:40 +0100 |
commit | 1ffda4cdd4976c40d9628f2b33f2ded47cfff567 (patch) | |
tree | 151b61085489f486c6ecb75ba4942c4306ee0c00 /app | |
parent | 588d2b27a789fee376ee0e48d2a56d272f0b4796 (diff) |
Fix Sanskrit translation not being used when selected (#17820)
It is still a very partial translation, though, and the localeData I added is very partial as well, but at least it now uses the strings that actually got translated, instead of using English strings.
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/mastodon/locales/locale-data/sa.js | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/app/javascript/mastodon/locales/locale-data/sa.js b/app/javascript/mastodon/locales/locale-data/sa.js new file mode 100644 index 000000000..946dfde0f --- /dev/null +++ b/app/javascript/mastodon/locales/locale-data/sa.js @@ -0,0 +1,97 @@ +/*eslint eqeqeq: "off"*/ +/*eslint no-nested-ternary: "off"*/ +/*eslint quotes: "off"*/ +/*eslint comma-dangle: "off"*/ +/*eslint semi: "off"*/ + +export default [ + { + locale: "sa", + fields: { + year: { + displayName: "year", + relative: { + 0: "this year", + 1: "next year", + "-1": "last year" + }, + relativeTime: { + future: { + other: "+{0} y" + }, + past: { + other: "-{0} y" + } + } + }, + month: { + displayName: "month", + relative: { + 0: "this month", + 1: "next month", + "-1": "last month" + }, + relativeTime: { + future: { + other: "+{0} m" + }, + past: { + other: "-{0} m" + } + } + }, + day: { + displayName: "day", + relative: { + 0: "अद्य", + 1: "श्वः", + "-1": "गतदिनम्" + }, + relativeTime: { + future: { + other: "+{0} d" + }, + past: { + other: "-{0} d" + } + } + }, + hour: { + displayName: "hour", + relativeTime: { + future: { + other: "+{0} h" + }, + past: { + other: "-{0} h" + } + } + }, + minute: { + displayName: "minute", + relativeTime: { + future: { + other: "+{0} min" + }, + past: { + other: "-{0} min" + } + } + }, + second: { + displayName: "second", + relative: { + 0: "now" + }, + relativeTime: { + future: { + other: "+{0} s" + }, + past: { + other: "-{0} s" + } + } + } + } + } +] |