Merge pull request #3639 from rhld16/unused-languages

Add missing languages

(cherry picked from commit ff95eba35f)
Signed-off-by: Joshua Boniface <joshua@boniface.me>
This commit is contained in:
Bill Thornton 2022-05-14 02:26:29 -04:00 committed by Joshua Boniface
parent 69fb418beb
commit 34051a677d
2 changed files with 7 additions and 3 deletions

View File

@ -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,

View File

@ -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,