Merge pull request #3783 from kristinalim/fix/3782-missing_translation

3782 Fix missing translation in subscription update modal
This commit is contained in:
Luis Ramos
2019-05-23 18:45:20 +01:00
committed by GitHub

View File

@@ -6,5 +6,6 @@ angular.module("admin.subscriptions").controller "OrderUpdateIssuesController",
$scope.orderCycleCloses = (id) ->
closes_at = moment(OrderCycles.byID[id].orders_close_at)
text = if closes_at > moment() then t('js.closes') else t('js.closed')
key = if closes_at > moment() then "closes" else "closed"
text = t("js.subscriptions." + key)
"#{text} #{closes_at.fromNow()}"