-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plugin-search): add built-in locale data
- Loading branch information
1 parent
c838810
commit b645c24
Showing
9 changed files
with
62 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import type { ExactLocaleConfig } from '@vuepress/helper/client' | ||
import type { SearchPluginLocaleData } from '../shared/index.js' | ||
|
||
export type SearchPluginLocaleConfig = ExactLocaleConfig<SearchPluginLocaleData> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import type { DefaultLocaleInfo } from '@vuepress/helper' | ||
import type { SearchPluginLocaleData } from '../shared/index.js' | ||
|
||
/** | ||
* Default locale info for `@vuepress/plugin-search` | ||
*/ | ||
export const searchLocaleInfo: DefaultLocaleInfo<SearchPluginLocaleData> = [ | ||
[['en', 'en-US'], { placeholder: 'Search' }], | ||
[['zh', 'zh-CN', 'zh-Hans', 'zh-TW', 'zh-Hant'], { placeholder: '搜索' }], | ||
[['de', 'de-DE'], { placeholder: 'Suche' }], | ||
[['de-AT'], { placeholder: 'Suche' }], | ||
[['vi', 'vi-VN'], { placeholder: 'Tìm kiếm' }], | ||
[['uk'], { placeholder: 'Пошук' }], | ||
[['ru', 'ru-RU'], { placeholder: 'Поиск' }], | ||
[['br'], { placeholder: 'Pesquisar' }], | ||
[['pl', 'pl-PL'], { placeholder: 'Szukaj' }], | ||
[['sk', 'sk-SK'], { placeholder: 'Hľadať' }], | ||
[['fr', 'fr-FR'], { placeholder: 'Rechercher' }], | ||
[['es', 'es-ES'], { placeholder: 'Buscar' }], | ||
[['ja', 'ja-JP'], { placeholder: '検索' }], | ||
[['tr', 'tr-TR'], { placeholder: 'Ara' }], | ||
[['ko', 'ko-KO'], { placeholder: '검색' }], | ||
[['fi', 'fi-FI'], { placeholder: 'Etsi' }], | ||
[['hu', 'hu-HU'], { placeholder: 'Keresés' }], | ||
[['id', 'id-ID'], { placeholder: 'Cari sesuatu' }], | ||
[['nl', 'nl-NL'], { placeholder: 'Zoeken' }], | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export type * from './hotKey.js' | ||
export type * from './locales.js' | ||
export type * from './searchIndex.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export interface SearchPluginLocaleData { | ||
/** | ||
* The placeholder of the search box | ||
*/ | ||
placeholder: string | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.