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:
parent
eba46a9576
commit
7fae0fa589
2 changed files with 95 additions and 100 deletions
|
@ -87,7 +87,8 @@
|
||||||
"src/components/input/keyboardnavigation.js",
|
"src/components/input/keyboardnavigation.js",
|
||||||
"src/components/sanatizefilename.js",
|
"src/components/sanatizefilename.js",
|
||||||
"src/scripts/settings/webSettings.js",
|
"src/scripts/settings/webSettings.js",
|
||||||
"src/components/scrollManager.js"
|
"src/components/scrollManager.js",
|
||||||
|
"scripts/dfnshelper.js"
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"@babel/plugin-transform-modules-amd"
|
"@babel/plugin-transform-modules-amd"
|
||||||
|
|
|
@ -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 { 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';
|
import globalize from 'globalize';
|
||||||
|
|
||||||
"use strict";
|
export function getLocale() {
|
||||||
|
|
||||||
function getLocale()
|
|
||||||
{
|
|
||||||
switch (globalize.getCurrentLocale()) {
|
switch (globalize.getCurrentLocale()) {
|
||||||
case 'ar':
|
case 'ar':
|
||||||
return ar;
|
return ar;
|
||||||
|
@ -97,7 +94,4 @@ import globalize from 'globalize';
|
||||||
default:
|
default:
|
||||||
return enUS;
|
return enUS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return {
|
|
||||||
getLocale: getLocale
|
|
||||||
};
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue