Skip to content

Commit

Permalink
config: update locale config (OlegShchavelev#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegShchavelev committed Aug 18, 2024
1 parent 02c37bd commit 40962bb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 24 deletions.
1 change: 0 additions & 1 deletion .vitepress/config/plugins/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export { NolebaseEnhancedReadabilitiesOptions } from './NolebaseEnhancedReadabilities/index'
export { NolebaseGitChangelogOptions } from './NolebaseGitChangelog/index'
export { VitePressSearchOptions } from './vitepress-search/index'
21 changes: 0 additions & 21 deletions .vitepress/config/plugins/vitepress-search/index.ts

This file was deleted.

19 changes: 17 additions & 2 deletions .vitepress/config/ru.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
import { defineConfigWithTheme } from 'vitepress'
import { nav, sidebar } from '../data/navigations'
import { packages } from '../../package-lock.json'
import { VitePressSearchOptions } from './plugins'

export const ru = defineConfigWithTheme({
lang: 'ru-RU',
themeConfig: {
search: {
options: VitePressSearchOptions
options: {
translations: {
button: {
buttonText: 'Поиск',
buttonAriaLabel: 'Поиск'
},
modal: {
noResultsText: 'Нет результатов по запросу',
resetButtonTitle: 'Сбросить',
footer: {
selectText: 'для выбора',
navigateText: 'для навигации',
closeText: 'закрыть'
}
}
}
}
},
nav: nav.root,
sidebar: sidebar.root,
Expand Down

0 comments on commit 40962bb

Please sign in to comment.