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

Fixed localization with item selection

This commit is contained in:
Hadi Charara 2022-07-03 14:16:36 -04:00
parent 27a6b8c1ea
commit 79b60ebdd4

View file

@ -9,6 +9,7 @@ import alert from '../alert';
import playlistEditor from '../playlisteditor/playlisteditor';
import confirm from '../confirm/confirm';
import itemHelper from '../itemHelper';
import datetime from '../../scripts/datetime';
/* eslint-disable indent */
@ -78,7 +79,7 @@ import itemHelper from '../itemHelper';
if (selectedItems.length) {
const itemSelectionCount = document.querySelector('.itemSelectionCount');
if (itemSelectionCount) {
itemSelectionCount.innerHTML = selectedItems.length;
itemSelectionCount.innerHTML = datetime.toLocaleString(selectedItems.length);
}
} else {
hideSelections();
@ -129,7 +130,7 @@ import itemHelper from '../itemHelper';
html += '<h1 class="itemSelectionCount"></h1>';
const moreIcon = 'more_vert';
html += `<button is="paper-icon-button-light" class="btnSelectionPanelOptions autoSize" style="margin-left:auto;"><span class="material-icons ${moreIcon}" aria-hidden="true"></span></button>`;
html += `<button is="paper-icon-button-light" class="btnSelectionPanelOptions autoSize" style="margin-inline-start:auto;"><span class="material-icons ${moreIcon}" aria-hidden="true"></span></button>`;
selectionCommandsPanel.innerHTML = html;