Going English-first (Removing the Chinese-specific Bits)
Biluo ships as a Traditional Chinese (zh-Hant) theme, but nothing about it is
locked to Chinese. This guide lists the few places to change to run an
English-first site — and what you can safely delete.
NOTE
The theme is single-locale: there’s no per-post language switcher. You’re switching the whole site to English, not adding a second language.
1. Switch the site locale#
Everything locale-related flows from src/i18n/ui.ts:
- Add an
enentry to theuiobject and translate the strings (they’re short UI labels — nav, search, pagination, post chrome). - Add
entolocaleTags, e.g.en: { html: 'en', og: 'en_US', intl: 'en', giscus: 'en' }. - Set
defaultLang = 'en'.
That single source of truth feeds <html lang>, og:locale, JSON-LD
inLanguage, and date formatting — so changing it here updates them everywhere.
While you’re in ui.ts, point license.url at the English CC deed (or your own
license) and translate license.fullName / license.contact.
2. Footnote labels#
The footnote section heading and back-link are localized in astro.config.mjs:
remarkRehype: {
footnoteLabel: 'Footnotes',
footnoteBackLabel: 'Back to content',
}
3. Callouts — nothing to do#
Callout titles (Note / Tip / Important / Warning / Caution) come from
remark-github-blockquote-alert and are already English by default. No
change needed.
4. Fonts (optional, but recommended for English-only)#
The CJK body font (Chiron GoRound TC) is only worth its bytes if you render Chinese. For an English-only site:
- In
src/styles/global.css, drop'Chiron GoRound TC WS'from the bodyfont-familystack, leaving'Nunito', sans-serif. Keep Monaspace Radon for code. - In
src/components/BaseHead.astro, remove the inlined CJK@font-facedeclarations, thepreloadfor the CJK slice, and thevf.cssstylesheet link. - Delete
public/fonts/chiron-go-round-tc-1.011/, and remove its entry fromNOTICEand the/fonts/*rule inpublic/_headersif it no longer applies.
TIP
Nunito (Latin) and Monaspace Radon (code) are also OFL fonts and stay. After removing Chiron you’ll ship noticeably fewer font bytes per page.
5. The obvious text#
Update src/consts.ts (title, description, author) and the src/pages/about.astro
copy to English. Then rebuild and skim the home, post, tags, and series pages.
That’s the whole list. Everything else in the theme is language-neutral.
本文屬於:Guides › Getting Started (English) › Basics