mirror of
https://github.com/tornadocash/tornado-classic-ui
synced 2024-02-02 15:04:09 +01:00
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)
|
|
}
|