Multilingual theme config: base theme and language overrides
9reads
Synopsis
Multilingual themes do not require duplicating the full Shiro configuration. The Simplified Chinese theme/yohaku serves as the sole base theme, handling colors, modules, CSS, icons, filing info, and link structure. Other languages only create corresponding copy overrides, such as theme/yohaku.en, theme/yohaku.zh-TW, theme/yohaku.ja (not jp), and theme/yohaku.ko. Override files retain only the footer.linkSections, config.hero.description, and config.hero.hitokoto.custom fields. Each language's linkSections must keep all three columns and links intact; when arrays merge by position, omitting a column leaves Chinese entries from the base theme behind. This way, style maintenance only requires editing the Chinese base theme, while other languages handle just the copy. The footer motto (footer_motto) on the left is not part of the theme JSON but belongs to the frontend language pack, so it remains unchanged for now.
Multi-language themes don't need to duplicate the entire shiro config. The Simplified Chinese theme/yohaku is the only base theme; it handles colors, modules, CSS, icons, ICP filing, and the link structure.
Other languages just create a corresponding copy override:
theme/yohaku.en
theme/yohaku.zh-TW
theme/yohaku.ja(note: it's not jp)
theme/yohaku.ko
Override files keep only these fields:
footer.linkSections
config.hero.description
config.hero.hitokoto.custom
Each language's linkSections must keep all three columns and their links intact; since arrays are merged by position, missing a column leaves the Chinese entries from the base theme in place. That way, style maintenance is always done in the Chinese base theme, and the other languages only maintain copy.
The footer motto on the left footer_motto isn't part of the theme JSON—it's frontend language-pack content, so we'll leave it as is for now.
Multilingual theme config: base theme and language overrides
Multi-language themes don't need to duplicate the entire shiro config. The Simplified Chinese theme/yohaku is the only base theme; it handles colors, modules, CSS, icons, ICP filing, and the link structure.
Other languages just create a corresponding copy override:
Override files keep only these fields:
Each language's linkSections must keep all three columns and their links intact; since arrays are merged by position, missing a column leaves the Chinese entries from the base theme in place. That way, style maintenance is always done in the Chinese base theme, and the other languages only maintain copy.
The footer motto on the left footer_motto isn't part of the theme JSON—it's frontend language-pack content, so we'll leave it as is for now.