Translate the site's title #1557
Closed
zkvvoob
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
-
Starlight Documentation for this feature is available here but the change would be: import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
export default defineConfig({
integrations: [
starlight({
- title: 'My Docs',
+ title: {
+ en: 'My Docs',
+ 'zh-CN': '我的文档',
+ },
defaultLocale: 'en',
locales: {
en: { label: 'English' },
'zh-cn': { label: '简体中文', lang: 'zh-CN' },
},
}),
],
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of
starlight
are you using?0.20.1
What is your idea?
Would it be possible to localise/translate a site's title in the
astro.config.mjs
file, much like we can currently translate the sidebar items' labels?Why is this feature necessary?
Because keeping a Bulgarian title when switching to English makes little sense and is not particularly helpful to users.
Do you have examples of this feature in other projects?
No response
Participation
Beta Was this translation helpful? Give feedback.
All reactions