diff --git a/app/javascript/entrypoints/application.js b/app/javascript/entrypoints/application.js index 867cea059..779400478 100644 --- a/app/javascript/entrypoints/application.js +++ b/app/javascript/entrypoints/application.js @@ -8,6 +8,7 @@ import '@gouvfr/dsfr/dist/dsfr.module.js'; import '../shared/activestorage/ujs'; import '../shared/safari-11-empty-file-workaround'; import '../shared/toggle-target'; +import '../shared/intl-listformat'; import { registerControllers } from '../shared/stimulus-loader'; diff --git a/app/javascript/shared/intl-listformat.ts b/app/javascript/shared/intl-listformat.ts new file mode 100644 index 000000000..5beb754e0 --- /dev/null +++ b/app/javascript/shared/intl-listformat.ts @@ -0,0 +1,3 @@ +import '@formatjs/intl-listformat/polyfill'; +import '@formatjs/intl-listformat/locale-data/en'; +import '@formatjs/intl-listformat/locale-data/fr'; diff --git a/bun.lockb b/bun.lockb index d7ccf2ed0..47c7c9343 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index ece9900d4..d2aebbe26 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "@coldwired/react": "^0.15.1", "@coldwired/turbo-stream": "^0.15.1", "@coldwired/utils": "^0.13.0", + "@formatjs/intl-listformat": "^7.5.7", "@frsource/autoresize-textarea": "^2.0.82", "@gouvfr/dsfr": "^1.11.2", "@graphiql/plugin-explorer": "^3.1.0",