@ngneat/transloco-locale
Advanced tools
Comparing version 1.2.2 to 1.3.0
@@ -194,5 +194,5 @@ (function (global, factory) { | ||
/** @type {?} */ | ||
var defaultConfig = localeConfig.global[type] || {}; | ||
var defaultConfig = localeConfig.global ? localeConfig.global[type] : {}; | ||
/** @type {?} */ | ||
var settings = localeConfig.localeBased[locale]; | ||
var settings = localeConfig.localeBased ? localeConfig.localeBased[locale] : {}; | ||
return settings && settings[type] ? __assign({}, defaultConfig, settings[type]) : defaultConfig; | ||
@@ -1037,3 +1037,3 @@ } | ||
options = options ? options : getDefaultOptions(locale, 'date', this.localeConfig); | ||
return this.dateTransformer.transform(date, locale, options); | ||
return this.dateTransformer.transform(toDate(date), locale, options); | ||
}; | ||
@@ -1327,3 +1327,3 @@ /** | ||
* '2019-02-08' | translocoDate: { dateStyle: 'medium' } // Feb 8, 2019 | ||
* @param {?} value | ||
* @param {?} date | ||
* @param {?=} options | ||
@@ -1346,3 +1346,3 @@ * @param {?=} locale | ||
* '2019-02-08' | translocoDate: { dateStyle: 'medium' } // Feb 8, 2019 | ||
* @param {?} value | ||
* @param {?} date | ||
* @param {?=} options | ||
@@ -1352,10 +1352,10 @@ * @param {?=} locale | ||
*/ | ||
function (value, options, locale) { | ||
function (date, options, locale) { | ||
if (options === void 0) { | ||
options = {}; | ||
} | ||
if (i1.isNil(value)) | ||
if (i1.isNil(date)) | ||
return ''; | ||
locale = this.getLocale(locale); | ||
return this.translocoLocaleService.localizeDate(toDate(value), locale, __assign({}, getDefaultOptions(locale, 'date', this.localeConfig), options)); | ||
return this.translocoLocaleService.localizeDate(date, locale, __assign({}, getDefaultOptions(locale, 'date', this.localeConfig), options)); | ||
}; | ||
@@ -1362,0 +1362,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("rxjs"),require("rxjs/operators"),require("@angular/core"),require("@ngneat/transloco")):"function"==typeof define&&define.amd?define("@ngneat/transloco-locale",["exports","rxjs","rxjs/operators","@angular/core","@ngneat/transloco"],r):r((e.ngneat=e.ngneat||{},e.ngneat["transloco-locale"]={}),e.rxjs,e.rxjs.operators,e.ng.core,e.i1)}(this,function(e,s,i,r,a){"use strict";var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])})(e,r)};function n(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var c=function(){return(c=Object.assign||function(e){for(var r,n=1,t=arguments.length;n<t;n++)for(var o in r=arguments[n])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)};var E=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;function o(e){return"string"==typeof e&&e.match(/[a-z]{2}-[A-Z]{2}/)}function N(e){return e instanceof Date&&!isNaN(e)}function R(e){var r;if("string"==typeof e&&(e=e.trim()),N(e))return e;if(!isNaN(e-parseFloat(e)))return new Date(parseFloat(e));if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var n=function i(e,r){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,o,R=n.call(e),a=[];try{for(;(void 0===r||0<r--)&&!(t=R.next()).done;)a.push(t.value)}catch(s){o={error:s}}finally{try{t&&!t.done&&(n=R["return"])&&n.call(R)}finally{if(o)throw o.error}}return a}(e.split("-").map(function(e){return parseInt(e,10)}),3),t=n[0],o=n[1],R=n[2];return new Date(t,o-1,R)}return"string"==typeof e&&(r=e.match(E))?function l(e){var r=new Date(0),n=0,t=0,o=e[8]?r.setUTCFullYear:r.setFullYear,R=e[8]?r.setUTCHours:r.setHours;e[9]&&(n=+(e[9]+e[10]),t=+(e[9]+e[11]));o.call(r,+e[1],e[2]-1,+e[3]);var a=(e[4]||"0")-n,s=(e[5]||"0")-t,i=+(e[6]||"0"),c=Math.round(1e3*parseFloat("0."+(e[7]||0)));return R.call(r,a,s,i,c),r}(r):new Date(e)}function l(e,r,n){var t=n.global[r]||{},o=n.localeBased[e];return o&&o[r]?c({},t,o[r]):t}var U={localeConfig:{global:{},localeBased:{}},defaultLocale:"en-US",localeToCurrencyMapping:{"aa-DJ":"DJF","aa-ER":"ERN","aa-ET":"ETB","ab-GE":"ETB","ab-TR":"ETB","af-BW":"ETB","af-NA":"ETB","af-ZA":"ZAR","ak-GH":"ZAR","am-ET":"ETB","am-IL":"ETB","ar-AE":"AED","ar-AR":"AED","ar-BH":"BHD","ar-CM":"BHD","ar-CY":"BHD","ar-DJ":"BHD","ar-DZ":"DZD","ar-EG":"EGP","ar-EH":"EGP","ar-ER":"EGP","ar-IL":"EGP","ar-IQ":"IQD","ar-IR":"IQD","ar-JO":"JOD","ar-KE":"JOD","ar-KM":"JOD","ar-KW":"KWD","ar-LB":"LBP","ar-LY":"LYD","ar-MA":"MAD","ar-ML":"MAD","ar-MR":"MAD","ar-NE":"MAD","ar-NG":"MAD","ar-OM":"OMR","ar-PS":"OMR","ar-QA":"QAR","ar-SA":"SAR","ar-SD":"SDD","ar-SS":"SDD","ar-SY":"SYP","ar-TD":"SYP","ar-TJ":"SYP","ar-TN":"TND","ar-TR":"TND","ar-YE":"YER","as-IN":"INR","av-RU":"INR","ay-BO":"INR","ay-PE":"INR","az-AZ":"AZM","ba-RU":"AZM","be-BY":"BYR","be-PL":"BYR","be-UA":"BYR","bg-BG":"BGN","bg-GR":"BGN","bg-MD":"BGN","bg-RO":"BGN","bg-TR":"BGN","bg-UA":"BGN","bi-VU":"BGN","bm-ML":"BGN","bn-BD":"BDT","bn-GB":"BDT","bn-IN":"INR","bn-NP":"INR","bo-CN":"CNY","bo-IN":"INR","bo-NP":"INR","br-FR":"EUR","bs-BA":"BAM","ca-AD":"EUR","ca-ES":"EUR","ca-FR":"EUR","ca-IT":"EUR","ce-RU":"EUR","ch-GU":"EUR","ch-MP":"EUR","co-FR":"EUR","cs-CZ":"CZK","cv-RU":"RUB","cy-AR":"RUB","cy-GB":"GBP","da-DE":"GBP","da-DK":"DKK","da-GL":"DKK","da-IS":"DKK","de-AT":"EUR","de-BE":"EUR","de-BR":"EUR","de-CA":"EUR","de-CH":"CHF","de-CZ":"CHF","de-DE":"EUR","de-DK":"EUR","de-HU":"EUR","de-IT":"EUR","de-KZ":"EUR","de-LI":"EUR","de-LU":"EUR","de-NA":"EUR","de-PL":"EUR","de-PY":"EUR","de-RO":"EUR","de-SK":"EUR","de-US":"EUR","dv-IN":"EUR","dv-MV":"MVR","dz-BT":"BTN","dz-IN":"BTN","ee-GH":"BTN","ee-TG":"BTN","el-AL":"BTN","el-CY":"EUR","el-DE":"EUR","el-EG":"EUR","el-GB":"EUR","el-GR":"EUR","el-IT":"EUR","el-RO":"EUR","el-TR":"EUR","el-UA":"EUR","en-AC":"EUR","en-AG":"XCD","en-AI":"XCD","en-AS":"XCD","en-AU":"AUD","en-AW":"AUD","en-BB":"AUD","en-BE":"AUD","en-BM":"AUD","en-BN":"AUD","en-BS":"AUD","en-BW":"BWP","en-BZ":"BWP","en-CA":"CAD","en-CC":"CAD","en-CK":"CAD","en-CM":"CAD","en-CN":"CAD","en-CX":"CAD","en-DE":"CAD","en-DG":"CAD","en-DM":"CAD","en-DO":"CAD","en-ES":"CAD","en-ET":"CAD","en-FI":"CAD","en-FJ":"CAD","en-FK":"CAD","en-FM":"CAD","en-FR":"CAD","en-GB":"GBP","en-GD":"GBP","en-GG":"GBP","en-GH":"GBP","en-GI":"GBP","en-GM":"GBP","en-GU":"GBP","en-GY":"GBP","en-HK":"HKD","en-HN":"HKD","en-IE":"EUR","en-IL":"EUR","en-IM":"EUR","en-IN":"INR","en-IO":"INR","en-IT":"INR","en-JE":"INR","en-JM":"INR","en-KE":"INR","en-KI":"INR","en-KN":"INR","en-KY":"INR","en-LB":"INR","en-LC":"INR","en-LK":"INR","en-LR":"INR","en-LS":"INR","en-MG":"INR","en-MH":"INR","en-MP":"INR","en-MS":"INR","en-MT":"INR","en-MU":"INR","en-MW":"INR","en-MY":"INR","en-NA":"INR","en-NF":"INR","en-NG":"NGN","en-NL":"NGN","en-NR":"NGN","en-NU":"NGN","en-NZ":"NZD","en-PA":"NZD","en-PG":"NZD","en-PH":"PHP","en-PI":"PHP","en-PK":"PHP","en-PM":"PHP","en-PN":"PHP","en-PR":"PHP","en-PW":"PHP","en-RW":"PHP","en-SB":"PHP","en-SC":"PHP","en-SG":"SGD","en-SH":"SGD","en-SL":"SGD","en-SS":"SGD","en-SZ":"SGD","en-TA":"SGD","en-TC":"SGD","en-TK":"SGD","en-TO":"SGD","en-TT":"SGD","en-TV":"SGD","en-TZ":"SGD","en-UD":"SGD","en-UG":"SGD","en-UM":"SGD","en-US":"USD","en-VC":"USD","en-VG":"USD","en-VI":"USD","en-VU":"USD","en-WS":"USD","en-ZA":"ZAR","en-ZM":"ZAR","en-ZW":"ZWD","eo-EO":"ZWD","eo-SM":"ZWD","es-AD":"ZWD","es-AR":"ARS","es-BO":"BOB","es-BZ":"BOB","es-CL":"CLP","es-CO":"COP","es-CR":"CRC","es-CU":"CRC","es-DE":"CRC","es-DO":"DOP","es-EA":"DOP","es-EC":"USD","es-ES":"EUR","es-GQ":"EUR","es-GT":"GTQ","es-HN":"HNL","es-IC":"HNL","es-LA":"HNL","es-MA":"HNL","es-MX":"MXN","es-NI":"NIO","es-PA":"PAB","es-PE":"PEN","es-PH":"PEN","es-PR":"USD","es-PY":"PYG","es-SV":"SVC","es-TT":"SVC","es-US":"USD","es-UY":"UYU","es-VE":"VEB","et-EE":"EEK","et-FI":"EEK","eu-ES":"EUR","eu-FR":"EUR","fa-AE":"EUR","fa-AF":"EUR","fa-IQ":"EUR","fa-IR":"IRR","fa-OM":"IRR","fa-PK":"IRR","fa-QA":"IRR","fa-TJ":"IRR","fb-LT":"IRR","ff-GN":"IRR","ff-MR":"IRR","ff-SN":"IRR","fi-FI":"EUR","fi-RU":"EUR","fi-SE":"EUR","fj-FJ":"EUR","fo-FO":"DKK","fr-AD":"DKK","fr-BE":"EUR","fr-BF":"EUR","fr-BI":"EUR","fr-BJ":"EUR","fr-BL":"EUR","fr-CA":"CAD","fr-CD":"CAD","fr-CF":"CAD","fr-CG":"CAD","fr-CH":"CHF","fr-CI":"CHF","fr-CM":"CHF","fr-CP":"CHF","fr-DJ":"CHF","fr-DZ":"CHF","fr-FR":"EUR","fr-GA":"EUR","fr-GB":"EUR","fr-GF":"EUR","fr-GN":"EUR","fr-GP":"EUR","fr-GQ":"EUR","fr-HT":"EUR","fr-IT":"EUR","fr-KM":"EUR","fr-LB":"EUR","fr-LU":"EUR","fr-MA":"EUR","fr-MC":"EUR","fr-MF":"EUR","fr-MG":"EUR","fr-ML":"EUR","fr-MQ":"EUR","fr-MR":"EUR","fr-MU":"EUR","fr-NC":"EUR","fr-NE":"EUR","fr-PF":"EUR","fr-PM":"EUR","fr-RE":"EUR","fr-RW":"EUR","fr-SC":"EUR","fr-SN":"EUR","fr-SY":"EUR","fr-TD":"EUR","fr-TF":"EUR","fr-TG":"EUR","fr-TN":"EUR","fr-US":"EUR","fr-VU":"EUR","fr-WF":"EUR","fr-YT":"EUR","fy-NL":"EUR","ga-GB":"EUR","ga-IE":"EUR","gd-GB":"GBP","gl-ES":"EUR","gl-PT":"EUR","gn-AR":"EUR","gn-BO":"EUR","gn-PY":"EUR","gu-IN":"INR","gu-KE":"INR","gv-IM":"INR","he-IL":"ILS","hi-FJ":"ILS","hi-IN":"INR","hi-NP":"INR","hi-UG":"INR","hi-ZA":"INR","ho-PG":"INR","hr-AT":"INR","hr-BA":"INR","hr-DE":"INR","hr-HR":"HRK","hr-HU":"HRK","hr-IT":"HRK","ht-HT":"HTG","hu-AT":"HTG","hu-HU":"HUF","hu-IL":"HUF","hu-RO":"HUF","hu-RS":"HUF","hu-SI":"HUF","hu-SK":"HUF","hu-UA":"HUF","hy-AM":"AMD","hy-CY":"AMD","hy-GE":"AMD","hy-IR":"AMD","hy-LB":"AMD","hy-SY":"AMD","hy-TR":"AMD","ia-SE":"AMD","id-ID":"IDR","id-NL":"IDR","ig-NG":"NGN","ii-CN":"NGN","ik-US":"NGN","is-IS":"ISK","it-AU":"ISK","it-BR":"ISK","it-CA":"ISK","it-CH":"CHF","it-DE":"CHF","it-FR":"CHF","it-GB":"CHF","it-HR":"CHF","it-IT":"EUR","it-SI":"EUR","it-SM":"EUR","it-US":"EUR","it-VA":"EUR","iu-GL":"EUR","ja-BR":"EUR","ja-JP":"JPY","jv-ID":"JPY","jv-MY":"JPY","ka-GE":"GEL","ka-IR":"GEL","ka-TR":"GEL","kg-CD":"GEL","ki-KE":"GEL","kj-NA":"GEL","kl-DK":"GEL","kl-GL":"DKK","km-KH":"KHR","kn-IN":"INR","ko-BR":"INR","ko-CN":"INR","ko-JP":"INR","ko-KP":"INR","ko-KR":"KRW","ko-US":"KRW","ks-GB":"KRW","ks-IN":"INR","ks-PK":"INR","ku-TR":"TRY","kw-GB":"GBP","la-VA":"GBP","lb-LU":"GBP","lg-UG":"UGX","li-NL":"EUR","ln-CD":"EUR","ln-CG":"EUR","lo-LA":"LAK","lt-LT":"LTL","lu-CD":"LTL","lv-LV":"LVL","mg-MG":"MGA","mh-MH":"MGA","mi-NZ":"NZD","mk-AL":"NZD","mk-GR":"NZD","mk-MK":"MKD","ml-AE":"MKD","ml-BH":"MKD","ml-GB":"MKD","ml-IL":"MKD","ml-IN":"INR","ml-MY":"INR","ml-QA":"INR","ml-SG":"INR","mr-IN":"INR","ms-BN":"INR","ms-CC":"INR","ms-ID":"INR","ms-MY":"MYR","ms-SG":"MYR","mt-MT":"EUR","my-BD":"EUR","my-MM":"MMK","na-NR":"MMK","nb-NO":"NOK","nb-SJ":"NOK","nd-ZW":"NOK","ne-BT":"NOK","ne-IN":"NOK","ne-NP":"INR","ng-NA":"INR","nl-AW":"AWG","nl-BE":"EUR","nl-DE":"EUR","nl-FR":"EUR","nl-NL":"EUR","nl-SR":"EUR","nn-NO":"NOK","nr-ZA":"ZAR","nv-US":"ZAR","ny-MW":"ZAR","ny-MZ":"ZAR","ny-ZM":"ZAR","ny-ZW":"ZAR","oc-FR":"EUR","om-ET":"ETB","om-KE":"KES","om-SO":"KES","or-IN":"INR","os-GE":"INR","pa-IN":"INR","pl-CZ":"INR","pl-DE":"INR","pl-IL":"INR","pl-PL":"PLN","pl-RO":"PLN","pl-SK":"PLN","pl-UA":"PLN","ps-AE":"PLN","ps-AF":"AFN","ps-IR":"AFN","ps-PK":"AFN","pt-AG":"AFN","pt-AO":"AFN","pt-BR":"BRL","pt-CV":"BRL","pt-FR":"BRL","pt-GW":"BRL","pt-MO":"BRL","pt-MZ":"BRL","pt-PT":"EUR","pt-ST":"EUR","pt-TL":"EUR","qu-BO":"EUR","qu-PE":"EUR","rm-CH":"EUR","rn-BI":"EUR","ro-HU":"EUR","ro-IL":"EUR","ro-MD":"EUR","ro-RO":"RON","ro-RS":"RON","ro-UA":"RON","ru-BY":"RON","ru-CN":"RON","ru-DE":"RON","ru-EE":"RON","ru-FI":"RON","ru-GE":"RON","ru-IL":"RON","ru-KG":"RON","ru-KZ":"RON","ru-LT":"RON","ru-LV":"RON","ru-MD":"RON","ru-MN":"RON","ru-RU":"RUB","ru-SJ":"RUB","ru-TM":"RUB","ru-UA":"UAH","ru-US":"UAH","ru-UZ":"UAH","rw-CD":"UAH","rw-RW":"RWF","rw-UG":"RWF","sa-IN":"INR","se-FI":"INR","se-NO":"NOK","se-SE":"NOK","sg-CF":"NOK","si-LK":"LKR","sk-HU":"LKR","sk-RS":"LKR","sk-SK":"EUR","sl-AT":"EUR","sl-HU":"EUR","sl-IT":"EUR","sl-SI":"EUR","sm-AS":"EUR","sm-WS":"EUR","sn-ZW":"EUR","so-DJ":"DJF","so-ET":"ETB","so-KE":"ETB","so-SO":"SOS","sq-AL":"ALL","sq-GR":"ALL","sq-ME":"ALL","sq-MK":"MKD","sq-RS":"MKD","sq-TR":"MKD","sr-RS":"RSD","ss-LS":"RSD","ss-SZ":"RSD","ss-ZA":"ZAR","st-LS":"ZAR","st-ZA":"ZAR","su-ID":"ZAR","sv-AX":"ZAR","sv-FI":"EUR","sv-SE":"SEK","sw-BI":"SEK","sw-CD":"SEK","sw-KE":"SEK","sw-MZ":"SEK","sw-SO":"SEK","sw-TZ":"SEK","sw-UG":"SEK","sw-YT":"SEK","sw-ZA":"SEK","ta-IN":"INR","ta-LK":"INR","ta-MU":"INR","ta-MY":"INR","ta-RE":"INR","ta-SG":"INR","te-IN":"INR","th-TH":"THB","ti-ER":"ERN","ti-ET":"ETB","ti-IL":"ETB","tk-AF":"ETB","tk-IR":"ETB","tk-TM":"TMM","tl-PH":"PHP","tl-US":"PHP","tn-BW":"PHP","tn-NA":"PHP","tn-ZA":"ZAR","tn-ZW":"ZAR","to-TO":"ZAR","tr-BG":"ZAR","tr-CY":"TRY","tr-DE":"TRY","tr-GR":"TRY","tr-MK":"TRY","tr-NL":"TRY","tr-RO":"TRY","tr-TR":"TRY","tr-UA":"TRY","tr-UZ":"TRY","ts-MZ":"TRY","ts-SZ":"TRY","ts-ZA":"ZAR","tt-RU":"RUB","ty-PF":"RUB","uk-PL":"RUB","uk-SK":"RUB","uk-UA":"UAH","ur-IN":"UAH","ur-MU":"UAH","ur-PK":"PKR","ve-ZA":"ZAR","ve-ZW":"ZAR","vi-CN":"ZAR","vi-US":"ZAR","vi-VN":"VND","wa-BE":"EUR","xh-LS":"EUR","xh-ZA":"ZAR","yi-UA":"ZAR","yo-BJ":"ZAR","yo-NG":"NGN","za-CN":"NGN","zh-CN":"CNY","zh-HK":"HKD","zh-TW":"TWD","zu-LS":"TWD","zu-MW":"TWD","zu-MZ":"TWD","zu-SZ":"TWD","zu-ZA":"ZAR"},langToLocaleMapping:{}},u=new r.InjectionToken("DEFAULT_LOCALE"),f=new r.InjectionToken("LOCALE_LANG_MAPPING"),D=new r.InjectionToken("LOCALE_CONFIG"),A=new r.InjectionToken("LOCALE_CURRENCY_MAPPING"),I=new r.InjectionToken("TRANSLOCO_DATE_TRANSFORMER"),p=new r.InjectionToken("TRANSLOCO_NUMBER_TRANSFORMER"),C=(L.prototype.transform=function(e,r,n){return function t(e,r,n){return N(e)?e.toLocaleDateString(r,n):""}(e,r,n)},L);function L(){}var S=(T.prototype.transform=function(e,r,n,t){return function o(e,r,n){var t=a.toNumber(e);return null!==t?new Intl.NumberFormat(r,n).format(t):""}(e,n,c({},t,{style:r}))},T);function T(){}var d=(G.prototype.getLocale=function(){return this._locale},G.prototype.setLocale=function(e){if(!o(e))return console.error(e+" isn't a valid locale format"),!1;this.locale.next(e),this._locale=e},G.prototype.localizeDate=function(e,r,n){return void 0===r&&(r=this.getLocale()),n=n||l(r,"date",this.localeConfig),this.dateTransformer.transform(e,r,n)},G.prototype.localizeNumber=function(e,r,n,t){return void 0===n&&(n=this.getLocale()),t=t||l(n,r,this.localeConfig),"currency"===r&&(t=c({},t,{currency:t.currency||this._resolveCurrencyCode(n)})),this.numberTransformer.transform(e,r,n,t)},G.prototype._resolveCurrencyCode=function(e){return void 0===e&&(e=this.getLocale()),this.localeCurrencyMapping[e]||"USD"},G.prototype.toLocale=function(e){return o(e)?e:this.langLocaleMapping[e]?this.langLocaleMapping[e]:null},G.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},G.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],G.ctorParameters=function(){return[{type:a.TranslocoService},{type:undefined,decorators:[{type:r.Inject,args:[f]}]},{type:undefined,decorators:[{type:r.Inject,args:[u]}]},{type:undefined,decorators:[{type:r.Inject,args:[D]}]},{type:undefined,decorators:[{type:r.Inject,args:[A]}]},{type:undefined,decorators:[{type:r.Inject,args:[p]}]},{type:undefined,decorators:[{type:r.Inject,args:[I]}]}]},G.ngInjectableDef=r.defineInjectable({factory:function(){return new G(r.inject(a.TranslocoService),r.inject(f),r.inject(u),r.inject(D),r.inject(A),r.inject(p),r.inject(I))},token:G,providedIn:"root"}),G);function G(e,r,n,t,o,R,a){this.translocoService=e,this.langLocaleMapping=r,this.defaultLocale=n,this.localeConfig=t,this.localeCurrencyMapping=o,this.numberTransformer=R,this.dateTransformer=a,this._locale=n||this.toLocale(this.translocoService.getActiveLang()),this.locale=new s.BehaviorSubject(this._locale),this.localeChanges$=this.locale.asObservable().pipe(i.distinctUntilChanged()),this.subscription=e.langChanges$.pipe(i.map(this.toLocale.bind(this)),i.filter(function(e){return!!e})).subscribe(this.setLocale.bind(this))}var B=(P.prototype.getLocale=function(e){return e||this.translocoLocaleService.getLocale()},P.prototype.onDestroy=function(){this.subscription.unsubscribe()},P);function P(e,r){var n=this;this.translocoLocaleService=e,this.cdr=r,this.subscription=this.translocoLocaleService.localeChanges$.subscribe(function(){n.cdr.markForCheck()})}var M,y=(n(h,M=B),h.prototype.transform=function(e,r,n,t,o){if(void 0===r&&(r="symbol"),void 0===n&&(n={}),a.isNil(e))return"";o=this.getLocale(o);var R=c({},l(o,"currency",this.localeConfig),n,{currencyDisplay:r,currency:t||this.translocoLocaleService._resolveCurrencyCode()});return this.translocoLocaleService.localizeNumber(e,"currency",o,R)},h.prototype.ngOnDestroy=function(){M.prototype.onDestroy.call(this)},h.decorators=[{type:r.Pipe,args:[{name:"translocoCurrency",pure:!1}]}],h.ctorParameters=function(){return[{type:d},{type:r.ChangeDetectorRef},{type:undefined,decorators:[{type:r.Inject,args:[D]}]}]},h);function h(e,r,n){var t=M.call(this,e,r)||this;return t.translocoLocaleService=e,t.cdr=r,t.localeConfig=n,t}var g,K=(n(O,g=B),O.prototype.transform=function(e,r,n){return void 0===r&&(r={}),a.isNil(e)?"":(n=this.getLocale(n),this.translocoLocaleService.localizeDate(R(e),n,c({},l(n,"date",this.localeConfig),r)))},O.prototype.ngOnDestroy=function(){g.prototype.onDestroy.call(this)},O.decorators=[{type:r.Pipe,args:[{name:"translocoDate",pure:!1}]}],O.ctorParameters=function(){return[{type:d},{type:r.ChangeDetectorRef},{type:undefined,decorators:[{type:r.Inject,args:[D]}]}]},O);function O(e,r,n){var t=g.call(this,e,r)||this;return t.translocoLocaleService=e,t.cdr=r,t.localeConfig=n,t}var v,H=(n(Z,v=B),Z.prototype.transform=function(e,r,n){if(void 0===r&&(r={}),a.isNil(e))return"";n=this.getLocale(n);var t=c({},l(n,"decimal",this.localeConfig),r);return this.translocoLocaleService.localizeNumber(e,"decimal",n,t)},Z.prototype.ngOnDestroy=function(){v.prototype.onDestroy.call(this)},Z.decorators=[{type:r.Pipe,args:[{name:"translocoDecimal",pure:!1}]}],Z.ctorParameters=function(){return[{type:d},{type:r.ChangeDetectorRef},{type:undefined,decorators:[{type:r.Inject,args:[D]}]}]},Z);function Z(e,r,n){var t=v.call(this,e,r)||this;return t.translocoLocaleService=e,t.cdr=r,t.localeConfig=n,t}var m,F=(n(b,m=B),b.prototype.transform=function(e,r,n){if(void 0===r&&(r={}),a.isNil(e))return"";n=this.getLocale(n);var t=c({},l(n,"percent",this.localeConfig),r);return this.translocoLocaleService.localizeNumber(e,"percent",n,t)},b.prototype.ngOnDestroy=function(){m.prototype.onDestroy.call(this)},b.decorators=[{type:r.Pipe,args:[{name:"translocoPercent",pure:!1}]}],b.ctorParameters=function(){return[{type:d},{type:r.ChangeDetectorRef},{type:undefined,decorators:[{type:r.Inject,args:[D]}]}]},b);function b(e,r,n){var t=m.call(this,e,r)||this;return t.translocoLocaleService=e,t.cdr=r,t.localeConfig=n,t}var Y=[y,K,H,F],j=(k.init=function(e){return void 0===e&&(e={}),{ngModule:k,providers:[{provide:f,useValue:e.langToLocaleMapping||U.langToLocaleMapping},{provide:D,useValue:e.localeConfig||U.localeConfig},{provide:A,useValue:e.localeToCurrencyMapping||U.localeToCurrencyMapping},{provide:u,useValue:e.defaultLocale||U.defaultLocale},{provide:I,useClass:C},{provide:p,useClass:S}]}},k.decorators=[{type:r.NgModule,args:[{declarations:Y,exports:Y}]}],k);function k(){}e.TranslocoLocaleService=d,e.defaultConfig=U,e.LOCALE_DEFAULT_LOCALE=u,e.LOCALE_LANG_MAPPING=f,e.LOCALE_CONFIG=D,e.LOCALE_CURRENCY_MAPPING=A,e.pipes=Y,e.TranslocoLocaleModule=j,e.TranslocoDatePipe=K,e.TranslocoCurrencyPipe=y,e.TranslocoPercentPipe=F,e.TranslocoDecimalPipe=H,e.TRANSLOCO_DATE_TRANSFORMER=I,e.TRANSLOCO_NUMBER_TRANSFORMER=p,e.DefaultDateTransformer=C,e.DefaultNumberTransformer=S,e.ɵa=B,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("rxjs"),require("rxjs/operators"),require("@angular/core"),require("@ngneat/transloco")):"function"==typeof define&&define.amd?define("@ngneat/transloco-locale",["exports","rxjs","rxjs/operators","@angular/core","@ngneat/transloco"],r):r((e.ngneat=e.ngneat||{},e.ngneat["transloco-locale"]={}),e.rxjs,e.rxjs.operators,e.ng.core,e.i1)}(this,function(e,s,i,r,a){"use strict";var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])})(e,r)};function n(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var c=function(){return(c=Object.assign||function(e){for(var r,n=1,t=arguments.length;n<t;n++)for(var o in r=arguments[n])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)};var E=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;function o(e){return"string"==typeof e&&e.match(/[a-z]{2}-[A-Z]{2}/)}function N(e){return e instanceof Date&&!isNaN(e)}function R(e){var r;if("string"==typeof e&&(e=e.trim()),N(e))return e;if(!isNaN(e-parseFloat(e)))return new Date(parseFloat(e));if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var n=function i(e,r){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,o,R=n.call(e),a=[];try{for(;(void 0===r||0<r--)&&!(t=R.next()).done;)a.push(t.value)}catch(s){o={error:s}}finally{try{t&&!t.done&&(n=R["return"])&&n.call(R)}finally{if(o)throw o.error}}return a}(e.split("-").map(function(e){return parseInt(e,10)}),3),t=n[0],o=n[1],R=n[2];return new Date(t,o-1,R)}return"string"==typeof e&&(r=e.match(E))?function l(e){var r=new Date(0),n=0,t=0,o=e[8]?r.setUTCFullYear:r.setFullYear,R=e[8]?r.setUTCHours:r.setHours;e[9]&&(n=+(e[9]+e[10]),t=+(e[9]+e[11]));o.call(r,+e[1],e[2]-1,+e[3]);var a=(e[4]||"0")-n,s=(e[5]||"0")-t,i=+(e[6]||"0"),c=Math.round(1e3*parseFloat("0."+(e[7]||0)));return R.call(r,a,s,i,c),r}(r):new Date(e)}function l(e,r,n){var t=n.global?n.global[r]:{},o=n.localeBased?n.localeBased[e]:{};return o&&o[r]?c({},t,o[r]):t}var U={localeConfig:{global:{},localeBased:{}},defaultLocale:"en-US",localeToCurrencyMapping:{"aa-DJ":"DJF","aa-ER":"ERN","aa-ET":"ETB","ab-GE":"ETB","ab-TR":"ETB","af-BW":"ETB","af-NA":"ETB","af-ZA":"ZAR","ak-GH":"ZAR","am-ET":"ETB","am-IL":"ETB","ar-AE":"AED","ar-AR":"AED","ar-BH":"BHD","ar-CM":"BHD","ar-CY":"BHD","ar-DJ":"BHD","ar-DZ":"DZD","ar-EG":"EGP","ar-EH":"EGP","ar-ER":"EGP","ar-IL":"EGP","ar-IQ":"IQD","ar-IR":"IQD","ar-JO":"JOD","ar-KE":"JOD","ar-KM":"JOD","ar-KW":"KWD","ar-LB":"LBP","ar-LY":"LYD","ar-MA":"MAD","ar-ML":"MAD","ar-MR":"MAD","ar-NE":"MAD","ar-NG":"MAD","ar-OM":"OMR","ar-PS":"OMR","ar-QA":"QAR","ar-SA":"SAR","ar-SD":"SDD","ar-SS":"SDD","ar-SY":"SYP","ar-TD":"SYP","ar-TJ":"SYP","ar-TN":"TND","ar-TR":"TND","ar-YE":"YER","as-IN":"INR","av-RU":"INR","ay-BO":"INR","ay-PE":"INR","az-AZ":"AZM","ba-RU":"AZM","be-BY":"BYR","be-PL":"BYR","be-UA":"BYR","bg-BG":"BGN","bg-GR":"BGN","bg-MD":"BGN","bg-RO":"BGN","bg-TR":"BGN","bg-UA":"BGN","bi-VU":"BGN","bm-ML":"BGN","bn-BD":"BDT","bn-GB":"BDT","bn-IN":"INR","bn-NP":"INR","bo-CN":"CNY","bo-IN":"INR","bo-NP":"INR","br-FR":"EUR","bs-BA":"BAM","ca-AD":"EUR","ca-ES":"EUR","ca-FR":"EUR","ca-IT":"EUR","ce-RU":"EUR","ch-GU":"EUR","ch-MP":"EUR","co-FR":"EUR","cs-CZ":"CZK","cv-RU":"RUB","cy-AR":"RUB","cy-GB":"GBP","da-DE":"GBP","da-DK":"DKK","da-GL":"DKK","da-IS":"DKK","de-AT":"EUR","de-BE":"EUR","de-BR":"EUR","de-CA":"EUR","de-CH":"CHF","de-CZ":"CHF","de-DE":"EUR","de-DK":"EUR","de-HU":"EUR","de-IT":"EUR","de-KZ":"EUR","de-LI":"EUR","de-LU":"EUR","de-NA":"EUR","de-PL":"EUR","de-PY":"EUR","de-RO":"EUR","de-SK":"EUR","de-US":"EUR","dv-IN":"EUR","dv-MV":"MVR","dz-BT":"BTN","dz-IN":"BTN","ee-GH":"BTN","ee-TG":"BTN","el-AL":"BTN","el-CY":"EUR","el-DE":"EUR","el-EG":"EUR","el-GB":"EUR","el-GR":"EUR","el-IT":"EUR","el-RO":"EUR","el-TR":"EUR","el-UA":"EUR","en-AC":"EUR","en-AG":"XCD","en-AI":"XCD","en-AS":"XCD","en-AU":"AUD","en-AW":"AUD","en-BB":"AUD","en-BE":"AUD","en-BM":"AUD","en-BN":"AUD","en-BS":"AUD","en-BW":"BWP","en-BZ":"BWP","en-CA":"CAD","en-CC":"CAD","en-CK":"CAD","en-CM":"CAD","en-CN":"CAD","en-CX":"CAD","en-DE":"CAD","en-DG":"CAD","en-DM":"CAD","en-DO":"CAD","en-ES":"CAD","en-ET":"CAD","en-FI":"CAD","en-FJ":"CAD","en-FK":"CAD","en-FM":"CAD","en-FR":"CAD","en-GB":"GBP","en-GD":"GBP","en-GG":"GBP","en-GH":"GBP","en-GI":"GBP","en-GM":"GBP","en-GU":"GBP","en-GY":"GBP","en-HK":"HKD","en-HN":"HKD","en-IE":"EUR","en-IL":"EUR","en-IM":"EUR","en-IN":"INR","en-IO":"INR","en-IT":"INR","en-JE":"INR","en-JM":"INR","en-KE":"INR","en-KI":"INR","en-KN":"INR","en-KY":"INR","en-LB":"INR","en-LC":"INR","en-LK":"INR","en-LR":"INR","en-LS":"INR","en-MG":"INR","en-MH":"INR","en-MP":"INR","en-MS":"INR","en-MT":"INR","en-MU":"INR","en-MW":"INR","en-MY":"INR","en-NA":"INR","en-NF":"INR","en-NG":"NGN","en-NL":"NGN","en-NR":"NGN","en-NU":"NGN","en-NZ":"NZD","en-PA":"NZD","en-PG":"NZD","en-PH":"PHP","en-PI":"PHP","en-PK":"PHP","en-PM":"PHP","en-PN":"PHP","en-PR":"PHP","en-PW":"PHP","en-RW":"PHP","en-SB":"PHP","en-SC":"PHP","en-SG":"SGD","en-SH":"SGD","en-SL":"SGD","en-SS":"SGD","en-SZ":"SGD","en-TA":"SGD","en-TC":"SGD","en-TK":"SGD","en-TO":"SGD","en-TT":"SGD","en-TV":"SGD","en-TZ":"SGD","en-UD":"SGD","en-UG":"SGD","en-UM":"SGD","en-US":"USD","en-VC":"USD","en-VG":"USD","en-VI":"USD","en-VU":"USD","en-WS":"USD","en-ZA":"ZAR","en-ZM":"ZAR","en-ZW":"ZWD","eo-EO":"ZWD","eo-SM":"ZWD","es-AD":"ZWD","es-AR":"ARS","es-BO":"BOB","es-BZ":"BOB","es-CL":"CLP","es-CO":"COP","es-CR":"CRC","es-CU":"CRC","es-DE":"CRC","es-DO":"DOP","es-EA":"DOP","es-EC":"USD","es-ES":"EUR","es-GQ":"EUR","es-GT":"GTQ","es-HN":"HNL","es-IC":"HNL","es-LA":"HNL","es-MA":"HNL","es-MX":"MXN","es-NI":"NIO","es-PA":"PAB","es-PE":"PEN","es-PH":"PEN","es-PR":"USD","es-PY":"PYG","es-SV":"SVC","es-TT":"SVC","es-US":"USD","es-UY":"UYU","es-VE":"VEB","et-EE":"EEK","et-FI":"EEK","eu-ES":"EUR","eu-FR":"EUR","fa-AE":"EUR","fa-AF":"EUR","fa-IQ":"EUR","fa-IR":"IRR","fa-OM":"IRR","fa-PK":"IRR","fa-QA":"IRR","fa-TJ":"IRR","fb-LT":"IRR","ff-GN":"IRR","ff-MR":"IRR","ff-SN":"IRR","fi-FI":"EUR","fi-RU":"EUR","fi-SE":"EUR","fj-FJ":"EUR","fo-FO":"DKK","fr-AD":"DKK","fr-BE":"EUR","fr-BF":"EUR","fr-BI":"EUR","fr-BJ":"EUR","fr-BL":"EUR","fr-CA":"CAD","fr-CD":"CAD","fr-CF":"CAD","fr-CG":"CAD","fr-CH":"CHF","fr-CI":"CHF","fr-CM":"CHF","fr-CP":"CHF","fr-DJ":"CHF","fr-DZ":"CHF","fr-FR":"EUR","fr-GA":"EUR","fr-GB":"EUR","fr-GF":"EUR","fr-GN":"EUR","fr-GP":"EUR","fr-GQ":"EUR","fr-HT":"EUR","fr-IT":"EUR","fr-KM":"EUR","fr-LB":"EUR","fr-LU":"EUR","fr-MA":"EUR","fr-MC":"EUR","fr-MF":"EUR","fr-MG":"EUR","fr-ML":"EUR","fr-MQ":"EUR","fr-MR":"EUR","fr-MU":"EUR","fr-NC":"EUR","fr-NE":"EUR","fr-PF":"EUR","fr-PM":"EUR","fr-RE":"EUR","fr-RW":"EUR","fr-SC":"EUR","fr-SN":"EUR","fr-SY":"EUR","fr-TD":"EUR","fr-TF":"EUR","fr-TG":"EUR","fr-TN":"EUR","fr-US":"EUR","fr-VU":"EUR","fr-WF":"EUR","fr-YT":"EUR","fy-NL":"EUR","ga-GB":"EUR","ga-IE":"EUR","gd-GB":"GBP","gl-ES":"EUR","gl-PT":"EUR","gn-AR":"EUR","gn-BO":"EUR","gn-PY":"EUR","gu-IN":"INR","gu-KE":"INR","gv-IM":"INR","he-IL":"ILS","hi-FJ":"ILS","hi-IN":"INR","hi-NP":"INR","hi-UG":"INR","hi-ZA":"INR","ho-PG":"INR","hr-AT":"INR","hr-BA":"INR","hr-DE":"INR","hr-HR":"HRK","hr-HU":"HRK","hr-IT":"HRK","ht-HT":"HTG","hu-AT":"HTG","hu-HU":"HUF","hu-IL":"HUF","hu-RO":"HUF","hu-RS":"HUF","hu-SI":"HUF","hu-SK":"HUF","hu-UA":"HUF","hy-AM":"AMD","hy-CY":"AMD","hy-GE":"AMD","hy-IR":"AMD","hy-LB":"AMD","hy-SY":"AMD","hy-TR":"AMD","ia-SE":"AMD","id-ID":"IDR","id-NL":"IDR","ig-NG":"NGN","ii-CN":"NGN","ik-US":"NGN","is-IS":"ISK","it-AU":"ISK","it-BR":"ISK","it-CA":"ISK","it-CH":"CHF","it-DE":"CHF","it-FR":"CHF","it-GB":"CHF","it-HR":"CHF","it-IT":"EUR","it-SI":"EUR","it-SM":"EUR","it-US":"EUR","it-VA":"EUR","iu-GL":"EUR","ja-BR":"EUR","ja-JP":"JPY","jv-ID":"JPY","jv-MY":"JPY","ka-GE":"GEL","ka-IR":"GEL","ka-TR":"GEL","kg-CD":"GEL","ki-KE":"GEL","kj-NA":"GEL","kl-DK":"GEL","kl-GL":"DKK","km-KH":"KHR","kn-IN":"INR","ko-BR":"INR","ko-CN":"INR","ko-JP":"INR","ko-KP":"INR","ko-KR":"KRW","ko-US":"KRW","ks-GB":"KRW","ks-IN":"INR","ks-PK":"INR","ku-TR":"TRY","kw-GB":"GBP","la-VA":"GBP","lb-LU":"GBP","lg-UG":"UGX","li-NL":"EUR","ln-CD":"EUR","ln-CG":"EUR","lo-LA":"LAK","lt-LT":"LTL","lu-CD":"LTL","lv-LV":"LVL","mg-MG":"MGA","mh-MH":"MGA","mi-NZ":"NZD","mk-AL":"NZD","mk-GR":"NZD","mk-MK":"MKD","ml-AE":"MKD","ml-BH":"MKD","ml-GB":"MKD","ml-IL":"MKD","ml-IN":"INR","ml-MY":"INR","ml-QA":"INR","ml-SG":"INR","mr-IN":"INR","ms-BN":"INR","ms-CC":"INR","ms-ID":"INR","ms-MY":"MYR","ms-SG":"MYR","mt-MT":"EUR","my-BD":"EUR","my-MM":"MMK","na-NR":"MMK","nb-NO":"NOK","nb-SJ":"NOK","nd-ZW":"NOK","ne-BT":"NOK","ne-IN":"NOK","ne-NP":"INR","ng-NA":"INR","nl-AW":"AWG","nl-BE":"EUR","nl-DE":"EUR","nl-FR":"EUR","nl-NL":"EUR","nl-SR":"EUR","nn-NO":"NOK","nr-ZA":"ZAR","nv-US":"ZAR","ny-MW":"ZAR","ny-MZ":"ZAR","ny-ZM":"ZAR","ny-ZW":"ZAR","oc-FR":"EUR","om-ET":"ETB","om-KE":"KES","om-SO":"KES","or-IN":"INR","os-GE":"INR","pa-IN":"INR","pl-CZ":"INR","pl-DE":"INR","pl-IL":"INR","pl-PL":"PLN","pl-RO":"PLN","pl-SK":"PLN","pl-UA":"PLN","ps-AE":"PLN","ps-AF":"AFN","ps-IR":"AFN","ps-PK":"AFN","pt-AG":"AFN","pt-AO":"AFN","pt-BR":"BRL","pt-CV":"BRL","pt-FR":"BRL","pt-GW":"BRL","pt-MO":"BRL","pt-MZ":"BRL","pt-PT":"EUR","pt-ST":"EUR","pt-TL":"EUR","qu-BO":"EUR","qu-PE":"EUR","rm-CH":"EUR","rn-BI":"EUR","ro-HU":"EUR","ro-IL":"EUR","ro-MD":"EUR","ro-RO":"RON","ro-RS":"RON","ro-UA":"RON","ru-BY":"RON","ru-CN":"RON","ru-DE":"RON","ru-EE":"RON","ru-FI":"RON","ru-GE":"RON","ru-IL":"RON","ru-KG":"RON","ru-KZ":"RON","ru-LT":"RON","ru-LV":"RON","ru-MD":"RON","ru-MN":"RON","ru-RU":"RUB","ru-SJ":"RUB","ru-TM":"RUB","ru-UA":"UAH","ru-US":"UAH","ru-UZ":"UAH","rw-CD":"UAH","rw-RW":"RWF","rw-UG":"RWF","sa-IN":"INR","se-FI":"INR","se-NO":"NOK","se-SE":"NOK","sg-CF":"NOK","si-LK":"LKR","sk-HU":"LKR","sk-RS":"LKR","sk-SK":"EUR","sl-AT":"EUR","sl-HU":"EUR","sl-IT":"EUR","sl-SI":"EUR","sm-AS":"EUR","sm-WS":"EUR","sn-ZW":"EUR","so-DJ":"DJF","so-ET":"ETB","so-KE":"ETB","so-SO":"SOS","sq-AL":"ALL","sq-GR":"ALL","sq-ME":"ALL","sq-MK":"MKD","sq-RS":"MKD","sq-TR":"MKD","sr-RS":"RSD","ss-LS":"RSD","ss-SZ":"RSD","ss-ZA":"ZAR","st-LS":"ZAR","st-ZA":"ZAR","su-ID":"ZAR","sv-AX":"ZAR","sv-FI":"EUR","sv-SE":"SEK","sw-BI":"SEK","sw-CD":"SEK","sw-KE":"SEK","sw-MZ":"SEK","sw-SO":"SEK","sw-TZ":"SEK","sw-UG":"SEK","sw-YT":"SEK","sw-ZA":"SEK","ta-IN":"INR","ta-LK":"INR","ta-MU":"INR","ta-MY":"INR","ta-RE":"INR","ta-SG":"INR","te-IN":"INR","th-TH":"THB","ti-ER":"ERN","ti-ET":"ETB","ti-IL":"ETB","tk-AF":"ETB","tk-IR":"ETB","tk-TM":"TMM","tl-PH":"PHP","tl-US":"PHP","tn-BW":"PHP","tn-NA":"PHP","tn-ZA":"ZAR","tn-ZW":"ZAR","to-TO":"ZAR","tr-BG":"ZAR","tr-CY":"TRY","tr-DE":"TRY","tr-GR":"TRY","tr-MK":"TRY","tr-NL":"TRY","tr-RO":"TRY","tr-TR":"TRY","tr-UA":"TRY","tr-UZ":"TRY","ts-MZ":"TRY","ts-SZ":"TRY","ts-ZA":"ZAR","tt-RU":"RUB","ty-PF":"RUB","uk-PL":"RUB","uk-SK":"RUB","uk-UA":"UAH","ur-IN":"UAH","ur-MU":"UAH","ur-PK":"PKR","ve-ZA":"ZAR","ve-ZW":"ZAR","vi-CN":"ZAR","vi-US":"ZAR","vi-VN":"VND","wa-BE":"EUR","xh-LS":"EUR","xh-ZA":"ZAR","yi-UA":"ZAR","yo-BJ":"ZAR","yo-NG":"NGN","za-CN":"NGN","zh-CN":"CNY","zh-HK":"HKD","zh-TW":"TWD","zu-LS":"TWD","zu-MW":"TWD","zu-MZ":"TWD","zu-SZ":"TWD","zu-ZA":"ZAR"},langToLocaleMapping:{}},u=new r.InjectionToken("DEFAULT_LOCALE"),f=new r.InjectionToken("LOCALE_LANG_MAPPING"),D=new r.InjectionToken("LOCALE_CONFIG"),A=new r.InjectionToken("LOCALE_CURRENCY_MAPPING"),I=new r.InjectionToken("TRANSLOCO_DATE_TRANSFORMER"),p=new r.InjectionToken("TRANSLOCO_NUMBER_TRANSFORMER"),C=(L.prototype.transform=function(e,r,n){return function t(e,r,n){return N(e)?e.toLocaleDateString(r,n):""}(e,r,n)},L);function L(){}var S=(T.prototype.transform=function(e,r,n,t){return function o(e,r,n){var t=a.toNumber(e);return null!==t?new Intl.NumberFormat(r,n).format(t):""}(e,n,c({},t,{style:r}))},T);function T(){}var d=(G.prototype.getLocale=function(){return this._locale},G.prototype.setLocale=function(e){if(!o(e))return console.error(e+" isn't a valid locale format"),!1;this.locale.next(e),this._locale=e},G.prototype.localizeDate=function(e,r,n){return void 0===r&&(r=this.getLocale()),n=n||l(r,"date",this.localeConfig),this.dateTransformer.transform(R(e),r,n)},G.prototype.localizeNumber=function(e,r,n,t){return void 0===n&&(n=this.getLocale()),t=t||l(n,r,this.localeConfig),"currency"===r&&(t=c({},t,{currency:t.currency||this._resolveCurrencyCode(n)})),this.numberTransformer.transform(e,r,n,t)},G.prototype._resolveCurrencyCode=function(e){return void 0===e&&(e=this.getLocale()),this.localeCurrencyMapping[e]||"USD"},G.prototype.toLocale=function(e){return o(e)?e:this.langLocaleMapping[e]?this.langLocaleMapping[e]:null},G.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},G.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],G.ctorParameters=function(){return[{type:a.TranslocoService},{type:undefined,decorators:[{type:r.Inject,args:[f]}]},{type:undefined,decorators:[{type:r.Inject,args:[u]}]},{type:undefined,decorators:[{type:r.Inject,args:[D]}]},{type:undefined,decorators:[{type:r.Inject,args:[A]}]},{type:undefined,decorators:[{type:r.Inject,args:[p]}]},{type:undefined,decorators:[{type:r.Inject,args:[I]}]}]},G.ngInjectableDef=r.defineInjectable({factory:function(){return new G(r.inject(a.TranslocoService),r.inject(f),r.inject(u),r.inject(D),r.inject(A),r.inject(p),r.inject(I))},token:G,providedIn:"root"}),G);function G(e,r,n,t,o,R,a){this.translocoService=e,this.langLocaleMapping=r,this.defaultLocale=n,this.localeConfig=t,this.localeCurrencyMapping=o,this.numberTransformer=R,this.dateTransformer=a,this._locale=n||this.toLocale(this.translocoService.getActiveLang()),this.locale=new s.BehaviorSubject(this._locale),this.localeChanges$=this.locale.asObservable().pipe(i.distinctUntilChanged()),this.subscription=e.langChanges$.pipe(i.map(this.toLocale.bind(this)),i.filter(function(e){return!!e})).subscribe(this.setLocale.bind(this))}var B=(P.prototype.getLocale=function(e){return e||this.translocoLocaleService.getLocale()},P.prototype.onDestroy=function(){this.subscription.unsubscribe()},P);function P(e,r){var n=this;this.translocoLocaleService=e,this.cdr=r,this.subscription=this.translocoLocaleService.localeChanges$.subscribe(function(){n.cdr.markForCheck()})}var M,y=(n(h,M=B),h.prototype.transform=function(e,r,n,t,o){if(void 0===r&&(r="symbol"),void 0===n&&(n={}),a.isNil(e))return"";o=this.getLocale(o);var R=c({},l(o,"currency",this.localeConfig),n,{currencyDisplay:r,currency:t||this.translocoLocaleService._resolveCurrencyCode()});return this.translocoLocaleService.localizeNumber(e,"currency",o,R)},h.prototype.ngOnDestroy=function(){M.prototype.onDestroy.call(this)},h.decorators=[{type:r.Pipe,args:[{name:"translocoCurrency",pure:!1}]}],h.ctorParameters=function(){return[{type:d},{type:r.ChangeDetectorRef},{type:undefined,decorators:[{type:r.Inject,args:[D]}]}]},h);function h(e,r,n){var t=M.call(this,e,r)||this;return t.translocoLocaleService=e,t.cdr=r,t.localeConfig=n,t}var g,K=(n(O,g=B),O.prototype.transform=function(e,r,n){return void 0===r&&(r={}),a.isNil(e)?"":(n=this.getLocale(n),this.translocoLocaleService.localizeDate(e,n,c({},l(n,"date",this.localeConfig),r)))},O.prototype.ngOnDestroy=function(){g.prototype.onDestroy.call(this)},O.decorators=[{type:r.Pipe,args:[{name:"translocoDate",pure:!1}]}],O.ctorParameters=function(){return[{type:d},{type:r.ChangeDetectorRef},{type:undefined,decorators:[{type:r.Inject,args:[D]}]}]},O);function O(e,r,n){var t=g.call(this,e,r)||this;return t.translocoLocaleService=e,t.cdr=r,t.localeConfig=n,t}var v,H=(n(Z,v=B),Z.prototype.transform=function(e,r,n){if(void 0===r&&(r={}),a.isNil(e))return"";n=this.getLocale(n);var t=c({},l(n,"decimal",this.localeConfig),r);return this.translocoLocaleService.localizeNumber(e,"decimal",n,t)},Z.prototype.ngOnDestroy=function(){v.prototype.onDestroy.call(this)},Z.decorators=[{type:r.Pipe,args:[{name:"translocoDecimal",pure:!1}]}],Z.ctorParameters=function(){return[{type:d},{type:r.ChangeDetectorRef},{type:undefined,decorators:[{type:r.Inject,args:[D]}]}]},Z);function Z(e,r,n){var t=v.call(this,e,r)||this;return t.translocoLocaleService=e,t.cdr=r,t.localeConfig=n,t}var m,F=(n(b,m=B),b.prototype.transform=function(e,r,n){if(void 0===r&&(r={}),a.isNil(e))return"";n=this.getLocale(n);var t=c({},l(n,"percent",this.localeConfig),r);return this.translocoLocaleService.localizeNumber(e,"percent",n,t)},b.prototype.ngOnDestroy=function(){m.prototype.onDestroy.call(this)},b.decorators=[{type:r.Pipe,args:[{name:"translocoPercent",pure:!1}]}],b.ctorParameters=function(){return[{type:d},{type:r.ChangeDetectorRef},{type:undefined,decorators:[{type:r.Inject,args:[D]}]}]},b);function b(e,r,n){var t=m.call(this,e,r)||this;return t.translocoLocaleService=e,t.cdr=r,t.localeConfig=n,t}var Y=[y,K,H,F],j=(k.init=function(e){return void 0===e&&(e={}),{ngModule:k,providers:[{provide:f,useValue:e.langToLocaleMapping||U.langToLocaleMapping},{provide:D,useValue:e.localeConfig||U.localeConfig},{provide:A,useValue:e.localeToCurrencyMapping||U.localeToCurrencyMapping},{provide:u,useValue:e.defaultLocale||U.defaultLocale},{provide:I,useClass:C},{provide:p,useClass:S}]}},k.decorators=[{type:r.NgModule,args:[{declarations:Y,exports:Y}]}],k);function k(){}e.TranslocoLocaleService=d,e.defaultConfig=U,e.LOCALE_DEFAULT_LOCALE=u,e.LOCALE_LANG_MAPPING=f,e.LOCALE_CONFIG=D,e.LOCALE_CURRENCY_MAPPING=A,e.pipes=Y,e.TranslocoLocaleModule=j,e.TranslocoDatePipe=K,e.TranslocoCurrencyPipe=y,e.TranslocoPercentPipe=F,e.TranslocoDecimalPipe=H,e.TRANSLOCO_DATE_TRANSFORMER=I,e.TRANSLOCO_NUMBER_TRANSFORMER=p,e.DefaultDateTransformer=C,e.DefaultNumberTransformer=S,e.ɵa=B,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ngneat-transloco-locale.umd.min.js.map |
@@ -8,3 +8,2 @@ /** | ||
import { isNil } from '@ngneat/transloco'; | ||
import { toDate } from '../helpers'; | ||
import { getDefaultOptions } from '../shared'; | ||
@@ -39,3 +38,3 @@ import { LOCALE_CONFIG } from '../transloco-locale.config'; | ||
* '2019-02-08' | translocoDate: { dateStyle: 'medium' } // Feb 8, 2019 | ||
* @param {?} value | ||
* @param {?} date | ||
* @param {?=} options | ||
@@ -45,7 +44,7 @@ * @param {?=} locale | ||
*/ | ||
transform(value, options = {}, locale) { | ||
if (isNil(value)) | ||
transform(date, options = {}, locale) { | ||
if (isNil(date)) | ||
return ''; | ||
locale = this.getLocale(locale); | ||
return this.translocoLocaleService.localizeDate(toDate(value), locale, Object.assign({}, getDefaultOptions(locale, 'date', this.localeConfig), options)); | ||
return this.translocoLocaleService.localizeDate(date, locale, Object.assign({}, getDefaultOptions(locale, 'date', this.localeConfig), options)); | ||
} | ||
@@ -88,2 +87,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNsb2NvLWRhdGUucGlwZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ25lYXQvdHJhbnNsb2NvLWxvY2FsZS8iLCJzb3VyY2VzIjpbImxpYi9waXBlcy90cmFuc2xvY28tZGF0ZS5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLElBQUksRUFBRSxpQkFBaUIsRUFBaUIsTUFBTSxFQUFhLE1BQU0sZUFBZSxDQUFDO0FBQzFGLE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUMxQyxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQ3BDLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQUM5QyxPQUFPLEVBQUUsYUFBYSxFQUFnQixNQUFNLDRCQUE0QixDQUFDO0FBQ3pFLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLDZCQUE2QixDQUFDO0FBRXJFLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBTTlELE1BQU0sT0FBTyxpQkFBa0IsU0FBUSxtQkFBbUI7Ozs7OztJQUN4RCxZQUNZLHNCQUE4QyxFQUM5QyxHQUFzQixFQUNELFlBQTBCO1FBRXpELEtBQUssQ0FBQyxzQkFBc0IsRUFBRSxHQUFHLENBQUMsQ0FBQztR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c7XG4gICAgbG9jYWxlID0gdGhpcy5nZXRMb2NhbGUobG9jYWxlKTtcblxuICAgIHJldHVybiB0aGlzLnRyYW5zbG9jb0xvY2FsZVNlcnZpY2UubG9jYWxpemVEYXRlKGRhdGUsIGxvY2FsZSwge1xuICAgICAgLi4uZ2V0RGVmYXVsdE9wdGlvbnMobG9jYWxlLCAnZGF0ZScsIHRoaXMubG9jYWxlQ29uZmlnKSxcbiAgICAgIC4uLm9wdGlvbnNcbiAgICB9KTtcbiAgfVxuXG4gIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgIHN1cGVyLm9uRGVzdHJveSgpO1xuICB9XG59XG4iXX0= |
@@ -14,7 +14,7 @@ /** | ||
/** @type {?} */ | ||
const defaultConfig = localeConfig.global[type] || {}; | ||
const defaultConfig = localeConfig.global ? localeConfig.global[type] : {}; | ||
/** @type {?} */ | ||
const settings = localeConfig.localeBased[locale]; | ||
const settings = localeConfig.localeBased ? localeConfig.localeBased[locale] : {}; | ||
return settings && settings[type] ? Object.assign({}, defaultConfig, settings[type]) : defaultConfig; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhcmVkLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nbmVhdC90cmFuc2xvY28tbG9jYWxlLyIsInNvdXJjZXMiOlsibGliL3NoYXJlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUdBLE1BQU0sVUFBVSxpQkFBaUIsQ0FBQyxNQUFjLEVBQUUsSUFBK0IsRUFBRSxZQUEwQjs7VUFDckcsYUFBYSxHQUFHLFlBQVksQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRTs7VUFDL0MsUUFBUSxHQUFHLFlBQVksQ0FBQyxXQUFXLENBQUMsTUFBTSxDQUFDO0lBQ2pELE9BQU8sUUFBUSxJQUFJLFFBQVEsQ0FBQyxJQUFJLENBQUMsQ0F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RpbmdzW3R5cGVdID8geyAuLi5kZWZhdWx0Q29uZmlnLCAuLi5zZXR0aW5nc1t0eXBlXSB9IDogZGVmYXVsdENvbmZpZztcclxufVxyXG4iXX0= |
@@ -27,5 +27,5 @@ /** | ||
if (false) { | ||
/** @type {?} */ | ||
/** @type {?|undefined} */ | ||
LocaleConfig.prototype.global; | ||
/** @type {?} */ | ||
/** @type {?|undefined} */ | ||
LocaleConfig.prototype.localeBased; | ||
@@ -65,2 +65,2 @@ } | ||
export const LOCALE_CURRENCY_MAPPING = new InjectionToken('LOCALE_CURRENCY_MAPPING'); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNsb2NvLWxvY2FsZS5jb25maWcuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbmduZWF0L3RyYW5zbG9jby1sb2NhbGUvIiwic291cmNlcyI6WyJsaWIvdHJhbnNsb2NvLWxvY2FsZS5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRS9DLE9BQU8sZUFBZSxNQUFNLG1CQUFtQixDQUFDOzs7O0FBR2hELHlDQUtDOzs7SUFKQyxtQ0FBeUI7O0lBQ3pCLHNDQUE4Qjs7SUFDOUIsdUNBQStCOztJQUMvQixzQ0FBOEI7Ozs7O0FBR2hDLGtDQUdDOzs7SUFGQyw4QkFBNEI7O0lBQzVCLG1DQUEwQzs7Ozs7QUFHNUMsMkNBS0M7OztJQUpDLDhDQUF1Qjs7SUFDdkIsNkNBQTRCOztJQUM1QixvREFBc0M7O0lBQ3RDLHdEQUE0Qzs7O0FBRzlDLE1BQU0sT0FBTyxhQUFhLEdBQTBCO0lBQ2xELFlBQVksRUFBRTtRQUNaLE1BQU0sRUFBRSxFQUFFO1FBQ1YsV0FBVyxFQUFFLEVBQUU7S0FDaEI7SUFDRCxhQUFhLEV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aE1hcDxMb2NhbGU+O1xuICBsb2NhbGVUb0N1cnJlbmN5TWFwcGluZz86IEhhc2hNYXA8Q3VycmVuY3k+O1xufVxuXG5leHBvcnQgY29uc3QgZGVmYXVsdENvbmZpZzogVHJhbnNsb2NvTG9jYWxlQ29uZmlnID0ge1xuICBsb2NhbGVDb25maWc6IHtcbiAgICBnbG9iYWw6IHt9LFxuICAgIGxvY2FsZUJhc2VkOiB7fVxuICB9LFxuICBkZWZhdWx0TG9jYWxlOiAnZW4tVVMnLFxuICBsb2NhbGVUb0N1cnJlbmN5TWFwcGluZzogTE9DQUxFX0NVUlJFTkNZLFxuICBsYW5nVG9Mb2NhbGVNYXBwaW5nOiB7fVxufTtcblxuZXhwb3J0IGNvbnN0IExPQ0FMRV9ERUZBVUxUX0xPQ0FMRSA9IG5ldyBJbmplY3Rpb25Ub2tlbjxOdW1iZXJGb3JtYXRPcHRpb25zPignREVGQVVMVF9MT0NBTEUnKTtcbmV4cG9ydCBjb25zdCBMT0NBTEVfTEFOR19NQVBQSU5HID0gbmV3IEluamVjdGlvblRva2VuPEhhc2hNYXA8TG9jYWxlPj4oJ0xPQ0FMRV9MQU5HX01BUFBJTkcnKTtcbmV4cG9ydCBjb25zdCBMT0NBTEVfQ09ORklHID0gbmV3IEluamVjdGlvblRva2VuPEhhc2hNYXA8TG9jYWxlRm9ybWF0T3B0aW9ucz4+KCdMT0NBTEVfQ09ORklHJyk7XG5leHBvcnQgY29uc3QgTE9DQUxFX0NVUlJFTkNZX01BUFBJTkcgPSBuZXcgSW5qZWN0aW9uVG9rZW48SGFzaE1hcDxDdXJyZW5jeT4+KCdMT0NBTEVfQ1VSUkVOQ1lfTUFQUElORycpO1xuIl19 |
@@ -10,3 +10,3 @@ /** | ||
import { map, distinctUntilChanged, filter } from 'rxjs/operators'; | ||
import { isLocaleFormat } from './helpers'; | ||
import { isLocaleFormat, toDate } from './helpers'; | ||
import { getDefaultOptions } from './shared'; | ||
@@ -86,3 +86,3 @@ import { LOCALE_LANG_MAPPING, LOCALE_DEFAULT_LOCALE, LOCALE_CONFIG, LOCALE_CURRENCY_MAPPING } from './transloco-locale.config'; | ||
options = options ? options : getDefaultOptions(locale, 'date', this.localeConfig); | ||
return this.dateTransformer.transform(date, locale, options); | ||
return this.dateTransformer.transform(toDate(date), locale, options); | ||
} | ||
@@ -207,2 +207,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNsb2NvLWxvY2FsZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nbmVhdC90cmFuc2xvY28tbG9jYWxlLyIsInNvdXJjZXMiOlsibGliL3RyYW5zbG9jby1sb2NhbGUuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFhLE1BQU0sZUFBZSxDQUFDO0FBQzlELE9BQU8sRUFBRSxnQkFBZ0IsRUFBVyxNQUFNLG1CQUFtQixDQUFDO0FBQzlELE9BQU8sRUFBYyxlQUFlLEVBQWdCLE1BQU0sTUFBTSxDQUFDO0FBQ2pFLE9BQU8sRUFBRSxHQUFHLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDbkUsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQUMzQyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxVQUFVLENBQUM7QUFDN0MsT0FBTyxFQUNMLG1CQUFtQixFQUNuQixxQkFBcUIsRUFDckIsYUFBYSxFQUViLHVCQUF1QixFQUN4QixNQUFNLDJCQUEyQixDQUFDO0FBQ25DLE9BQU8sRUFDTCwwQkFBMEIsRUFDMUIsNEJBQTRCLEVBRzdCLE1BQU0saUNBQWlDLENBQUM7Ozs7O0FBTXpDLE1BQU0sT0FBTyxzQkFBc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5nLiBVU0QsIEVVUikuXHJcbmV4cG9ydCB0eXBlIEN1cnJlbmN5ID0gc3RyaW5nO1xyXG5cclxuZXhwb3J0IHR5cGUgVmFsaWREYXRlID0gRGF0ZSB8IHN0cmluZyB8IG51bWJlcjtcclxuIl19 |
@@ -9,3 +9,2 @@ /** | ||
import { isNil } from '@ngneat/transloco'; | ||
import { toDate } from '../helpers'; | ||
import { getDefaultOptions } from '../shared'; | ||
@@ -51,3 +50,3 @@ import { LOCALE_CONFIG } from '../transloco-locale.config'; | ||
* '2019-02-08' | translocoDate: { dateStyle: 'medium' } // Feb 8, 2019 | ||
* @param {?} value | ||
* @param {?} date | ||
* @param {?=} options | ||
@@ -70,3 +69,3 @@ * @param {?=} locale | ||
* '2019-02-08' | translocoDate: { dateStyle: 'medium' } // Feb 8, 2019 | ||
* @param {?} value | ||
* @param {?} date | ||
* @param {?=} options | ||
@@ -76,8 +75,8 @@ * @param {?=} locale | ||
*/ | ||
function (value, options, locale) { | ||
function (date, options, locale) { | ||
if (options === void 0) { options = {}; } | ||
if (isNil(value)) | ||
if (isNil(date)) | ||
return ''; | ||
locale = this.getLocale(locale); | ||
return this.translocoLocaleService.localizeDate(toDate(value), locale, tslib_1.__assign({}, getDefaultOptions(locale, 'date', this.localeConfig), options)); | ||
return this.translocoLocaleService.localizeDate(date, locale, tslib_1.__assign({}, getDefaultOptions(locale, 'date', this.localeConfig), options)); | ||
}; | ||
@@ -125,2 +124,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNsb2NvLWRhdGUucGlwZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ25lYXQvdHJhbnNsb2NvLWxvY2FsZS8iLCJzb3VyY2VzIjpbImxpYi9waXBlcy90cmFuc2xvY28tZGF0ZS5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLE9BQU8sRUFBRSxJQUFJLE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xvY2FsZUNvbmZpZyksXG4gICAgICAuLi5vcHRpb25zXG4gICAgfSk7XG4gIH1cblxuICBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICBzdXBlci5vbkRlc3Ryb3koKTtcbiAgfVxufVxuIl19 |
@@ -15,7 +15,7 @@ /** | ||
/** @type {?} */ | ||
var defaultConfig = localeConfig.global[type] || {}; | ||
var defaultConfig = localeConfig.global ? localeConfig.global[type] : {}; | ||
/** @type {?} */ | ||
var settings = localeConfig.localeBased[locale]; | ||
var settings = localeConfig.localeBased ? localeConfig.localeBased[locale] : {}; | ||
return settings && settings[type] ? tslib_1.__assign({}, defaultConfig, settings[type]) : defaultConfig; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhcmVkLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nbmVhdC90cmFuc2xvY28tbG9jYWxlLyIsInNvdXJjZXMiOlsibGliL3NoYXJlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFHQSxNQUFNLFVBQVUsaUJBQWlCLENBQUMsTUFBYyxFQUFFLElBQStCLEVBQUUsWUFBMEI7O1FBQ3JHLGFBQWEsR0FBRyxZQUFZLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxJQUFJLEVBQUU7O1FBQy9DLFFBQVEsR0FBRyxZQUFZLENBQUMsV0FBVyxDQUFDLE1BQU0sQ0FBQztJQUNqRCxPQUFPLFFBQVEsSUFBSSxRQUFRLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxzQkFBSyxhQUFhLEVBQUssUUFBUSxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQyxhQUFhLENBQUM7QUFDNUYsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IExvY2FsZSB9IGZyb20gJy4vdHJhbnNsb2NvLWxvY2FsZS50eXBlcyc7XHJcbmltcG9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UFNLENBQUMsQ0FBQyxDQUFDLENBQUMsRUFBRTtJQUNqRixPQUFPLFFBQVEsSUFBSSxRQUFRLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxzQkFBTSxhQUFhLEVBQUssUUFBUSxDQUFDLElBQUksQ0FBQyxFQUFHLENBQUMsQ0FBQyxhQUFhLENBQUM7QUFDOUYsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IExvY2FsZSB9IGZyb20gJy4vdHJhbnNsb2NvLWxvY2FsZS50eXBlcyc7XHJcbmltcG9ydCB7IExvY2FsZUZvcm1hdE9wdGlvbnMsIExvY2FsZUNvbmZpZyB9IGZyb20gJy4vdHJhbnNsb2NvLWxvY2FsZS5jb25maWcnO1xyXG5cclxuZXhwb3J0IGZ1bmN0aW9uIGdldERlZmF1bHRPcHRpb25zKGxvY2FsZTogTG9jYWxlLCB0eXBlOiBrZXlvZiBMb2NhbGVGb3JtYXRPcHRpb25zLCBsb2NhbGVDb25maWc6IExvY2FsZUNvbmZpZyk6IGFueSB7XHJcbiAgY29uc3QgZGVmYXVsdENvbmZpZyA9IGxvY2FsZUNvbmZpZy5nbG9iYWwgPyBsb2NhbGVDb25maWcuZ2xvYmFsW3R5cGVdIDoge307XHJcbiAgY29uc3Qgc2V0dGluZ3MgPSBsb2NhbGVDb25maWcubG9jYWxlQmFzZWQgPyBsb2NhbGVDb25maWcubG9jYWxlQmFzZWRbbG9jYWxlXSA6IHt9O1xyXG4gIHJldHVybiBzZXR0aW5ncyAmJiBzZXR0aW5nc1t0eXBlXSA/IHsgLi4uZGVmYXVsdENvbmZpZywgLi4uc2V0dGluZ3NbdHlwZV0gfSA6IGRlZmF1bHRDb25maWc7XHJcbn1cclxuIl19 |
@@ -27,5 +27,5 @@ /** | ||
if (false) { | ||
/** @type {?} */ | ||
/** @type {?|undefined} */ | ||
LocaleConfig.prototype.global; | ||
/** @type {?} */ | ||
/** @type {?|undefined} */ | ||
LocaleConfig.prototype.localeBased;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xuICBkZWZhdWx0TG9jYWxlOiAnZW4tVVMnLFxuICBsb2NhbGVUb0N1cnJlbmN5TWFwcGluZzogTE9DQUxFX0NVUlJFTkNZLFxuICBsYW5nVG9Mb2NhbGVNYXBwaW5nOiB7fVxufTtcblxuZXhwb3J0IGNvbnN0IExPQ0FMRV9ERUZBVUxUX0xPQ0FMRSA9IG5ldyBJbmplY3Rpb25Ub2tlbjxOdW1iZXJGb3JtYXRPcHRpb25zPignREVGQVVMVF9MT0NBTEUnKTtcbmV4cG9ydCBjb25zdCBMT0NBTEVfTEFOR19NQVBQSU5HID0gbmV3IEluamVjdGlvblRva2VuPEhhc2hNYXA8TG9jYWxlPj4oJ0xPQ0FMRV9MQU5HX01BUFBJTkcnKTtcbmV4cG9ydCBjb25zdCBMT0NBTEVfQ09ORklHID0gbmV3IEluamVjdGlvblRva2VuPEhhc2hNYXA8TG9jYWxlRm9ybWF0T3B0aW9ucz4+KCdMT0NBTEVfQ09ORklHJyk7XG5leHBvcnQgY29uc3QgTE9DQUxFX0NVUlJFTkNZX01BUFBJTkcgPSBuZXcgSW5qZWN0aW9uVG9rZW48SGFzaE1hcDxDdXJyZW5jeT4+KCdMT0NBTEVfQ1VSUkVOQ1lfTUFQUElORycpO1xuIl19 |
@@ -11,3 +11,3 @@ /** | ||
import { map, distinctUntilChanged, filter } from 'rxjs/operators'; | ||
import { isLocaleFormat } from './helpers'; | ||
import { isLocaleFormat, toDate } from './helpers'; | ||
import { getDefaultOptions } from './shared'; | ||
@@ -118,3 +118,3 @@ import { LOCALE_LANG_MAPPING, LOCALE_DEFAULT_LOCALE, LOCALE_CONFIG, LOCALE_CURRENCY_MAPPING } from './transloco-locale.config'; | ||
options = options ? options : getDefaultOptions(locale, 'date', this.localeConfig); | ||
return this.dateTransformer.transform(date, locale, options); | ||
return this.dateTransformer.transform(toDate(date), locale, options); | ||
}; | ||
@@ -278,2 +278,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW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gICovXHJcbiAgdGltZVpvbmU/OiBJbnRsLkRhdGVUaW1lRm9ybWF0T3B0aW9uc1sndGltZVpvbmUnXTtcclxuICAvKipcclxuICAgKiBUaGUgZm9ybWF0dGluZyBmb3IgdGhlIHRpbWUgem9uZSBuYW1lXHJcbiAgICovXHJcbiAgdGltZVpvbmVOYW1lPzogVGltZXpvbmVOYW1lRm9ybWF0cztcclxufVxyXG5cclxuLy9CQ1AgNDcgbG9jYWxlIHN0cmluZyAoZS5nLiBlbi1VUywgZXMtRVMpLlxyXG5leHBvcnQgdHlwZSBMb2NhbGUgPSBzdHJpbmc7XHJcblxyXG4vL0lTTyA0MjE3IGN1cnJlbmN5IHN0cmluZyAoZS5nLiBVU0QsIEVVUikuXHJcbmV4cG9ydCB0eXBlIEN1cnJlbmN5ID0gc3RyaW5nO1xyXG5cclxuZXhwb3J0IHR5cGUgVmFsaWREYXRlID0gRGF0ZSB8IHN0cmluZyB8IG51bWJlcjtcclxuIl19 |
import { BehaviorSubject } from 'rxjs'; | ||
import { map, distinctUntilChanged, filter } from 'rxjs/operators'; | ||
import { InjectionToken, Injectable, Inject, Pipe, ChangeDetectorRef, NgModule, defineInjectable, inject } from '@angular/core'; | ||
import { InjectionToken, Injectable, Inject, NgModule, Pipe, ChangeDetectorRef, defineInjectable, inject } from '@angular/core'; | ||
import { toNumber, TranslocoService, isNil } from '@ngneat/transloco'; | ||
@@ -129,5 +129,5 @@ | ||
/** @type {?} */ | ||
const defaultConfig = localeConfig.global[type] || {}; | ||
const defaultConfig = localeConfig.global ? localeConfig.global[type] : {}; | ||
/** @type {?} */ | ||
const settings = localeConfig.localeBased[locale]; | ||
const settings = localeConfig.localeBased ? localeConfig.localeBased[locale] : {}; | ||
return settings && settings[type] ? Object.assign({}, defaultConfig, settings[type]) : defaultConfig; | ||
@@ -921,3 +921,3 @@ } | ||
options = options ? options : getDefaultOptions(locale, 'date', this.localeConfig); | ||
return this.dateTransformer.transform(date, locale, options); | ||
return this.dateTransformer.transform(toDate(date), locale, options); | ||
} | ||
@@ -1122,3 +1122,3 @@ /** | ||
* '2019-02-08' | translocoDate: { dateStyle: 'medium' } // Feb 8, 2019 | ||
* @param {?} value | ||
* @param {?} date | ||
* @param {?=} options | ||
@@ -1128,7 +1128,7 @@ * @param {?=} locale | ||
*/ | ||
transform(value, options = {}, locale) { | ||
if (isNil(value)) | ||
transform(date, options = {}, locale) { | ||
if (isNil(date)) | ||
return ''; | ||
locale = this.getLocale(locale); | ||
return this.translocoLocaleService.localizeDate(toDate(value), locale, Object.assign({}, getDefaultOptions(locale, 'date', this.localeConfig), options)); | ||
return this.translocoLocaleService.localizeDate(date, locale, Object.assign({}, getDefaultOptions(locale, 'date', this.localeConfig), options)); | ||
} | ||
@@ -1135,0 +1135,0 @@ /** |
@@ -130,5 +130,5 @@ import { BehaviorSubject } from 'rxjs'; | ||
/** @type {?} */ | ||
var defaultConfig = localeConfig.global[type] || {}; | ||
var defaultConfig = localeConfig.global ? localeConfig.global[type] : {}; | ||
/** @type {?} */ | ||
var settings = localeConfig.localeBased[locale]; | ||
var settings = localeConfig.localeBased ? localeConfig.localeBased[locale] : {}; | ||
return settings && settings[type] ? __assign({}, defaultConfig, settings[type]) : defaultConfig; | ||
@@ -972,3 +972,3 @@ } | ||
options = options ? options : getDefaultOptions(locale, 'date', this.localeConfig); | ||
return this.dateTransformer.transform(date, locale, options); | ||
return this.dateTransformer.transform(toDate(date), locale, options); | ||
}; | ||
@@ -1257,3 +1257,3 @@ /** | ||
* '2019-02-08' | translocoDate: { dateStyle: 'medium' } // Feb 8, 2019 | ||
* @param {?} value | ||
* @param {?} date | ||
* @param {?=} options | ||
@@ -1276,3 +1276,3 @@ * @param {?=} locale | ||
* '2019-02-08' | translocoDate: { dateStyle: 'medium' } // Feb 8, 2019 | ||
* @param {?} value | ||
* @param {?} date | ||
* @param {?=} options | ||
@@ -1282,8 +1282,8 @@ * @param {?=} locale | ||
*/ | ||
function (value, options, locale) { | ||
function (date, options, locale) { | ||
if (options === void 0) { options = {}; } | ||
if (isNil(value)) | ||
if (isNil(date)) | ||
return ''; | ||
locale = this.getLocale(locale); | ||
return this.translocoLocaleService.localizeDate(toDate(value), locale, __assign({}, getDefaultOptions(locale, 'date', this.localeConfig), options)); | ||
return this.translocoLocaleService.localizeDate(date, locale, __assign({}, getDefaultOptions(locale, 'date', this.localeConfig), options)); | ||
}; | ||
@@ -1290,0 +1290,0 @@ /** |
import { ChangeDetectorRef, PipeTransform, OnDestroy } from '@angular/core'; | ||
import { LocaleConfig } from '../transloco-locale.config'; | ||
import { TranslocoLocaleService } from '../transloco-locale.service'; | ||
import { DateFormatOptions, Locale } from '../transloco-locale.types'; | ||
import { DateFormatOptions, Locale, ValidDate } from '../transloco-locale.types'; | ||
import { TranslocoLocalePipe } from './transloco-locale.pipe'; | ||
@@ -25,4 +25,4 @@ export declare class TranslocoDatePipe extends TranslocoLocalePipe implements PipeTransform, OnDestroy { | ||
*/ | ||
transform(value: Date | string | number, options?: DateFormatOptions, locale?: Locale): string; | ||
transform(date: ValidDate, options?: DateFormatOptions, locale?: Locale): string; | ||
ngOnDestroy(): void; | ||
} |
@@ -11,4 +11,4 @@ import { InjectionToken } from '@angular/core'; | ||
export interface LocaleConfig { | ||
global: LocaleFormatOptions; | ||
localeBased: HashMap<LocaleFormatOptions>; | ||
global?: LocaleFormatOptions; | ||
localeBased?: HashMap<LocaleFormatOptions>; | ||
} | ||
@@ -15,0 +15,0 @@ export interface TranslocoLocaleConfig { |
@@ -6,3 +6,3 @@ import { OnDestroy } from '@angular/core'; | ||
import { TranslocoDateTransformer, TranslocoNumberTransformer } from './transloco-locale.transformers'; | ||
import { Locale, DateFormatOptions, NumberTypes, Currency } from './transloco-locale.types'; | ||
import { Locale, DateFormatOptions, NumberTypes, Currency, ValidDate } from './transloco-locale.types'; | ||
export declare class TranslocoLocaleService implements OnDestroy { | ||
@@ -37,3 +37,3 @@ private translocoService; | ||
*/ | ||
localizeDate(date: Date, locale?: Locale, options?: DateFormatOptions): string; | ||
localizeDate(date: ValidDate, locale?: Locale, options?: DateFormatOptions): string; | ||
/** | ||
@@ -40,0 +40,0 @@ * Transform a number into the locale's number format according to the number type. |
@@ -122,1 +122,2 @@ export interface NumberFormatOptions { | ||
export declare type Currency = string; | ||
export declare type ValidDate = Date | string | number; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"TranslocoLocaleService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":21,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":32,"character":5},"arguments":[{"__symbolic":"reference","name":"LOCALE_LANG_MAPPING"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":33,"character":5},"arguments":[{"__symbolic":"reference","name":"LOCALE_DEFAULT_LOCALE"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":34,"character":5},"arguments":[{"__symbolic":"reference","name":"LOCALE_CONFIG"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":35,"character":5},"arguments":[{"__symbolic":"reference","name":"LOCALE_CURRENCY_MAPPING"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":36,"character":5},"arguments":[{"__symbolic":"reference","name":"TRANSLOCO_NUMBER_TRANSFORMER"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":37,"character":5},"arguments":[{"__symbolic":"reference","name":"TRANSLOCO_DATE_TRANSFORMER"}]}]],"parameters":[{"__symbolic":"reference","module":"@ngneat/transloco","name":"TranslocoService","line":31,"character":30},{"__symbolic":"reference","name":"HashMap","module":"@ngneat/transloco","arguments":[{"__symbolic":"reference","name":"Currency"}]},{"__symbolic":"reference","name":"Locale"},{"__symbolic":"reference","name":"LocaleConfig"},{"__symbolic":"reference","name":"HashMap","module":"@ngneat/transloco","arguments":[{"__symbolic":"reference","name":"Currency"}]},{"__symbolic":"reference","name":"TranslocoNumberTransformer"},{"__symbolic":"reference","name":"TranslocoDateTransformer"}]}],"getLocale":[{"__symbolic":"method"}],"setLocale":[{"__symbolic":"method"}],"localizeDate":[{"__symbolic":"method"}],"localizeNumber":[{"__symbolic":"method"}],"_resolveCurrencyCode":[{"__symbolic":"method"}],"toLocale":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"LocaleFormatOptions":{"__symbolic":"interface"},"LocaleConfig":{"__symbolic":"interface"},"TranslocoLocaleConfig":{"__symbolic":"interface"},"defaultConfig":{"localeConfig":{"global":{},"localeBased":{}},"defaultLocale":"en-US","langToLocaleMapping":{}},"LOCALE_DEFAULT_LOCALE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":34,"character":41},"arguments":["DEFAULT_LOCALE"]},"LOCALE_LANG_MAPPING":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":35,"character":39},"arguments":["LOCALE_LANG_MAPPING"]},"LOCALE_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":36,"character":33},"arguments":["LOCALE_CONFIG"]},"LOCALE_CURRENCY_MAPPING":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":37,"character":43},"arguments":["LOCALE_CURRENCY_MAPPING"]},"NumberFormatOptions":{"__symbolic":"interface"},"NumberTypes":{"__symbolic":"interface"},"DateFormatStyles":{"__symbolic":"interface"},"TimezoneNameFormats":{"__symbolic":"interface"},"DateStringFormats":{"__symbolic":"interface"},"DateNumberFormats":{"__symbolic":"interface"},"DateFormatOptions":{"__symbolic":"interface"},"Locale":{"__symbolic":"interface"},"Currency":{"__symbolic":"interface"},"pipes":[{"__symbolic":"reference","name":"TranslocoCurrencyPipe"},{"__symbolic":"reference","name":"TranslocoDatePipe"},{"__symbolic":"reference","name":"TranslocoDecimalPipe"},{"__symbolic":"reference","name":"TranslocoPercentPipe"}],"TranslocoLocaleModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":22,"character":1},"arguments":[{"declarations":{"__symbolic":"reference","name":"pipes"},"exports":{"__symbolic":"reference","name":"pipes"}}]}],"members":{},"statics":{"init":{"__symbolic":"function","parameters":["config"],"defaults":[{}],"value":{"ngModule":{"__symbolic":"reference","name":"TranslocoLocaleModule"},"providers":[{"provide":{"__symbolic":"reference","name":"LOCALE_LANG_MAPPING"},"useValue":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"langToLocaleMapping"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"defaultConfig"},"member":"langToLocaleMapping"}}},{"provide":{"__symbolic":"reference","name":"LOCALE_CONFIG"},"useValue":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"localeConfig"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"defaultConfig"},"member":"localeConfig"}}},{"provide":{"__symbolic":"reference","name":"LOCALE_CURRENCY_MAPPING"},"useValue":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"localeToCurrencyMapping"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"defaultConfig"},"member":"localeToCurrencyMapping"}}},{"provide":{"__symbolic":"reference","name":"LOCALE_DEFAULT_LOCALE"},"useValue":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"defaultLocale"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"defaultConfig"},"member":"defaultLocale"}}},{"provide":{"__symbolic":"reference","name":"TRANSLOCO_DATE_TRANSFORMER"},"useClass":{"__symbolic":"reference","name":"DefaultDateTransformer"}},{"provide":{"__symbolic":"reference","name":"TRANSLOCO_NUMBER_TRANSFORMER"},"useClass":{"__symbolic":"reference","name":"DefaultNumberTransformer"}}]}}}},"TranslocoDatePipe":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":9,"character":1},"arguments":[{"name":"translocoDate","pure":false}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":17,"character":5},"arguments":[{"__symbolic":"reference","name":"LOCALE_CONFIG"}]}]],"parameters":[{"__symbolic":"reference","name":"TranslocoLocaleService"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":16,"character":19},{"__symbolic":"reference","name":"LocaleConfig"}]}],"transform":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"TranslocoCurrencyPipe":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":8,"character":1},"arguments":[{"name":"translocoCurrency","pure":false}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":16,"character":5},"arguments":[{"__symbolic":"reference","name":"LOCALE_CONFIG"}]}]],"parameters":[{"__symbolic":"reference","name":"TranslocoLocaleService"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":15,"character":19},{"__symbolic":"reference","name":"LocaleConfig"}]}],"transform":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"TranslocoPercentPipe":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":8,"character":1},"arguments":[{"name":"translocoPercent","pure":false}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":16,"character":5},"arguments":[{"__symbolic":"reference","name":"LOCALE_CONFIG"}]}]],"parameters":[{"__symbolic":"reference","name":"TranslocoLocaleService"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":15,"character":19},{"__symbolic":"reference","name":"LocaleConfig"}]}],"transform":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"TranslocoDecimalPipe":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":8,"character":1},"arguments":[{"name":"translocoDecimal","pure":false}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":16,"character":5},"arguments":[{"__symbolic":"reference","name":"LOCALE_CONFIG"}]}]],"parameters":[{"__symbolic":"reference","name":"TranslocoLocaleService"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":15,"character":19},{"__symbolic":"reference","name":"LocaleConfig"}]}],"transform":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"TRANSLOCO_DATE_TRANSFORMER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":46},"arguments":["TRANSLOCO_DATE_TRANSFORMER"]},"TRANSLOCO_NUMBER_TRANSFORMER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":48},"arguments":["TRANSLOCO_NUMBER_TRANSFORMER"]},"TranslocoDateTransformer":{"__symbolic":"interface"},"TranslocoNumberTransformer":{"__symbolic":"interface"},"DefaultDateTransformer":{"__symbolic":"class","members":{"transform":[{"__symbolic":"method"}]}},"DefaultNumberTransformer":{"__symbolic":"class","members":{"transform":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TranslocoLocaleService"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":8,"character":87}]}],"getLocale":[{"__symbolic":"method"}],"onDestroy":[{"__symbolic":"method"}]}}},"origins":{"TranslocoLocaleService":"./lib/transloco-locale.service","LocaleFormatOptions":"./lib/transloco-locale.config","LocaleConfig":"./lib/transloco-locale.config","TranslocoLocaleConfig":"./lib/transloco-locale.config","defaultConfig":"./lib/transloco-locale.config","LOCALE_DEFAULT_LOCALE":"./lib/transloco-locale.config","LOCALE_LANG_MAPPING":"./lib/transloco-locale.config","LOCALE_CONFIG":"./lib/transloco-locale.config","LOCALE_CURRENCY_MAPPING":"./lib/transloco-locale.config","NumberFormatOptions":"./lib/transloco-locale.types","NumberTypes":"./lib/transloco-locale.types","DateFormatStyles":"./lib/transloco-locale.types","TimezoneNameFormats":"./lib/transloco-locale.types","DateStringFormats":"./lib/transloco-locale.types","DateNumberFormats":"./lib/transloco-locale.types","DateFormatOptions":"./lib/transloco-locale.types","Locale":"./lib/transloco-locale.types","Currency":"./lib/transloco-locale.types","pipes":"./lib/transloco-locale.module","TranslocoLocaleModule":"./lib/transloco-locale.module","TranslocoDatePipe":"./lib/pipes/transloco-date.pipe","TranslocoCurrencyPipe":"./lib/pipes/transloco-currency.pipe","TranslocoPercentPipe":"./lib/pipes/transloco-percent.pipe","TranslocoDecimalPipe":"./lib/pipes/transloco-decimal.pipe","TRANSLOCO_DATE_TRANSFORMER":"./lib/transloco-locale.transformers","TRANSLOCO_NUMBER_TRANSFORMER":"./lib/transloco-locale.transformers","TranslocoDateTransformer":"./lib/transloco-locale.transformers","TranslocoNumberTransformer":"./lib/transloco-locale.transformers","DefaultDateTransformer":"./lib/transloco-locale.transformers","DefaultNumberTransformer":"./lib/transloco-locale.transformers","ɵa":"./lib/pipes/transloco-locale.pipe"},"importAs":"@ngneat/transloco-locale"} | ||
{"__symbolic":"module","version":4,"metadata":{"TranslocoLocaleService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":21,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":32,"character":5},"arguments":[{"__symbolic":"reference","name":"LOCALE_LANG_MAPPING"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":33,"character":5},"arguments":[{"__symbolic":"reference","name":"LOCALE_DEFAULT_LOCALE"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":34,"character":5},"arguments":[{"__symbolic":"reference","name":"LOCALE_CONFIG"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":35,"character":5},"arguments":[{"__symbolic":"reference","name":"LOCALE_CURRENCY_MAPPING"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":36,"character":5},"arguments":[{"__symbolic":"reference","name":"TRANSLOCO_NUMBER_TRANSFORMER"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":37,"character":5},"arguments":[{"__symbolic":"reference","name":"TRANSLOCO_DATE_TRANSFORMER"}]}]],"parameters":[{"__symbolic":"reference","module":"@ngneat/transloco","name":"TranslocoService","line":31,"character":30},{"__symbolic":"reference","name":"HashMap","module":"@ngneat/transloco","arguments":[{"__symbolic":"reference","name":"Currency"}]},{"__symbolic":"reference","name":"Locale"},{"__symbolic":"reference","name":"LocaleConfig"},{"__symbolic":"reference","name":"HashMap","module":"@ngneat/transloco","arguments":[{"__symbolic":"reference","name":"Currency"}]},{"__symbolic":"reference","name":"TranslocoNumberTransformer"},{"__symbolic":"reference","name":"TranslocoDateTransformer"}]}],"getLocale":[{"__symbolic":"method"}],"setLocale":[{"__symbolic":"method"}],"localizeDate":[{"__symbolic":"method"}],"localizeNumber":[{"__symbolic":"method"}],"_resolveCurrencyCode":[{"__symbolic":"method"}],"toLocale":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"LocaleFormatOptions":{"__symbolic":"interface"},"LocaleConfig":{"__symbolic":"interface"},"TranslocoLocaleConfig":{"__symbolic":"interface"},"defaultConfig":{"localeConfig":{"global":{},"localeBased":{}},"defaultLocale":"en-US","langToLocaleMapping":{}},"LOCALE_DEFAULT_LOCALE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":34,"character":41},"arguments":["DEFAULT_LOCALE"]},"LOCALE_LANG_MAPPING":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":35,"character":39},"arguments":["LOCALE_LANG_MAPPING"]},"LOCALE_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":36,"character":33},"arguments":["LOCALE_CONFIG"]},"LOCALE_CURRENCY_MAPPING":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":37,"character":43},"arguments":["LOCALE_CURRENCY_MAPPING"]},"NumberFormatOptions":{"__symbolic":"interface"},"NumberTypes":{"__symbolic":"interface"},"DateFormatStyles":{"__symbolic":"interface"},"TimezoneNameFormats":{"__symbolic":"interface"},"DateStringFormats":{"__symbolic":"interface"},"DateNumberFormats":{"__symbolic":"interface"},"DateFormatOptions":{"__symbolic":"interface"},"Locale":{"__symbolic":"interface"},"Currency":{"__symbolic":"interface"},"ValidDate":{"__symbolic":"interface"},"pipes":[{"__symbolic":"reference","name":"TranslocoCurrencyPipe"},{"__symbolic":"reference","name":"TranslocoDatePipe"},{"__symbolic":"reference","name":"TranslocoDecimalPipe"},{"__symbolic":"reference","name":"TranslocoPercentPipe"}],"TranslocoLocaleModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":22,"character":1},"arguments":[{"declarations":{"__symbolic":"reference","name":"pipes"},"exports":{"__symbolic":"reference","name":"pipes"}}]}],"members":{},"statics":{"init":{"__symbolic":"function","parameters":["config"],"defaults":[{}],"value":{"ngModule":{"__symbolic":"reference","name":"TranslocoLocaleModule"},"providers":[{"provide":{"__symbolic":"reference","name":"LOCALE_LANG_MAPPING"},"useValue":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"langToLocaleMapping"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"defaultConfig"},"member":"langToLocaleMapping"}}},{"provide":{"__symbolic":"reference","name":"LOCALE_CONFIG"},"useValue":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"localeConfig"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"defaultConfig"},"member":"localeConfig"}}},{"provide":{"__symbolic":"reference","name":"LOCALE_CURRENCY_MAPPING"},"useValue":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"localeToCurrencyMapping"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"defaultConfig"},"member":"localeToCurrencyMapping"}}},{"provide":{"__symbolic":"reference","name":"LOCALE_DEFAULT_LOCALE"},"useValue":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"defaultLocale"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"defaultConfig"},"member":"defaultLocale"}}},{"provide":{"__symbolic":"reference","name":"TRANSLOCO_DATE_TRANSFORMER"},"useClass":{"__symbolic":"reference","name":"DefaultDateTransformer"}},{"provide":{"__symbolic":"reference","name":"TRANSLOCO_NUMBER_TRANSFORMER"},"useClass":{"__symbolic":"reference","name":"DefaultNumberTransformer"}}]}}}},"TranslocoDatePipe":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":8,"character":1},"arguments":[{"name":"translocoDate","pure":false}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":16,"character":5},"arguments":[{"__symbolic":"reference","name":"LOCALE_CONFIG"}]}]],"parameters":[{"__symbolic":"reference","name":"TranslocoLocaleService"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":15,"character":19},{"__symbolic":"reference","name":"LocaleConfig"}]}],"transform":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"TranslocoCurrencyPipe":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":8,"character":1},"arguments":[{"name":"translocoCurrency","pure":false}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":16,"character":5},"arguments":[{"__symbolic":"reference","name":"LOCALE_CONFIG"}]}]],"parameters":[{"__symbolic":"reference","name":"TranslocoLocaleService"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":15,"character":19},{"__symbolic":"reference","name":"LocaleConfig"}]}],"transform":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"TranslocoPercentPipe":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":8,"character":1},"arguments":[{"name":"translocoPercent","pure":false}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":16,"character":5},"arguments":[{"__symbolic":"reference","name":"LOCALE_CONFIG"}]}]],"parameters":[{"__symbolic":"reference","name":"TranslocoLocaleService"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":15,"character":19},{"__symbolic":"reference","name":"LocaleConfig"}]}],"transform":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"TranslocoDecimalPipe":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":8,"character":1},"arguments":[{"name":"translocoDecimal","pure":false}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":16,"character":5},"arguments":[{"__symbolic":"reference","name":"LOCALE_CONFIG"}]}]],"parameters":[{"__symbolic":"reference","name":"TranslocoLocaleService"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":15,"character":19},{"__symbolic":"reference","name":"LocaleConfig"}]}],"transform":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"TRANSLOCO_DATE_TRANSFORMER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":46},"arguments":["TRANSLOCO_DATE_TRANSFORMER"]},"TRANSLOCO_NUMBER_TRANSFORMER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":48},"arguments":["TRANSLOCO_NUMBER_TRANSFORMER"]},"TranslocoDateTransformer":{"__symbolic":"interface"},"TranslocoNumberTransformer":{"__symbolic":"interface"},"DefaultDateTransformer":{"__symbolic":"class","members":{"transform":[{"__symbolic":"method"}]}},"DefaultNumberTransformer":{"__symbolic":"class","members":{"transform":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TranslocoLocaleService"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":8,"character":87}]}],"getLocale":[{"__symbolic":"method"}],"onDestroy":[{"__symbolic":"method"}]}}},"origins":{"TranslocoLocaleService":"./lib/transloco-locale.service","LocaleFormatOptions":"./lib/transloco-locale.config","LocaleConfig":"./lib/transloco-locale.config","TranslocoLocaleConfig":"./lib/transloco-locale.config","defaultConfig":"./lib/transloco-locale.config","LOCALE_DEFAULT_LOCALE":"./lib/transloco-locale.config","LOCALE_LANG_MAPPING":"./lib/transloco-locale.config","LOCALE_CONFIG":"./lib/transloco-locale.config","LOCALE_CURRENCY_MAPPING":"./lib/transloco-locale.config","NumberFormatOptions":"./lib/transloco-locale.types","NumberTypes":"./lib/transloco-locale.types","DateFormatStyles":"./lib/transloco-locale.types","TimezoneNameFormats":"./lib/transloco-locale.types","DateStringFormats":"./lib/transloco-locale.types","DateNumberFormats":"./lib/transloco-locale.types","DateFormatOptions":"./lib/transloco-locale.types","Locale":"./lib/transloco-locale.types","Currency":"./lib/transloco-locale.types","ValidDate":"./lib/transloco-locale.types","pipes":"./lib/transloco-locale.module","TranslocoLocaleModule":"./lib/transloco-locale.module","TranslocoDatePipe":"./lib/pipes/transloco-date.pipe","TranslocoCurrencyPipe":"./lib/pipes/transloco-currency.pipe","TranslocoPercentPipe":"./lib/pipes/transloco-percent.pipe","TranslocoDecimalPipe":"./lib/pipes/transloco-decimal.pipe","TRANSLOCO_DATE_TRANSFORMER":"./lib/transloco-locale.transformers","TRANSLOCO_NUMBER_TRANSFORMER":"./lib/transloco-locale.transformers","TranslocoDateTransformer":"./lib/transloco-locale.transformers","TranslocoNumberTransformer":"./lib/transloco-locale.transformers","DefaultDateTransformer":"./lib/transloco-locale.transformers","DefaultNumberTransformer":"./lib/transloco-locale.transformers","ɵa":"./lib/pipes/transloco-locale.pipe"},"importAs":"@ngneat/transloco-locale"} |
{ | ||
"name": "@ngneat/transloco-locale", | ||
"version": "1.2.2", | ||
"version": "1.3.0", | ||
"description": "The localization (l10n) library plugin for Angular and Transloco", | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
760436
9203