Updates fee levels strings for translate
This commit is contained in:
parent
69852fe0ed
commit
aa3870a831
3 changed files with 10 additions and 3 deletions
|
|
@ -81,7 +81,7 @@
|
|||
<span translate>Bitcoin Network Fee Policy</span>
|
||||
<span class="right text-gray">
|
||||
<i class="icon-arrow-right3 size-24 right"></i>
|
||||
<span class="text-capitalize">{{index.currentFeeLevel}}</span>
|
||||
<span class="text-capitalize">{{index.currentFeeLevel|translate}}</span>
|
||||
</span>
|
||||
</li>
|
||||
<li class="line-b p20" ng-click="$root.go('preferencesBwsUrl')">
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<ul class="no-bullet m0 size-14">
|
||||
<li ng-repeat="fee in (index.network == 'livenet' ? index.feeLevels.livenet : index.feeLevels.testnet)"
|
||||
ng-click="prefFee.save(fee.level)" class="line-b p20">
|
||||
<span class="text-capitalize">{{fee.level}}</span>
|
||||
<span class="text-capitalize">{{fee.level|translate}}</span>
|
||||
<i class="fi-check size-16 right" ng-show="index.currentFeeLevel == fee.level"></i>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,15 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.services').factory('feeService', function($log, profileService, configService) {
|
||||
angular.module('copayApp.services').factory('feeService', function($log, profileService, configService, gettextCatalog) {
|
||||
var root = {};
|
||||
|
||||
// Constant fee options to translate
|
||||
var feeOpts = [
|
||||
gettextCatalog.getString('priority'),
|
||||
gettextCatalog.getString('normal'),
|
||||
gettextCatalog.getString('economy')
|
||||
];
|
||||
|
||||
root.getCurrentFeeValue = function(cb) {
|
||||
var fc = profileService.focusedClient;
|
||||
var config = configService.getSync().wallet.settings;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue