11 lines
222 B
JavaScript
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)
|
|
}
|