i18n
Remove internationalization, added by vela enable i18n.
Syntax
$ vela disable i18n Options
-y, --yes- Skip the confirmation prompt
What it removes
The generated files:
wuchale.config.js
src/lib/url.ts
src/lib/components/language-select.svelte The wuchale and @wuchale/svelte packages are uninstalled, and the changes made to the rest of the project are reverted:
- The Wuchale plugin comes out of the Vite config, and the
$localesalias out of the SvelteKit config. - The Wuchale handle comes out of
src/hooks.server.ts. If nothing else is left in the file, it is deleted. - The de-localizing
reroutecomes out ofsrc/hooks.ts, leaving content negotiation’s reroute if it is composed with one. If nothing else is left in the file, it is deleted. - The
<html>tag insrc/app.htmlgoes back tolang="en". - The loader comes out of
src/routes/+layout.ts, leaving whatever else the file exports. If nothing else is left, it is deleted. - The language select comes out of the root layout.
- The Wuchale block comes out of
.gitignore.
What it leaves
src/locales, with your.pocatalogs and the loaders Wuchale generated. Delete it once you no longer need the translations.- The shadcn-svelte
selectcomponent — other code may use it - A
loadinsrc/routes/+layout.tswith code of its own besides the loader, arerouteinsrc/hooks.tsor ahandleinsrc/hooks.server.tsit can’t take apart. The file is left as it is, and the command prints what to remove by hand.