classic-ui/plugins/numbro/numbro.js
Danil Kovtonyuk 44f31f8b9f
init
2022-04-22 13:14:19 +10:00

11 lines
222 B
JavaScript

import numbro from 'numbro'
import { locales } from './languages'
export default (ctx, inject) => {
locales.forEach((lang) => {
numbro.registerLanguage(lang)
})
ctx.$numbro = numbro
inject('numbro', numbro)
}