feat(KAN-16): add English localization foundation
CI/CD / test_and_check_app (push) Successful in 4m9s
CI/CD / Publish immutable image (push) Skipped
CI/CD / Publish immutable image (pull_request) Canceled after 0s
CI/CD / test_and_check_app (pull_request) Canceled after 3m45s

This commit is contained in:
2026-09-09 14:02:20 +02:00
parent ceffe4f4a4
commit 5194ed0a17
11 changed files with 433 additions and 5 deletions
+10 -1
View File
@@ -4,6 +4,8 @@ import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers';
import type { DefineComponent } from 'vue';
import { createSSRApp, h } from 'vue';
import { renderToString } from 'vue/server-renderer';
import { createLocalization } from '@/lib/localization';
import type { LocalizationSettings } from '@/types/localization';
const appName = import.meta.env.VITE_APP_NAME || 'Laravel';
@@ -19,7 +21,14 @@ createServer(
import.meta.glob<DefineComponent>('./pages/**/*.vue'),
),
setup: ({ App, props, plugin }) =>
createSSRApp({ render: () => h(App, props) }).use(plugin),
createSSRApp({ render: () => h(App, props) })
.use(plugin)
.use(
createLocalization(
props.initialPage.props
.localization as LocalizationSettings,
),
),
}),
{ cluster: true },
);