Fix humanized duration: Use stem language only

Fixes #831
This commit is contained in:
Marcel Klehr 2019-10-08 15:12:52 +02:00
parent 2d87739c6c
commit 8a312b21db
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ export default {
const age = Date.now() - date
if (age < MAX_RELATIVE_DATE) {
const duration = humanizeDuration(age, {
language: OC.getLanguage(),
language: OC.getLanguage().split('-')[0],
units: ['d', 'h', 'm', 's'],
largest: 1
})