UNPKG

@lion/localize

Version:

The localization system helps to manage localization data split into locales and automate its loading

11 lines (10 loc) 271 B
/** * For Turkey fixes currency label with locale options * * @param {string} currency * @param {string} locale * @returns {string} */ export function normalizeCurrencyLabel(currency, locale) { return currency === 'TRY' && locale === 'tr-TR' ? 'TL' : currency; }