Websites, apps & code / Building websites

Add a language switcher

Your page has one language and you want a switcher for Chinese, English or Malay.

Fill in your details

Leave blank to use the example. Names are remembered for other prompts too (stored only on your device).

Variation:Languages to add

Prompt

Please add a language switcher to my existing page.

Page content:
(paste the HTML or list all the text)
Must not change: Shop name, phone number, price figures
Languages to add: The page needs Simplified Chinese and English with a switcher at the top right.

Requirements:
1. First ask me 3–5 questions you need answered, then list your plan (what you will and will not build, and any cost). Do not write code until I say OK.
2. Keep it simple: put all text in one clear list so I can edit translations later.
3. Remember the choice (on this device only) and default to the language I pick.
4. Translations should sound natural and local, not word for word; mark anything unsure as [PLEASE CHECK] so someone can review.
5. Do not translate or alter shop names, phone numbers, prices or addresses.
6. Update the page lang attribute as well for search and screen readers.
7. Never put passwords, API keys or bank details in the code; if something like that is needed, keep it in a .env file or environment variable and remind me not to upload or share it.

Paste it into ChatGPT, Gemini, Claude or Meta AI.

Test result

Run on 2026-12-01 with Claude Sonnet 5.5 (variation: Chinese + English), using the example details above. AI never answers word for word the same twice, but the shape stays close.

What we noticed

The sample only had a paste placeholder, so I translated nothing and gave only questions and a plan.

See what the AI actually wrote

Hi, I have not seen your page yet. What you gave is a placeholder: "(paste the page HTML, or list all the text)". There is no real content, so I cannot list the sentences to translate and I will not guess. Below are my questions and a plan; I will write code once you say OK.

Questions

  1. Please paste the page HTML or all its text.
  2. Which language is the default, Chinese or English? Should a first-time visitor whose phone is in English automatically get English, or always Chinese first?
  3. Is a switch at the top right labelled "中 / EN" fine?
  4. Are there longer passages such as menu descriptions or an intro? I will translate those into natural phrasing, not word for word.
  5. Which text must not change? You already said shop name, phone number, price figures and address. Anything else?

Plan

  • Will do: put all text into one clear list in the page (a Chinese column and an English column), so you can edit translations later by editing the list. After switching, the choice is remembered in the browser, on this device only. The page's lang attribute switches with the language (zh-Hans for Chinese, en for English) for search and screen readers.
  • Will not touch: shop name, phone, prices and address, kept exactly as they are.
  • Translation: natural local phrasing, for example Chinese "打包" becomes "takeaway" rather than a literal rendering. Anything unsure is marked 【请确认】 for someone to check.
  • Will not build: online translation services, login, data collection. Cost RM0; no passwords or keys.

Paste the page content and say OK, and I will start writing.

AI tools that suit this

  • Claude Suggested tool Free plan

    Strong at long documents, editing and code

  • ChatGPT Suggested tool Free plan

    The most widely used AI chat, for writing, questions and images

  • Gemini Suggested tool Free plan

    Google's AI; generates and edits images, works with Gmail and Docs

  • DeepL Suggested tool Free plan

    Natural-sounding translation

Recommendations only, not sponsored. Check each site for what the free plan includes.

This site is made by FullMark Tech

Want your own website, or your shop spreadsheets automated? FullMark Tech builds business websites and custom Excel tools.

Ask on WhatsApp See FullMark Tech services