@rspress/plugin-api-docgen 1.43.0 → 1.43.1

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.
Files changed (2) hide show
  1. package/dist/index.js +22 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -99,6 +99,22 @@ var __webpack_exports__ = {};
99
99
  type: 'Type',
100
100
  defaultValue: 'Default Value',
101
101
  overview: 'Overview'
102
+ },
103
+ ru: {
104
+ copy: 'Копировать',
105
+ copied: 'Скопировано успешно',
106
+ expand: 'Развернуть код',
107
+ collapse: 'Свернуть код',
108
+ className: 'Имя класса узла',
109
+ style: 'Стиль узла',
110
+ children: 'Дочерние элементы',
111
+ disabled: 'Отключено',
112
+ required: 'Обязательно',
113
+ property: 'Свойство',
114
+ description: 'Описание',
115
+ type: 'Тип',
116
+ defaultValue: 'Значение по умолчанию',
117
+ overview: 'Обзор'
102
118
  }
103
119
  };
104
120
  const isToolEntries = (obj)=>!!obj.documentation || !!obj["react-docgen-typescript"];
@@ -257,8 +273,12 @@ var __webpack_exports__ = {};
257
273
  async beforeBuild (config, isProd) {
258
274
  var _config_themeConfig_locales, _config_themeConfig, _config_locales;
259
275
  const languages = ((null === (_config_themeConfig = config.themeConfig) || void 0 === _config_themeConfig ? void 0 : null === (_config_themeConfig_locales = _config_themeConfig.locales) || void 0 === _config_themeConfig_locales ? void 0 : _config_themeConfig_locales.map((locale)=>locale.lang)) || (null === (_config_locales = config.locales) || void 0 === _config_locales ? void 0 : _config_locales.map((locale)=>locale.lang)) || [
260
- config.lang
261
- ]).filter((lang)=>'zh' === lang || 'en' === lang);
276
+ config.lang || 'en'
277
+ ]).filter((lang)=>[
278
+ 'zh',
279
+ 'en',
280
+ 'ru'
281
+ ].includes(lang));
262
282
  await docgen({
263
283
  entries,
264
284
  apiParseTool,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/plugin-api-docgen",
3
- "version": "1.43.0",
3
+ "version": "1.43.1",
4
4
  "description": "A plugin for rspress to generate api doc.",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -23,7 +23,7 @@
23
23
  "react-docgen-typescript": "2.2.2",
24
24
  "react-markdown": "8.0.7",
25
25
  "remark-gfm": "3.0.1",
26
- "@rspress/shared": "1.43.0"
26
+ "@rspress/shared": "1.43.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@microsoft/api-extractor": "^7.49.2",
@@ -40,7 +40,7 @@
40
40
  "unist-util-visit": "^4.1.2"
41
41
  },
42
42
  "peerDependencies": {
43
- "@rspress/core": "^1.43.0",
43
+ "@rspress/core": "^1.43.1",
44
44
  "react": ">=17.0.0",
45
45
  "react-router-dom": "^6.8.1",
46
46
  "typescript": "^5.5.3"