Fix moment locale stripping
This code has changed during the review to many forms, and I kinda remember this form was one of them :) Plus it addresses the issue of the fromNow
call (in the list of operations) not being translated.
@phyks, can you confirm this is correct? I'm not sure, but this might include other unrelated locales as fr-ca
, so maybe we'd need to work the regexp a bit more. However, replacing .json
by .js
didn't fix the issue, so I'm a bit confused.