diff --git a/jslib b/jslib index 38c26d9649f..5571fbe8bfc 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 38c26d9649f613e4f8987e4e4727a0e90a21233b +Subproject commit 5571fbe8bfc50d1ab56118607a9ad0d8d10d59d5 diff --git a/src/popup/settings/premium.component.ts b/src/popup/settings/premium.component.ts index c5cbce75240..f2f959a815e 100644 --- a/src/popup/settings/premium.component.ts +++ b/src/popup/settings/premium.component.ts @@ -1,3 +1,4 @@ +import { CurrencyPipe } from '@angular/common'; import { Component } from '@angular/core'; import { ToasterService } from 'angular2-toaster'; @@ -19,13 +20,15 @@ export class PremiumComponent extends BasePremiumComponent { constructor(analytics: Angulartics2, toasterService: ToasterService, i18nService: I18nService, platformUtilsService: PlatformUtilsService, - tokenService: TokenService, apiService: ApiService) { + tokenService: TokenService, apiService: ApiService, + private currencyPipe: CurrencyPipe) { super(analytics, toasterService, i18nService, platformUtilsService, tokenService, apiService); // Support old price string. Can be removed in future once all translations are properly updated. - this.priceString = i18nService.t('premiumPrice', this.price); + const thePrice = this.currencyPipe.transform(this.price, '$'); + this.priceString = i18nService.t('premiumPrice', thePrice); if (this.priceString.indexOf('%price%') > -1) { - this.priceString = this.priceString.replace('%price%', this.price); + this.priceString = this.priceString.replace('%price%', thePrice); } } }