Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih committed Dec 6, 2024
1 parent ed80c62 commit c9a1d6f
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .vitepress/config/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,28 @@ const referenceNav: DefaultTheme.SidebarItem[] = [
{ text: '組み込み関数(Math)', link: 'std-math' },
];

export const jaSearchLocale: NonNullable<DefaultTheme.LocalSearchOptions['translations']> = {
button: {
buttonText: '検索',
buttonAriaLabel: '検索する',
},
modal: {
displayDetails: '詳細を表示',
resetButtonTitle: 'リセット',
backButtonTitle: '閉じる',
noResultsText: '該当する結果がありませんでした',
footer: {
selectText: 'で選択',
selectKeyAriaLabel: 'Enterキー',
navigateText: 'で移動',
navigateUpKeyAriaLabel: '上矢印キー',
navigateDownKeyAriaLabel: '下矢印キー',
closeText: 'で閉じる',
closeKeyAriaLabel: 'Escキー',
},
},
};

export const ja = defineConfig({
lang: 'ja-JP',
description: 'ブラウザで動く、ユーザースクリプト用言語',
Expand Down Expand Up @@ -56,25 +78,3 @@ export const ja = defineConfig({
returnToTopLabel: 'ページの先頭に戻る',
},
});

export const jaSearchLocale: NonNullable<DefaultTheme.LocalSearchOptions['translations']> = {
button: {
buttonText: '検索',
buttonAriaLabel: '検索する',
},
modal: {
displayDetails: '詳細を表示',
resetButtonTitle: 'リセット',
backButtonTitle: '閉じる',
noResultsText: '該当する結果がありませんでした',
footer: {
selectText: 'で選択',
selectKeyAriaLabel: 'Enterキー',
navigateText: 'で移動',
navigateUpKeyAriaLabel: '上矢印キー',
navigateDownKeyAriaLabel: '下矢印キー',
closeText: 'で閉じる',
closeKeyAriaLabel: 'Escキー',
},
},
};

0 comments on commit c9a1d6f

Please sign in to comment.