fix(vite): we have to use en-US beacuse en-GB dose not exists
This commit is contained in:
parent
2e13943c5d
commit
b9e487171f
1 changed files with 8 additions and 8 deletions
|
@ -2,7 +2,7 @@ import { defineConfig } from 'vite';
|
||||||
import ViteReact from '@vitejs/plugin-react';
|
import ViteReact from '@vitejs/plugin-react';
|
||||||
import RubyPlugin from 'vite-plugin-ruby';
|
import RubyPlugin from 'vite-plugin-ruby';
|
||||||
import FullReload from 'vite-plugin-full-reload';
|
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 = [
|
const plugins = [
|
||||||
RubyPlugin(),
|
RubyPlugin(),
|
||||||
|
@ -10,13 +10,13 @@ const plugins = [
|
||||||
FullReload(
|
FullReload(
|
||||||
['config/routes.rb', 'app/views/**/*', 'app/components/**/*.haml'],
|
['config/routes.rb', 'app/views/**/*', 'app/components/**/*.haml'],
|
||||||
{ delay: 200 }
|
{ delay: 200 }
|
||||||
)
|
),
|
||||||
// {
|
{
|
||||||
// ...optimizeLocales.vite({
|
...optimizeLocales.vite({
|
||||||
// locales: ['en-GB', 'fr-FR']
|
locales: ['en-US', 'fr-FR']
|
||||||
// }),
|
}),
|
||||||
// enforce: 'pre' as const
|
enforce: 'pre' as const
|
||||||
// }
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
Loading…
Reference in a new issue