mirror of https://github.com/Lissy93/dashy.git
🩹 Handle plural/singular for availabel updates
This commit is contained in:
parent
0bf6fee180
commit
ff1bcdbab8
|
@ -306,7 +306,8 @@
|
|||
},
|
||||
"nextcloud-info": {
|
||||
"label-version": "Nextcloud version",
|
||||
"label-last-login": "Last login"
|
||||
"label-last-login": "Last login",
|
||||
"updates-available": "update{plural} available"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,7 +47,10 @@
|
|||
data-has-updates v-tooltip="appUpdatesTooltip()">
|
||||
<i class="fal fa-download"></i>
|
||||
<em>{{ server.nextcloud.system.apps.num_updates_available }}</em>
|
||||
<strong>{{ $t('updates available') }}</strong>
|
||||
<strong>
|
||||
{{ $t('widgets.nextcloud-info.updates-available',
|
||||
{plural: server.nextcloud.system.apps.num_updates_available > 1 ? 's' : ''}) }}
|
||||
</strong>
|
||||
</span>
|
||||
<span v-else >
|
||||
{{ $t('no pending updates') }}
|
||||
|
|
Loading…
Reference in New Issue