ensure locale is set from localizer before js env
ensure locale is set from localizer before js env

refs CORE-1465, refs CORE-1466

test plan:
- QA on beta:
  https://jcatibog.beta.instructure.com/courses/8392/quizzes/3613/edit
- RCE sidebar should be translated
- Date picker should work correctly

Change-Id: I7b0037d52634efb10d793a9d669f34c0bcd28660
Reviewed-on: https://gerrit.instructure.com/152023
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <9dff2e5c98626d20d2848250c411e8009465bb87@instructure.com>
Product-Review: Brent Burgoyne <bccf16d7abdd2611580b1cd7d7a6fcc150d619da@instructure.com>
QA-Review: Brent Burgoyne <bccf16d7abdd2611580b1cd7d7a6fcc150d619da@instructure.com>

sfu/canvas-lms,instructure/canvas-lms,instructure/canvas-lms,instructure/canvas-lms,sfu/canvas-lms,djbender/canvas-lms,djbender/canvas-lms,instructure/canvas-lms,djbender/canvas-lms,instructure/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,instructure/canvas-lms,instructure/canvas-lms,djbender/canvas-lms