Merge pull request #10599 from tchak/fix-vite-build-optimization

fix(vite): we have to use en-US beacuse en-GB dose not exists
This commit is contained in:
Paul Chavard 2024-07-15 08:09:08 +00:00 committed by GitHub
commit ef93d4f89c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,7 +2,7 @@ import { defineConfig } from 'vite';
import ViteReact from '@vitejs/plugin-react';
import RubyPlugin from 'vite-plugin-ruby';
import FullReload from 'vite-plugin-full-reload';
//import optimizeLocales from '@react-aria/optimize-locales-plugin';
import optimizeLocales from '@react-aria/optimize-locales-plugin';
const plugins = [
RubyPlugin(),
@ -10,13 +10,13 @@ const plugins = [
FullReload(
['config/routes.rb', 'app/views/**/*', 'app/components/**/*.haml'],
{ delay: 200 }
)
// {
// ...optimizeLocales.vite({
// locales: ['en-GB', 'fr-FR']
// }),
// enforce: 'pre' as const
// }
),
{
...optimizeLocales.vite({
locales: ['en-US', 'fr-FR']
}),
enforce: 'pre' as const
}
];
export default defineConfig({