@revgaming/global
Version:
application bundle to globalize with ioc-like loader and localizations
28 lines (26 loc) • 505 B
JavaScript
import {
currency_id,
currency_code,
currency_name,
currency_icon,
currency_symbol,
setCurrencyCode,
getCurrencies,
getAllowedCurrencies,
setCurrencyOptions,
detectCurrencyCode,
} from '@revgaming/currencies'
export const bootCurrencies = (opts = {}) => {
setCurrencyOptions(opts)
detectCurrencyCode()
return {
currency_id,
currency_code,
currency_name,
currency_symbol,
currency_icon,
setCurrencyCode,
getCurrencies,
getAllowedCurrencies,
}
}