When you add an image from an external URL, you may see this error:
Error: Invalid src prop (https://example.com/image.png) on `next/image`, hostname "example.com" is not configured under images in your `next.config.ts`
Next.js blocks external images for security. You need to whitelist the image domain.
Latch does not ship with a built-in i18n system. Instead, all display text lives inside the config/ directory as TypeScript files. To translate the site into any language, edit the values in those files.
1
Locate the config file for the page you want to translate
Open the config file and replace the English text with your translation. Only change the values β leave the property keys (left side) unchanged:
// BEFOREexport const homeConfig = { hero: { badge: "Trusted by 500+ Customers", title: "Premium Game Server Hosting", description: "High-performance hosting built for gamers.", },};// AFTER (Spanish example)export const homeConfig = { hero: { badge: "Con la confianza de mΓ‘s de 500 clientes", title: "Hosting Premium para Servidores de Juegos", description: "Hosting de alto rendimiento creado para jugadores.", },};
3
Translate UI text inside components (if needed)
Some labels, button text, and helper strings are hardcoded inside component files under components/. If you cannot find a piece of text in config/, search for it globally:
Press Ctrl + Shift + F (Windows) or Cmd + Shift + F (Mac)
Type the exact text you see on the page
Open the file that contains it and update the string
4
Translate SEO metadata
Page titles and meta descriptions are separately controlled in config/seo.ts. Make sure to translate those too so search engines index your site in the correct language.
To bulk-find all English strings at once, open Ctrl + Shift + H, set βfiles to includeβ to config/**/*.ts, and search/replace term by term.
Use VS Codeβs global search to find and replace across all files:Keyboard shortcut:Ctrl + Shift + H (Windows/Linux) or Cmd + Shift + H (Mac)Common replacements when setting up:
Find
Replace With
latch.gg
yourdomain.com
billing.latch.gg
billing.yourdomain.com
discord.gg/latch
discord.gg/yourserver
contact@latch.gg
contact@yourdomain.com
In the βfiles to includeβ field, enter config/**/*.ts to limit search to config files only.