mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-30 11:53:53 +01:00
WIP: Webmail
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import gettext from './gettext'
|
||||
import { DateTime } from 'luxon'
|
||||
import { filesize } from 'filesize'
|
||||
|
||||
const { $gettext } = gettext
|
||||
|
||||
@@ -17,5 +18,8 @@ export default {
|
||||
clamp = clamp || '...'
|
||||
return value.length > length ? value.slice(0, length) + clamp : value
|
||||
}
|
||||
app.config.globalProperties.$filesize = (value) => {
|
||||
return filesize(value, { locale: gettext.current })
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user