You can choose svelte prerocessor or sveltekit hooks
svelte.config.js
import { budouxPreprocess } from 'svelte-preprocess-budoux';
const config = {
preprocess: [
vitePreprocess(),
budouxPreprocess({ language: 'ja' }),
],
// ... other svelte options
};
export default config;
hooks.server.js
import { budouxHandle } from 'svelte-preprocess-budoux';
export const handle = budouxHandle({ language: 'ja' });