classic-ui/plugins/numbro/numbro.js

11 lines
222 B
JavaScript
Raw Permalink Normal View History

2022-04-22 06:05:56 +03:00
import numbro from 'numbro'
import { locales } from './languages'
export default (ctx, inject) => {
locales.forEach((lang) => {
numbro.registerLanguage(lang)
})
ctx.$numbro = numbro
inject('numbro', numbro)
}