From 6f7fbd8b68b4be6a9c6b61bea822b0d6fcede382 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Thu, 29 Feb 2024 09:33:02 -0700 Subject: [PATCH] ensure moment locale chunk names match include_head_js refs FOO-4299 Change-Id: I75b914f9243f347cd16ca233867ed89b14190007 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/341765 Reviewed-by: Aaron Shafovaloff QA-Review: Aaron Shafovaloff Product-Review: Aaron Shafovaloff Tested-by: Service Cloud Jenkins --- ui/loadLocale.ts | 42 +++++++++++++----------------------------- 1 file changed, 13 insertions(+), 29 deletions(-) diff --git a/ui/loadLocale.ts b/ui/loadLocale.ts index 2333c76117b..1128ba178aa 100644 --- a/ui/loadLocale.ts +++ b/ui/loadLocale.ts @@ -392,68 +392,52 @@ export default function loadLocale(locale: string) { return import(/* webpackChunkName: "moment/locale/zh-tw" */ 'moment/locale/zh-tw') case 'moment/locale/ca': - return import( - /* webpackChunkName: "ext/custom_moment_locales/ca" */ './ext/custom_moment_locales/ca' - ) + return import(/* webpackChunkName: "moment/locale/ca" */ './ext/custom_moment_locales/ca') case 'moment/locale/de': - return import( - /* webpackChunkName: "ext/custom_moment_locales/de" */ './ext/custom_moment_locales/de' - ) + return import(/* webpackChunkName: "moment/locale/de" */ './ext/custom_moment_locales/de') case 'moment/locale/fa': - return import( - /* webpackChunkName: "ext/custom_moment_locales/fa" */ './ext/custom_moment_locales/fa' - ) + return import(/* webpackChunkName: "moment/locale/fa" */ './ext/custom_moment_locales/fa') case 'moment/locale/fr': - return import( - /* webpackChunkName: "ext/custom_moment_locales/fr" */ './ext/custom_moment_locales/fr' - ) + return import(/* webpackChunkName: "moment/locale/fr" */ './ext/custom_moment_locales/fr') case 'moment/locale/fr-ca': return import( - /* webpackChunkName: "ext/custom_moment_locales/fr-ca" */ './ext/custom_moment_locales/fr_ca' + /* webpackChunkName: "moment/locale/fr-ca" */ './ext/custom_moment_locales/fr_ca' ) case 'moment/locale/he': - return import( - /* webpackChunkName: "ext/custom_moment_locales/he" */ './ext/custom_moment_locales/he' - ) + return import(/* webpackChunkName: "moment/locale/he" */ './ext/custom_moment_locales/he') case 'moment/locale/ht-ht': return import( - /* webpackChunkName: "ext/custom_moment_locales/ht-ht" */ './ext/custom_moment_locales/ht_ht' + /* webpackChunkName: "moment/locale/ht-ht" */ './ext/custom_moment_locales/ht_ht' ) case 'moment/locale/hy-am': return import( - /* webpackChunkName: "ext/custom_moment_locales/hy-am" */ './ext/custom_moment_locales/hy_am' + /* webpackChunkName: "moment/locale/hy-am" */ './ext/custom_moment_locales/hy_am' ) case 'moment/locale/mi-nz': return import( - /* webpackChunkName: "ext/custom_moment_locales/mi-nz" */ './ext/custom_moment_locales/mi_nz' + /* webpackChunkName: "moment/locale/mi-nz" */ './ext/custom_moment_locales/mi_nz' ) case 'moment/locale/pl': - return import( - /* webpackChunkName: "ext/custom_moment_locales/pl" */ './ext/custom_moment_locales/pl' - ) + return import(/* webpackChunkName: "moment/locale/pl" */ './ext/custom_moment_locales/pl') case 'moment/locale/sl': - return import( - /* webpackChunkName: "ext/custom_moment_locales/sl" */ './ext/custom_moment_locales/sl' - ) + return import(/* webpackChunkName: "moment/locale/sl" */ './ext/custom_moment_locales/sl') case 'moment/locale/ja': - return import( - /* webpackChunkName: "ext/custom_moment_locales/ja" */ './ext/custom_moment_locales/ja' - ) + return import(/* webpackChunkName: "moment/locale/ja" */ './ext/custom_moment_locales/ja') case 'moment/locale/zh-cn': return import( - /* webpackChunkName: "ext/custom_moment_locales/zh-cn" */ './ext/custom_moment_locales/zh_cn' + /* webpackChunkName: "moment/locale/zh-cn" */ './ext/custom_moment_locales/zh_cn' ) default: