canvas-lms/ui
Charley Kline a4c2ccc266 Temporary fix for dynamic import of locale files
Fixes FOO-4657
flag=none

The rspack upgrade changes how pathnames are mapped
for dynamic imports, which broke the language polyfill
code. I wasn't able to get all the way to the bottom
of what's going on; there is probably a better fix for
this (or maybe not!), but this makes the import more
explicit in a way that rspack clearly understands.

Will probably need to revisit this issue to clean up
the code and research exactly what is going. In the
mean time, this will do.

Test plan:
* Be in Google Chrome
* Set your user's language to Íslenska
* Reload the page with the browser console open
* You should see successful "polyfilled is for locale is"
  and not any "Cannot find module" errors

Change-Id: I6c42d3f80da01576d939f5d3b39f042ca1ef594c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/355131
Reviewed-by: Dustin Cowles <dustin.cowles@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-08-14 21:56:38 +00:00
..
boot Remove the learner passport prototype from Canvas 2024-08-13 20:19:22 +00:00
engine Temporary fix for dynamic import of locale files 2024-08-14 21:56:38 +00:00
ext Implementation of Hindi language 2024-07-22 20:51:37 +00:00
features Fix Sync to SIS in embedded Assign To for discussions 2024-08-14 20:03:55 +00:00
shared fix: account for div container during infinite scroll 2024-08-14 19:23:16 +00:00
.eslintrc.js support multiple entry bundles 2024-01-25 21:10:01 +00:00
.i18nrc Enable translation extraction from JSX 2023-08-08 16:17:36 +00:00
.xssignore finish colocating QUnit test files 2024-06-13 11:40:57 +00:00
api.d.ts Add Section to "Courses" pop out menu on the Global Navbar 2024-07-25 15:02:09 +00:00
featureBundles.ts Quick Wins - Publish/Unpublish menu 2024-06-24 18:40:44 +00:00
global.d.ts clean up global TS types 2024-08-13 17:15:39 +00:00
imports.d.ts move $.raw to independent function 2024-01-06 05:43:58 +00:00
index.ts Ensure all Canvas pages respond to LTI postMessages 2024-07-11 12:41:24 +00:00
loadLocale.ts ensure moment locale chunk names match include_head_js 2024-02-29 16:55:18 +00:00
setup-vitests.tsx Localize jest-fetch-mock usage 2023-11-20 17:42:32 +00:00