@rspress/plugin-algolia 2.0.0-rc.1 → 2.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,3 +4,4 @@ export type Locales = Record<string, {
4
4
  placeholder: string;
5
5
  }>;
6
6
  export declare const ZH_LOCALES: Locales;
7
+ export declare const RU_LOCALES: Locales;
@@ -41,4 +41,47 @@ const ZH_LOCALES = {
41
41
  }
42
42
  }
43
43
  };
44
- export { ZH_LOCALES };
44
+ const RU_LOCALES = {
45
+ ru: {
46
+ placeholder: 'Поиск в документации',
47
+ translations: {
48
+ button: {
49
+ buttonText: 'Поиск',
50
+ buttonAriaLabel: 'Поиск'
51
+ },
52
+ modal: {
53
+ searchBox: {
54
+ clearButtonTitle: 'Очистить поиск',
55
+ clearButtonAriaLabel: 'Очистить поиск',
56
+ closeButtonText: 'Закрыть',
57
+ closeButtonAriaLabel: 'Закрыть'
58
+ },
59
+ startScreen: {
60
+ recentSearchesTitle: 'История поиска',
61
+ noRecentSearchesText: 'Нет истории поиска',
62
+ saveRecentSearchButtonTitle: 'Сохранить в истории поиска',
63
+ removeRecentSearchButtonTitle: 'Удалить из истории поиска',
64
+ favoriteSearchesTitle: 'Избранное',
65
+ removeFavoriteSearchButtonTitle: 'Удалить из избранного'
66
+ },
67
+ errorScreen: {
68
+ titleText: 'Невозможно получить результаты',
69
+ helpText: 'Проверьте подключение к Интернету'
70
+ },
71
+ footer: {
72
+ selectText: 'выбрать',
73
+ navigateText: 'перейти',
74
+ closeText: 'закрыть',
75
+ poweredByText: 'поиск от'
76
+ },
77
+ noResultsScreen: {
78
+ noResultsText: 'Ничего не найдено',
79
+ suggestedQueryText: 'Попробуйте изменить запрос',
80
+ reportMissingResultsText: 'Считаете, что результаты должны быть?',
81
+ reportMissingResultsLinkText: 'Сообщите об этом'
82
+ }
83
+ }
84
+ }
85
+ }
86
+ };
87
+ export { RU_LOCALES, ZH_LOCALES };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/plugin-algolia",
3
- "version": "2.0.0-rc.1",
3
+ "version": "2.0.0-rc.2",
4
4
  "description": "A plugin for rspress to search with algolia in docs.",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -38,19 +38,19 @@
38
38
  "@docsearch/react": "^4.3.2"
39
39
  },
40
40
  "devDependencies": {
41
- "@microsoft/api-extractor": "^7.55.0",
41
+ "@microsoft/api-extractor": "^7.55.2",
42
42
  "@rsbuild/plugin-react": "~1.4.2",
43
- "@rslib/core": "0.17.2",
43
+ "@rslib/core": "0.18.3",
44
44
  "@types/node": "^22.8.1",
45
- "@types/react": "^19.2.5",
45
+ "@types/react": "^19.2.7",
46
46
  "@types/react-dom": "^19.2.3",
47
- "react": "^19.2.0",
47
+ "react": "^19.2.1",
48
48
  "rsbuild-plugin-publint": "^0.3.3",
49
49
  "typescript": "^5.8.2",
50
50
  "@rspress/config": "1.0.0"
51
51
  },
52
52
  "peerDependencies": {
53
- "@rspress/core": "^2.0.0-rc.1"
53
+ "@rspress/core": "^2.0.0-rc.2"
54
54
  },
55
55
  "engines": {
56
56
  "node": ">=18.0.0"