Fix the badge text label to show relative dates

This was broken when updating to the latest version of Moment.js, which
uses languages differently. The code is now cleaner since we can use a
different language locally without having to switch the global language
twice.