mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
feat(theme): add AppearanceText options
This commit is contained in:
parent
41a3744db2
commit
d98785ada7
@ -8,7 +8,7 @@ const theme = useThemeLocaleData()
|
||||
<template>
|
||||
<div v-if="theme.appearance" class="nav-screen-appearance">
|
||||
<p class="text">
|
||||
Appearance
|
||||
{{ theme.appearanceText ?? 'Appearance' }}
|
||||
</p>
|
||||
<SwitchAppearance />
|
||||
</div>
|
||||
|
||||
@ -11,6 +11,7 @@ const defaultLocales: NonNullable<PlumeThemeLocaleOptions['locales']> = {
|
||||
editLinkText: 'Edit this page',
|
||||
lastUpdatedText: 'Last Updated',
|
||||
contributorsText: 'Contributors',
|
||||
appearanceText: 'Appearance',
|
||||
},
|
||||
'zh-CN': {
|
||||
selectLanguageName: '简体中文',
|
||||
@ -23,6 +24,7 @@ const defaultLocales: NonNullable<PlumeThemeLocaleOptions['locales']> = {
|
||||
editLinkText: '编辑此页',
|
||||
contributorsText: '贡献者',
|
||||
lastUpdatedText: '上次更新',
|
||||
appearanceText: '外观',
|
||||
prevPageLabel: '上一页',
|
||||
nextPageLabel: '下一页',
|
||||
|
||||
|
||||
@ -116,6 +116,11 @@ export interface PlumeThemeLocaleData extends LocaleData {
|
||||
*/
|
||||
appearance?: boolean | 'dark'
|
||||
|
||||
/**
|
||||
* 深色模式切换按钮的文本
|
||||
*/
|
||||
appearanceText?: string
|
||||
|
||||
/**
|
||||
* 部署站点域名。
|
||||
* 用于生成 sitemap、 seo等。
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user