1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

ES6 for dfnshelper

This commit is contained in:
ferferga 2020-04-03 00:24:50 +02:00
parent eba46a9576
commit 7fae0fa589
2 changed files with 95 additions and 100 deletions

View file

@ -87,7 +87,8 @@
"src/components/input/keyboardnavigation.js",
"src/components/sanatizefilename.js",
"src/scripts/settings/webSettings.js",
"src/components/scrollManager.js"
"src/components/scrollManager.js",
"scripts/dfnshelper.js"
],
"plugins": [
"@babel/plugin-transform-modules-amd"

View file

@ -1,10 +1,7 @@
import { ar, be, bg, ca, cs, da, de, el, enGB, enUS, es, faIR, fi, fr, frCA, he, hi, hr, hu, id, it, kk, ko, lt, ms, nb, nl, pl, ptBR, pt, ro, ru, sk, sl, sv, tr, uk, vi, zhCN, zhTW } from 'date-fns/locale';
import globalize from 'globalize';
"use strict";
function getLocale()
{
export function getLocale() {
switch (globalize.getCurrentLocale()) {
case 'ar':
return ar;
@ -98,6 +95,3 @@ import globalize from 'globalize';
return enUS;
}
}
return {
getLocale: getLocale
};