Show first day of the week in correct language

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2019-10-26 14:31:38 +02:00
parent 459e71638d
commit a7f4d54d0f
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
2 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,9 @@ module.exports = {
$: true, $: true,
moment: true, moment: true,
escapeHTML: true, escapeHTML: true,
oc_userconfig: true oc_userconfig: true,
dayNames: true,
firstDay: true
}, },
extends: ['nextcloud'] extends: ['nextcloud']
} }

View File

@ -369,11 +369,9 @@ $(document).ready(function () {
}); });
window.setInterval(function() { window.setInterval(function() {
$('#localeexample-time').text(moment().format('LTS')); $('#localeexample-time').text(moment().format('LTS'))
$('#localeexample-date').text(moment().format('L')); $('#localeexample-date').text(moment().format('L'))
$('#localeexample-fdow').text(t('settings', 'Week starts on {fdow}', $('#localeexample-fdow').text(t('settings', 'Week starts on {fdow}', { fdow: dayNames[firstDay] }))
{fdow: moment().weekday(0).format('dddd')})); }, 1000)
}, 1000);
OC.Settings.updateAvatar = updateAvatar; OC.Settings.updateAvatar = updateAvatar;