Untranslatable stings in JS files in ecommerce

Description

There are a few issues with the https://github.com/edx/ecommerce/blob/open-release/ironwood.master/ecommerce/static/js/views/offer_view.js file that does not allow us to use coupons properly in any other language than English.

For example (from line 104 to 114)
formatDate: function(course) {
var courseStartDateText = gettext(_s.sprintf('Course starts: %s',
moment(course.get('course_start_date')).format('MMM DD, YYYY'))),
voucherEndDateText = gettext(_s.sprintf('Discount valid until %s',
moment(course.get('voucher_end_date')).format('MMM DD, YYYY')));

course.set({
course_start_date_text: courseStartDateText,
voucher_end_date_text: voucherEndDateText
});
},

As you can see in the screenshot I attached, the course_start_date_text and the voucher_end_date_text are in English but some other parts are in French (the Now has been replaced with Maintenant). Some other parts are also in English and I can't figure out right now where they are added in the file (see the 100% OFF and the Enroll Now that are still in English).

As we do cater to francophone and anglophone users, we need these dates and buttons to be available in French and English. In these cases, this does not seem like django.po or djangojs.po issues where the translatation are missing because the English original text isn't in the django.po or djangojs.po files.

Steps to Reproduce

None

Status

Assignee

Unassigned

Reporter

Pierre Mailhot

Labels

None

Priority

Unset
Configure