File tree 2 files changed +33
-0
lines changed
2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -56,3 +56,25 @@ export const ja = defineConfig({
56
56
returnToTopLabel : 'ページの先頭に戻る' ,
57
57
} ,
58
58
} ) ;
59
+
60
+ export const jaSearchLocale : NonNullable < DefaultTheme . LocalSearchOptions [ 'translations' ] > = {
61
+ button : {
62
+ buttonText : '検索' ,
63
+ buttonAriaLabel : '検索する' ,
64
+ } ,
65
+ modal : {
66
+ displayDetails : '詳細を表示' ,
67
+ resetButtonTitle : 'リセット' ,
68
+ backButtonTitle : '閉じる' ,
69
+ noResultsText : '該当する結果がありませんでした' ,
70
+ footer : {
71
+ selectText : 'で選択' ,
72
+ selectKeyAriaLabel : 'Enterキー' ,
73
+ navigateText : 'で移動' ,
74
+ navigateUpKeyAriaLabel : '上矢印キー' ,
75
+ navigateDownKeyAriaLabel : '下矢印キー' ,
76
+ closeText : 'で閉じる' ,
77
+ closeKeyAriaLabel : '閉じる' ,
78
+ } ,
79
+ } ,
80
+ } ;
Original file line number Diff line number Diff line change 1
1
import { defineConfig } from 'vitepress' ;
2
2
import aiscriptTmLanguage from 'aiscript-vscode/aiscript/syntaxes/aiscript.tmLanguage.json' with { type : 'json' } ;
3
+ import { jaSearchLocale } from './ja' ;
3
4
import { createPlaygroundTransformer } from '../scripts/playground-transformer' ;
4
5
5
6
// https://vitepress.dev/reference/site-config
@@ -12,6 +13,16 @@ export const shared = defineConfig({
12
13
socialLinks : [
13
14
{ icon : 'github' , link : 'https://github.com/aiscript-dev/aiscript' } ,
14
15
] ,
16
+ search : {
17
+ provider : 'local' ,
18
+ options : {
19
+ locales : {
20
+ ja : {
21
+ translations : jaSearchLocale ,
22
+ } ,
23
+ }
24
+ }
25
+ } ,
15
26
} ,
16
27
17
28
head : [
You can’t perform that action at this time.
0 commit comments