From 34051a677d18dd556ad7481214f479dae77209fb Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Sat, 14 May 2022 02:26:29 -0400 Subject: [PATCH] Merge pull request #3639 from rhld16/unused-languages Add missing languages (cherry picked from commit ff95eba35f3e43d1d8eff642e72a3f70528721f7) Signed-off-by: Joshua Boniface --- src/scripts/dfnshelper.js | 8 ++++++-- src/scripts/site.js | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/scripts/dfnshelper.js b/src/scripts/dfnshelper.js index 2c00d81f45..e184f1035f 100644 --- a/src/scripts/dfnshelper.js +++ b/src/scripts/dfnshelper.js @@ -1,5 +1,5 @@ -import { af, arDZ, be, bg, bn, ca, cs, da, de, el, enGB, enUS, eo, es, faIR, fi, fr, frCA, he, hi, hr, hu, gl, id, is, it, ja, kk, ko, lt, ms, nb, - nl, pl, ptBR, pt, ro, ru, sk, sl, sv, ta, th, tr, uk, vi, zhCN, zhTW } from 'date-fns/locale'; +import { af, arDZ, be, bg, bn, ca, cs, cy, da, de, el, enGB, enUS, eo, es, et, faIR, fi, fr, frCA, gl, he, hi, hr, hu, id, is, it, ja, kk, ko, lt, lv, ms, nb, + nl, nn, pl, ptBR, pt, ro, ru, sk, sl, sv, ta, th, tr, uk, vi, zhCN, zhTW } from 'date-fns/locale'; import globalize from './globalize'; const dateLocales = (locale) => ({ @@ -10,6 +10,7 @@ const dateLocales = (locale) => ({ 'bn': bn, 'ca': ca, 'cs': cs, + 'cy': cy, 'da': da, 'de': de, 'el': el, @@ -20,6 +21,7 @@ const dateLocales = (locale) => ({ 'es-ar': es, 'es-do': es, 'es-mx': es, + 'et': et, 'fa': faIR, 'fi': fi, 'fr': fr, @@ -37,9 +39,11 @@ const dateLocales = (locale) => ({ 'kk': kk, 'ko': ko, 'lt-lt': lt, + 'lv': lv, 'ms': ms, 'nb': nb, 'nl': nl, + 'nn': nn, 'pl': pl, 'pt': pt, 'pt-br': ptBR, diff --git a/src/scripts/site.js b/src/scripts/site.js index 6a9b104afd..ead7f4a750 100644 --- a/src/scripts/site.js +++ b/src/scripts/site.js @@ -42,7 +42,7 @@ import { currentSettings } from './settings/userSettings'; import taskButton from './taskbutton'; function loadCoreDictionary() { - const languages = ['af', 'ar', 'be-by', 'bg-bg', 'bn_bd', 'ca', 'cs', 'da', 'de', 'el', 'en-gb', 'en-us', 'eo', 'es', 'es-419', 'es-ar', 'es_do', 'es-mx', 'fa', 'fi', 'fil', 'fr', 'fr-ca', 'gl', 'gsw', 'he', 'hi-in', 'hr', 'hu', 'id', 'it', 'ja', 'kk', 'ko', 'lt-lt', 'mr', 'ms', 'nb', 'nl', 'pl', 'pr', 'pt', 'pt-br', 'pt-pt', 'ro', 'ru', 'sk', 'sl-si', 'sq', 'sv', 'ta', 'th', 'tr', 'uk', 'ur_pk', 'vi', 'zh-cn', 'zh-hk', 'zh-tw']; + const languages = ['af', 'ar', 'be-by', 'bg-bg', 'bn_bd', 'ca', 'cs', 'cy', 'da', 'de', 'el', 'en-gb', 'en-us', 'eo', 'es', 'es-419', 'es-ar', 'es_do', 'es-mx', 'et', 'fa', 'fi', 'fil', 'fr', 'fr-ca', 'gl', 'gsw', 'he', 'hi-in', 'hr', 'hu', 'id', 'it', 'ja', 'kk', 'ko', 'lt-lt', 'lv', 'mr', 'ms', 'nb', 'nl', 'nn', 'pl', 'pr', 'pt', 'pt-br', 'pt-pt', 'ro', 'ru', 'sk', 'sl-si', 'sq', 'sv', 'ta', 'th', 'tr', 'uk', 'ur_pk', 'vi', 'zh-cn', 'zh-hk', 'zh-tw']; const translations = languages.map(function (language) { return { lang: language,