I18n title
in astro config
#989
Closed
mrzachnugent
started this conversation in
Feature Requests
Replies: 1 comment
-
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.
0 replies
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.11.1
What is your idea?
In the astro config, it would be nice to have I18n for the
title
Something like
Why is this feature necessary?
This feature would help with internationalization right out of the box.
Do you have examples of this feature in other projects?
Participation
Beta Was this translation helpful? Give feedback.
All reactions