mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix locale with suffix
"Locale with suffix" is constructed only once with the initial (browser) locale.
This commit is contained in:
parent
354157c003
commit
fe4ee0c101
5 changed files with 16 additions and 9 deletions
|
@ -5,7 +5,7 @@ import dom from '../../../scripts/dom';
|
|||
import globalize from '../../../scripts/globalize';
|
||||
import imageHelper from '../../../scripts/imagehelper';
|
||||
import { formatDistanceToNow } from 'date-fns';
|
||||
import { localeWithSuffix } from '../../../scripts/dfnshelper';
|
||||
import { getLocaleWithSuffix } from '../../../scripts/dfnshelper';
|
||||
import '../../../elements/emby-button/emby-button';
|
||||
import '../../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||
import '../../../components/cardbuilder/card.scss';
|
||||
|
@ -91,6 +91,8 @@ import confirm from '../../../components/confirm/confirm';
|
|||
}
|
||||
|
||||
function load(page, devices) {
|
||||
const localeWithSuffix = getLocaleWithSuffix();
|
||||
|
||||
let html = '';
|
||||
html += devices.map(function (device) {
|
||||
let deviceHtml = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue