Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

feat: add Russian translation support (#2248)

Niyaz Leushkin87e0f8488006
diff --git a/examples/src/plugins/debugger/controllers/menu.ts b/examples/src/plugins/debugger/controllers/menu.ts
index c86fd627ab..14849ee7d9 100644
--- a/examples/src/plugins/debugger/controllers/menu.ts
+++ b/examples/src/plugins/debugger/controllers/menu.ts
@@ -47,6 +47,10 @@ export function LocaleMenuItemFactory(accessor: IAccessor): IMenuSelectorItem {
label: '简体中文',
value: LocaleType.ZH_CN,
},
+ {
+ label: 'Русский',
+ value: LocaleType.RU_RU,
+ },
],
};
}
diff --git a/examples/src/sheets/locales.ts b/examples/src/sheets/locales.ts
index 1db04fc93e..9f43626e41 100644
--- a/examples/src/sheets/locales.ts
+++ b/examples/src/sheets/locales.ts
@@ -15,17 +15,18 @@
*/
import { LocaleType, Tools } from '@univerjs/core';
-import { enUS as UniverDesignEnUS } from '@univerjs/design';
-import { enUS as UniverDocsUIEnUS } from '@univerjs/docs-ui';
-import { enUS as UniverSheetsEnUS } from '@univerjs/sheets';
-import { enUS as UniverSheetsUIEnUS } from '@univerjs/sheets-ui';
-import { enUS as UniverFindReplaceEnUS } from '@univerjs/find-replace';
-import { enUS as UniverSheetsFormulaEnUS } from '@univerjs/sheets-formula';
-import { enUS as UniverSheetsDataValidationEnUS } from '@univerjs/sheets-data-validation';
-import { enUS as UniverSheetsConditionalFormattingUIEnUS } from '@univerjs/sheets-conditional-formatting-ui';
-import { enUS as UniverSheetsZenEditorEnUS } from '@univerjs/sheets-zen-editor';
-import { enUS as UniverUIEnUS } from '@univerjs/ui';
-import { enUS as UniverSheetsFilterUIEnUS } from '@univerjs/sheets-filter-ui';
+import { enUS as UniverDesignEnUS, ruRU as UniverDesignRuRU } from '@univerjs/design';
+import { enUS as UniverDocsUIEnUS, ruRU as UniverDocsUIRuRU } from '@univerjs/docs-ui';
+import { enUS as UniverSheetsEnUS, ruRU as UniverSheetsRuRU } from '@univerjs/sheets';
+import { enUS as UniverSheetsUIEnUS, ruRU as UniverSheetsUIRuRU } from '@univerjs/sheets-ui';
+import { enUS as UniverFindReplaceEnUS, ruRU as UniverFindReplaceRuRU } from '@univerjs/find-replace';
+import { enUS as UniverSheetsFormulaEnUS, ruRU as UniverSheetsFormulaRuRU } from '@univerjs/sheets-formula';
+import { enUS as UniverSheetsDataValidationEnUS, ruRU as UniverSheetsDataValidationRuRU } from '@univerjs/sheets-data-validation';
+import { enUS as UniverSheetsConditionalFormattingUIEnUS, ruRU as UniverSheetsConditionalFormattingUIRuRU } from '@univerjs/sheets-conditional-formatting-ui';
+import { enUS as UniverSheetsZenEditorEnUS, ruRU as UniverSheetsZenEditorRuRU } from '@univerjs/sheets-zen-editor';
+import { enUS as UniverUIEnUS, ruRU as UniverUIRuRU } from '@univerjs/ui';
+import { enUS as UniverSheetsFilterUIEnUS, ruRU as UniverSheetsFilterUIRuRU } from '@univerjs/sheets-filter-ui';
+
export const locales = {
[LocaleType.EN_US]: Tools.deepMerge(
@@ -41,4 +42,17 @@ export const locales = {
UniverDesignEnUS,
UniverSheetsFilterUIEnUS
),
+ [LocaleType.RU_RU]: Tools.deepMerge(
+ UniverSheetsRuRU,
+ UniverDocsUIRuRU,
+ UniverFindReplaceRuRU,
+ UniverSheetsUIRuRU,
+ UniverSheetsFormulaRuRU,
+ UniverSheetsDataValidationRuRU,
+ UniverSheetsConditionalFormattingUIRuRU,
+ UniverSheetsZenEditorRuRU,
+ UniverUIRuRU,
+ UniverDesignRuRU,
+ UniverSheetsFilterUIRuRU
+ ),
};
diff --git a/packages/core/src/types/enum/locale-type.ts b/packages/core/src/types/enum/locale-type.ts
index b574765118..5b12424c3b 100644
--- a/packages/core/src/types/enum/locale-type.ts
+++ b/packages/core/src/types/enum/locale-type.ts
@@ -17,6 +17,7 @@
export enum LocaleType {
EN_US = 'enUS',
ZH_CN = 'zhCN',
+ RU_RU = 'ruRU',
}
export type LocaleTypes = `${LocaleType}`;
diff --git a/packages/design/src/index.ts b/packages/design/src/index.ts
index daf8ac2311..221b15bc5c 100644
--- a/packages/design/src/index.ts
+++ b/packages/design/src/index.ts
@@ -57,7 +57,7 @@ export { type ISegmentedProps, Segmented } from './components/segmented';
export { type ISliderProps, Slider } from './components/slider';
export { type ITooltipProps, Tooltip } from './components/tooltip';
export { type ITreeNodeProps, type ITreeProps, Tree, TreeSelectionMode } from './components/tree';
-export { enUS, zhCN } from './locale';
+export { enUS, zhCN, ruRU } from './locale';
export { type ILocale } from './locale/interface';
export { defaultTheme, greenTheme, themeInstance } from './themes';
export { DraggableList, type IDraggableListProps } from './components/draggable-list';
diff --git a/packages/design/src/locale/index.ts b/packages/design/src/locale/index.ts
index 65052151fa..5641b7de0d 100644
--- a/packages/design/src/locale/index.ts
+++ b/packages/design/src/locale/index.ts
@@ -17,3 +17,4 @@
export { default as enUS } from './en-US';
export { type ILocale } from './interface';
export { default as zhCN } from './zh-CN';
+export { default as ruRU } from './ru-RU';
diff --git a/packages/design/src/locale/ru-RU.ts b/packages/design/src/locale/ru-RU.ts
new file mode 100644
index 0000000000..4394a395de
--- /dev/null
+++ b/packages/design/src/locale/ru-RU.ts
@@ -0,0 +1,37 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import PickerRuRU from 'rc-picker/lib/locale/ru_RU';
+import dajsRuRU from 'dayjs/locale/ru';
+import type { ILocale } from './interface';
+
+const locale: ILocale = {
+ design: {
+ Confirm: {
+ cancel: 'отмена',
+ confirm: 'ок',
+ },
+ Slider: {
+ resetTo: 'Сбросить до',
+ },
+ Picker: {
+ ...dajsRuRU,
+ ...PickerRuRU,
+ },
+ },
+};
+
+export default locale;
diff --git a/packages/docs-ui/src/index.ts b/packages/docs-ui/src/index.ts
index 422740cb4d..05be3ebcb0 100644
--- a/packages/docs-ui/src/index.ts
+++ b/packages/docs-ui/src/index.ts
@@ -16,6 +16,6 @@
export * from './basics';
export * from './docs-ui-plugin';
-export { enUS, zhCN } from './locale';
+export { enUS, zhCN, ruRU } from './locale';
export { DocCanvasView } from './views/doc-canvas-view';
export * from './services';
diff --git a/packages/docs-ui/src/locale/index.ts b/packages/docs-ui/src/locale/index.ts
index 1eff5fc204..ab1fcfc7ee 100644
--- a/packages/docs-ui/src/locale/index.ts
+++ b/packages/docs-ui/src/locale/index.ts
@@ -16,3 +16,4 @@
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';
+export { default as ruRU } from './ru-RU';
diff --git a/packages/docs-ui/src/locale/ru-RU.ts b/packages/docs-ui/src/locale/ru-RU.ts
new file mode 100644
index 0000000000..a48b2ef9e5
--- /dev/null
+++ b/packages/docs-ui/src/locale/ru-RU.ts
@@ -0,0 +1,49 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type zhCN from './zh-CN';
+
+const locale: typeof zhCN = {
+ toolbar: {
+ undo: 'Отменить',
+ redo: 'Повторить',
+ font: 'Шрифт',
+ fontSize: 'Размер шрифта',
+ bold: 'Полужирный',
+ italic: 'Курсив',
+ strikethrough: 'Зачеркнутый',
+ subscript: 'Нижний индекс',
+ superscript: 'Верхний индекс',
+ underline: 'Подчеркнутый',
+ textColor: {
+ main: 'Цвет текста',
+ right: 'Выбрать цвет',
+ },
+ fillColor: {
+ main: 'Цвет фона текста',
+ right: 'Выбрать цвет',
+ },
+ resetColor: 'Сбросить',
+ order: 'Упорядоченный список',
+ unorder: 'Неупорядоченный список',
+ alignLeft: 'Выровнять по левому краю',
+ alignCenter: 'Выровнять по центру',
+ alignRight: 'Выровнять по правому краю',
+ alignJustify: 'Выровнять по ширине',
+ },
+};
+
+export default locale;
diff --git a/packages/find-replace/src/index.ts b/packages/find-replace/src/index.ts
index 9c1d5801ea..c7160f1d72 100644
--- a/packages/find-replace/src/index.ts
+++ b/packages/find-replace/src/index.ts
@@ -25,4 +25,4 @@ export type {
IReplaceAllResult,
} from './services/find-replace.service';
export { FindModel, IFindReplaceService, FindBy, FindScope, FindDirection } from './services/find-replace.service';
-export { enUS, zhCN } from './locale';
+export { enUS, zhCN, ruRU } from './locale';
diff --git a/packages/find-replace/src/locale/index.ts b/packages/find-replace/src/locale/index.ts
index 1eff5fc204..ab1fcfc7ee 100644
--- a/packages/find-replace/src/locale/index.ts
+++ b/packages/find-replace/src/locale/index.ts
@@ -16,3 +16,4 @@
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';
+export { default as ruRU } from './ru-RU';
diff --git a/packages/find-replace/src/locale/ru-RU.ts b/packages/find-replace/src/locale/ru-RU.ts
new file mode 100644
index 0000000000..e1f7029cb4
--- /dev/null
+++ b/packages/find-replace/src/locale/ru-RU.ts
@@ -0,0 +1,68 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type zhCN from './zh-CN';
+
+const locale: typeof zhCN = {
+ 'find-replace': {
+ toolbar: 'Найти и заменить',
+ shortcut: {
+ 'open-find-dialog': 'Открыть диалог поиска',
+ 'open-replace-dialog': 'Открыть диалог замены',
+ 'close-dialog': 'Закрыть диалог поиска и замены',
+ 'go-to-next-match': 'Перейти к следующему совпадению',
+ 'go-to-previous-match': 'Перейти к предыдущему совпадению',
+ },
+ dialog: {
+ title: 'Найти',
+ find: 'Найти',
+ replace: 'Заменить',
+ 'replace-all': 'Заменить все',
+ 'case-sensitive': 'С учетом регистра',
+ 'find-placeholder': 'Найти в этом листе',
+ 'advanced-finding': 'Расширенный поиск и замена',
+ 'replace-placeholder': 'Введите строку для замены',
+ 'match-the-whole-cell': 'Точное совпадение',
+ 'find-direction': {
+ title: 'Направление поиска',
+ row: 'Поиск по строкам',
+ column: 'Поиск по столбцам',
+ },
+ 'find-scope': {
+ title: 'Область поиска',
+ 'current-sheet': 'Текущий лист',
+ workbook: 'Книга',
+ },
+ 'find-by': {
+ title: 'Поиск по',
+ value: 'Поиск по значению',
+ formula: 'Поиск по формуле',
+ },
+ 'no-match': 'Поиск завершен, совпадений не найдено.',
+ 'no-result': 'Нет результатов',
+ },
+ replace: {
+ 'all-success': 'Заменены все {0} совпадений',
+ 'all-failure': 'Не удалось заменить',
+ confirm: {
+ title: 'Вы уверены, что хотите заменить все совпадения?',
+ },
+ },
+ },
+ 'find-replace-shortcuts': 'Найти и заменить',
+};
+
+export default locale;
diff --git a/packages/find-replace/src/locale/zh-CN.ts b/packages/find-replace/src/locale/zh-CN.ts
index edc55ad3d7..944f02ca2c 100644
--- a/packages/find-replace/src/locale/zh-CN.ts
+++ b/packages/find-replace/src/locale/zh-CN.ts
@@ -14,9 +14,7 @@
* limitations under the License.
*/
-import type enUS from './en-US';
-
-const locale: typeof enUS = {
+const locale = {
'find-replace': {
toolbar: '查找替换',
shortcut: {
diff --git a/packages/find-replace/src/views/dialog/FindReplaceDialog.stories.tsx b/packages/find-replace/src/views/dialog/FindReplaceDialog.stories.tsx
index f78b2880f6..b5cd135215 100644
--- a/packages/find-replace/src/views/dialog/FindReplaceDialog.stories.tsx
+++ b/packages/find-replace/src/views/dialog/FindReplaceDialog.stories.tsx
@@ -17,13 +17,13 @@
import type { Meta } from '@storybook/react';
import type { Dependency } from '@wendellhu/redi';
import { RediContext } from '@wendellhu/redi/react-bindings';
-import React, { useContext, useState } from 'react';
+import React, { useContext, useMemo, useState } from 'react';
import { DesktopLayoutService, ILayoutService } from '@univerjs/ui';
import { LocaleService, LocaleType } from '@univerjs/core';
import { FindReplaceService, IFindReplaceService } from '../../services/find-replace.service';
import { FindReplaceController } from '../../controllers/find-replace.controller';
-import { enUS, zhCN } from '../../locale';
+import { enUS, ruRU, zhCN } from '../../locale';
import { FindReplaceDialog } from './FindReplaceDialog';
const meta: Meta = {
@@ -49,6 +49,7 @@ function FindDialogDemo() {
injector?.get(LocaleService).load({
[LocaleType.EN_US]: enUS,
[LocaleType.ZH_CN]: zhCN,
+ [LocaleType.RU_RU]: ruRU,
});
deps.forEach((dependency) => injector?.add(dependency));
@@ -56,8 +57,10 @@ function FindDialogDemo() {
return injector;
});
+ const memoizedValue = useMemo(() => ({ injector: inject }), [inject]);
+
return (
- <RediContext.Provider value={{ injector: inject }}>
+ <RediContext.Provider value={memoizedValue}>
<FindReplaceDialog />
</RediContext.Provider>
);
@@ -82,6 +85,7 @@ function ReplaceDialogDemo() {
injector?.get(LocaleService).load({
[LocaleType.EN_US]: enUS,
[LocaleType.ZH_CN]: zhCN,
+ [LocaleType.RU_RU]: ruRU,
});
deps.forEach((dependency) => injector?.add(dependency));
@@ -89,8 +93,10 @@ function ReplaceDialogDemo() {
return injector;
});
+ const memoizedValue = useMemo(() => ({ injector: inject }), [inject]);
+
return (
- <RediContext.Provider value={{ injector: inject }}>
+ <RediContext.Provider value={memoizedValue}>
<FindReplaceDialog />
</RediContext.Provider>
);
diff --git a/packages/sheets-conditional-formatting-ui/src/index.ts b/packages/sheets-conditional-formatting-ui/src/index.ts
index 9bae7ab7af..99139533bd 100644
--- a/packages/sheets-conditional-formatting-ui/src/index.ts
+++ b/packages/sheets-conditional-formatting-ui/src/index.ts
@@ -15,4 +15,4 @@
*/
export { UniverSheetsConditionalFormattingUIPlugin } from './plugin';
-export { enUS, zhCN } from './locale';
+export { enUS, zhCN, ruRU } from './locale';
diff --git a/packages/sheets-conditional-formatting-ui/src/locale/index.ts b/packages/sheets-conditional-formatting-ui/src/locale/index.ts
index 1eff5fc204..ab1fcfc7ee 100644
--- a/packages/sheets-conditional-formatting-ui/src/locale/index.ts
+++ b/packages/sheets-conditional-formatting-ui/src/locale/index.ts
@@ -16,3 +16,4 @@
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';
+export { default as ruRU } from './ru-RU';
diff --git a/packages/sheets-conditional-formatting-ui/src/locale/ru-RU.ts b/packages/sheets-conditional-formatting-ui/src/locale/ru-RU.ts
new file mode 100644
index 0000000000..3e9c2ae420
--- /dev/null
+++ b/packages/sheets-conditional-formatting-ui/src/locale/ru-RU.ts
@@ -0,0 +1,174 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type zhCN from './zh-CN';
+
+const locale: typeof zhCN = {
+ sheet: {
+ cf: {
+ title: 'Условное форматирование',
+ menu: {
+ manageConditionalFormatting: 'Управление условным форматированием',
+ createConditionalFormatting: 'Создание условного форматирования',
+ clearRangeRules: 'Очистить правила для выбранного диапазона',
+ clearWorkSheetRules: 'Очистить правила для всего листа',
+ },
+ form: {
+ lessThan: 'Значение должно быть меньше {0}',
+ lessThanOrEqual: 'Значение должно быть меньше или равно {0}',
+ greaterThan: 'Значение должно быть больше {0}',
+ greaterThanOrEqual: 'Значение должно быть больше или равно {0}',
+ rangeSelector: 'Выберите диапазон или введите значение',
+ },
+ iconSet: {
+ direction: 'Направление',
+ shape: 'Форма',
+ mark: 'Знак',
+ rank: 'Ранг',
+ rule: 'Правило',
+ icon: 'Иконка',
+ type: 'Тип',
+ value: 'Значение',
+ reverseIconOrder: 'Обратный порядок иконок',
+ and: 'И',
+ when: 'Когда',
+ onlyShowIcon: 'Показывать только иконку',
+ },
+ symbol: {
+ greaterThan: '>',
+ greaterThanOrEqual: '>=',
+ lessThan: '<',
+ lessThanOrEqual: '<=',
+ },
+ panel: {
+ createRule: 'Создать правило',
+ clear: 'Очистить все правила',
+ range: 'Применить диапазон',
+ styleType: 'Тип стиля',
+ submit: 'Подтвердить',
+ cancel: 'Отменить',
+ rankAndAverage: 'Верх/Низ/Среднее',
+ styleRule: 'Правило стиля',
+ isNotBottom: 'Верх',
+ isBottom: 'Низ',
+ greaterThanAverage: 'Больше среднего',
+ lessThanAverage: 'Меньше среднего',
+ medianValue: 'Медианное значение',
+ fillType: 'Тип заполнения',
+ pureColor: 'Сплошной цвет',
+ gradient: 'Градиент',
+ colorSet: 'Набор цветов',
+ positive: 'Положительный',
+ native: 'Отрицательный',
+ workSheet: 'Весь лист',
+ selectedRange: 'Выбранный диапазон',
+ managerRuleSelect: 'Управление правилами {0}',
+ onlyShowDataBar: 'Показывать только гистограммы данных',
+ },
+ preview: {
+ describe: {
+ beginsWith: 'Начинается с {0}',
+ endsWith: 'Заканчивается на {0}',
+ containsText: 'Содержит текст {0}',
+ notContainsText: 'Не содержит текст {0}',
+ equal: 'Равно {0}',
+ notEqual: 'Не равно {0}',
+ containsBlanks: 'Содержит пустые ячейки',
+ notContainsBlanks: 'Не содержит пустых ячеек',
+ containsErrors: 'Содержит ошибки',
+ notContainsErrors: 'Не содержит ошибок',
+ greaterThan: 'Больше чем {0}',
+ greaterThanOrEqual: 'Больше или равно {0}',
+ lessThan: 'Меньше чем {0}',
+ lessThanOrEqual: 'Меньше или равно {0}',
+ notBetween: 'Не между {0} и {1}',
+ between: 'Между {0} и {1}',
+ yesterday: 'Вчера',
+ tomorrow: 'Завтра',
+ last7Days: 'Последние 7 дней',
+ thisMonth: 'Этот месяц',
+ lastMonth: 'Прошлый месяц',
+ nextMonth: 'Следующий месяц',
+ thisWeek: 'Эта неделя',
+ lastWeek: 'Прошлая неделя',
+ nextWeek: 'Следующая неделя',
+ today: 'Сегодня',
+ topN: 'Топ {0}',
+ bottomN: 'Низ {0}',
+ topNPercent: 'Топ {0}%',
+ bottomNPercent: 'Низ {0}%',
+ },
+ },
+ operator: {
+ beginsWith: 'Начинается с',
+ endsWith: 'Заканчивается на',
+ containsText: 'Содержит текст',
+ notContainsText: 'Не содержит текст',
+ equal: 'Равно',
+ notEqual: 'Не равно',
+ containsBlanks: 'Содержит пустые ячейки',
+ notContainsBlanks: 'Не содержит пустых ячеек',
+ containsErrors: 'Содержит ошибки',
+ notContainsErrors: 'Не содержит ошибок',
+ greaterThan: 'Больше чем',
+ greaterThanOrEqual: 'Больше или равно',
+ lessThan: 'Меньше чем',
+ lessThanOrEqual: 'Меньше или равно',
+ notBetween: 'Не между',
+ between: 'Между',
+ yesterday: 'Вчера',
+ tomorrow: 'Завтра',
+ last7Days: 'Последние 7 дней',
+ thisMonth: 'Этот месяц',
+ lastMonth: 'Прошлый месяц',
+ nextMonth: 'Следующий месяц',
+ thisWeek: 'Эта неделя',
+ lastWeek: 'Прошлая неделя',
+ nextWeek: 'Следующая неделя',
+ today: 'Сегодня',
+ },
+ ruleType: {
+ highlightCell: 'Выделение ячеек',
+ dataBar: 'Гистограмма данных',
+ colorScale: 'Цветовая шкала',
+ formula: 'Пользовательская формула',
+ iconSet: 'Набор иконок',
+ duplicateValues: 'Дублирующиеся значения',
+ uniqueValues: 'Уникальные значения',
+ },
+ subRuleType: {
+ uniqueValues: 'Уникальные значения',
+ duplicateValues: 'Дублирующиеся значения',
+ rank: 'Ранг',
+ text: 'Текст',
+ timePeriod: 'Период времени',
+ number: 'Число',
+ average: 'Среднее',
+ },
+ valueType: {
+ num: 'Число',
+ min: 'Минимум',
+ max: 'Максимум',
+ percent: 'Процент',
+ percentile: 'Процентиль',
+ formula: 'Формула',
+ none: 'Нет',
+ },
+ },
+ },
+};
+
+export default locale;
diff --git a/packages/sheets-data-validation/src/index.ts b/packages/sheets-data-validation/src/index.ts
index 6cd0a2c6dc..ac265a5c73 100644
--- a/packages/sheets-data-validation/src/index.ts
+++ b/packages/sheets-data-validation/src/index.ts
@@ -31,4 +31,4 @@ export { DataValidationAutoFillController } from './controllers/dv-auto-fill.con
export { DataValidationCopyPasteController } from './controllers/dv-copy-paste.controller';
export { HideDataValidationDropdown, ShowDataValidationDropdown } from './commands/operations/data-validation.operation';
export { DataValidationRejectInputController } from './controllers/dv-reject-input.controller';
-export { enUS, zhCN } from './locale';
+export { enUS, zhCN, ruRU } from './locale';
diff --git a/packages/sheets-data-validation/src/locale/index.ts b/packages/sheets-data-validation/src/locale/index.ts
index 1eff5fc204..ab1fcfc7ee 100644
--- a/packages/sheets-data-validation/src/locale/index.ts
+++ b/packages/sheets-data-validation/src/locale/index.ts
@@ -16,3 +16,4 @@
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';
+export { default as ruRU } from './ru-RU';
diff --git a/packages/sheets-data-validation/src/locale/ru-RU.ts b/packages/sheets-data-validation/src/locale/ru-RU.ts
new file mode 100644
index 0000000000..9e91626756
--- /dev/null
+++ b/packages/sheets-data-validation/src/locale/ru-RU.ts
@@ -0,0 +1,177 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type zhCN from './zh-CN';
+
+const locale: typeof zhCN = {
+ dataValidation: {
+ title: 'Проверка данных',
+ validFail: {
+ common: 'Пожалуйста, введите значение или формулу',
+ number: 'Пожалуйста, введите число или формулу',
+ formula: 'Пожалуйста, введите формулу',
+ integer: 'Пожалуйста, введите целое число или формулу',
+ date: 'Пожалуйста, введите дату или формулу',
+ list: 'Пожалуйста, введите параметры',
+ listInvalid: 'Источник списка должен быть разделенным списком или ссылкой на одну строку или столбец',
+ checkboxEqual: 'Для выбранных и не выбранных ячеек введите разные значения',
+ },
+ panel: {
+ title: 'Управление проверкой данных',
+ addTitle: 'Создать новую проверку данных',
+ removeAll: 'Удалить все',
+ add: 'Создать проверку данных',
+ range: 'Диапазоны',
+ type: 'Тип',
+ options: 'Дополнительные параметры',
+ operator: 'Оператор',
+ removeRule: 'Удалить',
+ done: 'Готово',
+ formulaPlaceholder: 'Пожалуйста, введите значение или формулу',
+ formulaAnd: 'и',
+ invalid: 'Недопустимо',
+ showWarning: 'Показать предупреждение',
+ rejectInput: 'Отклонить ввод',
+ messageInfo: 'Сообщение помощи',
+ showInfo: 'Показать текст помощи для выбранной ячейки',
+ },
+ operators: {
+ between: 'между',
+ greaterThan: 'больше чем',
+ greaterThanOrEqual: 'больше или равно',
+ lessThan: 'меньше чем',
+ lessThanOrEqual: 'меньше или равно',
+ equal: 'равно',
+ notEqual: 'не равно',
+ notBetween: 'не между',
+ },
+ ruleName: {
+ between: 'между {FORMULA1} и {FORMULA2}',
+ greaterThan: 'больше чем {FORMULA1}',
+ greaterThanOrEqual: 'больше или равно {FORMULA1}',
+ lessThan: 'меньше чем {FORMULA1}',
+ lessThanOrEqual: 'меньше или равно {FORMULA1}',
+ equal: 'равно {FORMULA1}',
+ notEqual: 'не равно {FORMULA1}',
+ notBetween: 'не между {FORMULA1} и {FORMULA2}',
+ },
+ errorMsg: {
+ between: 'Значение должно быть между {FORMULA1} и {FORMULA2}',
+ greaterThan: 'Значение должно быть больше {FORMULA1}',
+ greaterThanOrEqual: 'Значение должно быть больше или равно {FORMULA1}',
+ lessThan: 'Значение должно быть меньше {FORMULA1}',
+ lessThanOrEqual: 'Значение должно быть меньше или равно {FORMULA1}',
+ equal: 'Значение должно быть равно {FORMULA1}',
+ notEqual: 'Значение должно быть не равно {FORMULA1}',
+ notBetween: 'Значение должно быть не между {FORMULA1} и {FORMULA2}',
+ },
+ date: {
+ title: 'Дата',
+ operators: {
+ between: 'между',
+ greaterThan: 'после',
+ greaterThanOrEqual: 'в или после',
+ lessThan: 'до',
+ lessThanOrEqual: 'в или до',
+ equal: 'равно',
+ notEqual: 'не равно',
+ notBetween: 'не между',
+ },
+ ruleName: {
+ between: 'между {FORMULA1} и {FORMULA2}',
+ greaterThan: 'после {FORMULA1}',
+ greaterThanOrEqual: 'в или после {FORMULA1}',
+ lessThan: 'до {FORMULA1}',
+ lessThanOrEqual: 'в или до {FORMULA1}',
+ equal: 'равно {FORMULA1}',
+ notEqual: 'не равно {FORMULA1}',
+ notBetween: 'не между {FORMULA1}',
+ },
+ errorMsg: {
+ between: 'Значение должно быть между {FORMULA1} и {FORMULA2}',
+ greaterThan: 'Значение должно быть после {FORMULA1}',
+ greaterThanOrEqual: 'Значение должно быть в или после {FORMULA1}',
+ lessThan: 'Значение должно быть до {FORMULA1}',
+ lessThanOrEqual: 'Значение должно быть в или до {FORMULA1}',
+ equal: 'Значение должно быть {FORMULA1}',
+ notEqual: 'Значение должно быть не {FORMULA1}',
+ notBetween: 'Значение должно быть не между {FORMULA1}',
+ },
+ },
+ list: {
+ title: 'Выпадающий список',
+ name: 'Значение содержит одно из диапазона',
+ error: 'Ввод должен соответствовать указанному диапазону',
+ emptyError: 'Пожалуйста, введите значение',
+ add: 'Добавить',
+ dropdown: 'Выбрать',
+ options: 'Параметры',
+ customOptions: 'Пользовательские',
+ refOptions: 'Из диапазона',
+ formulaError: 'Источник списка должен быть разделенным списком данных или ссылкой на одну строку или столбец.',
+ },
+ listMultiple: {
+ title: 'Выпадающий список - Множественный',
+ dropdown: 'Множественный выбор',
+ },
+ textLength: {
+ title: 'Длина текста',
+ errorMsg: {
+ between: 'Длина текста должна быть между {FORMULA1} и {FORMULA2}',
+ greaterThan: 'Длина текста должна быть больше {FORMULA1}',
+ greaterThanOrEqual: 'Длина текста должна быть больше или равна {FORMULA1}',
+ lessThan: 'Длина текста должна быть меньше {FORMULA1}',
+ lessThanOrEqual: 'Длина текста должна быть меньше или равна {FORMULA1}',
+ equal: 'Длина текста должна быть равна {FORMULA1}',
+ notEqual: 'Длина текста должна быть не равна {FORMULA1}',
+ notBetween: 'Длина текста должна быть не между {FORMULA1}',
+ },
+ },
+ decimal: {
+ title: 'Число',
+ },
+ whole: {
+ title: 'Целое число',
+ },
+ checkbox: {
+ title: 'Флажок',
+ error: 'Содержимое этой ячейки нарушает правило проверки',
+ tips: 'Используйте пользовательские значения в ячейках',
+ checked: 'Выбранное значение',
+ unchecked: 'Не выбранное значение',
+ },
+ custom: {
+ title: 'Пользовательская формула',
+ error: 'Содержимое этой ячейки нарушает правило проверки',
+ validFail: 'Пожалуйста, введите допустимую формулу',
+ },
+ alert: {
+ title: 'Ошибка',
+ ok: 'ОК',
+ },
+ error: {
+ title: 'Недопустимо:',
+ },
+ renderMode: {
+ arrow: 'Стрелка',
+ chip: 'Чип',
+ text: 'Простой текст',
+ label: 'Стиль отображения',
+ },
+ },
+};
+
+export default locale;
diff --git a/packages/sheets-filter-ui/src/index.ts b/packages/sheets-filter-ui/src/index.ts
index a42eed979d..f968015293 100644
--- a/packages/sheets-filter-ui/src/index.ts
+++ b/packages/sheets-filter-ui/src/index.ts
@@ -15,5 +15,4 @@
*/
export { UniverSheetsFilterUIPlugin } from './plugin';
-export { default as enUS } from './locale/en-US';
-export { default as zhCN } from './locale/zh-CN';
+export { zhCN, enUS, ruRU } from './locale';
diff --git a/packages/sheets-filter-ui/src/locale/en-US.ts b/packages/sheets-filter-ui/src/locale/en-US.ts
index 6c07fa341c..b6d42a4a0b 100644
--- a/packages/sheets-filter-ui/src/locale/en-US.ts
+++ b/packages/sheets-filter-ui/src/locale/en-US.ts
@@ -14,7 +14,9 @@
* limitations under the License.
*/
-export default {
+import type zhCN from './zh-CN';
+
+const locale: typeof zhCN = {
'sheets-filter': {
toolbar: {
'smart-toggle-filter-tooltip': 'Toggle Filter',
@@ -64,3 +66,5 @@ export default {
},
},
};
+
+export default locale;
diff --git a/packages/sheets-filter-ui/src/locale/index.ts b/packages/sheets-filter-ui/src/locale/index.ts
index 1eff5fc204..ab1fcfc7ee 100644
--- a/packages/sheets-filter-ui/src/locale/index.ts
+++ b/packages/sheets-filter-ui/src/locale/index.ts
@@ -16,3 +16,4 @@
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';
+export { default as ruRU } from './ru-RU';
diff --git a/packages/sheets-filter-ui/src/locale/ru-RU.ts b/packages/sheets-filter-ui/src/locale/ru-RU.ts
new file mode 100644
index 0000000000..bb4b6a2092
--- /dev/null
+++ b/packages/sheets-filter-ui/src/locale/ru-RU.ts
@@ -0,0 +1,70 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type zhCN from './zh-CN';
+
+const locale: typeof zhCN = {
+ 'sheets-filter': {
+ toolbar: {
+ 'smart-toggle-filter-tooltip': 'Переключить фильтр',
+ 'clear-filter-criteria': 'Очистить условия фильтра',
+ 're-calc-filter-conditions': 'Пересчитать условия фильтра',
+ },
+ command: {
+ 'not-valid-filter-range': 'Выбранный диапазон содержит только одну строку и не подходит для фильтра.',
+ },
+ shortcut: {
+ 'smart-toggle-filter': 'Переключить фильтр',
+ },
+ panel: {
+ 'clear-filter': 'Очистить фильтр',
+ cancel: 'Отмена',
+ confirm: 'Подтвердить',
+ 'by-values': 'По значениям',
+ 'by-conditions': 'По условиям',
+ 'filter-only': 'Только фильтр',
+ 'search-placeholder': 'Используйте пробел для разделения ключевых слов',
+ 'select-all': 'Выбрать все',
+ 'input-values-placeholder': 'Введите значения',
+ and: 'И',
+ or: 'ИЛИ',
+ empty: '(пусто)',
+ '?': 'Используйте “?” для обозначения одного символа.',
+ '*': 'Используйте “*” для обозначения нескольких символов.',
+ },
+ conditions: {
+ none: 'Нет',
+ empty: 'Пусто',
+ 'not-empty': 'Не пусто',
+ 'text-contains': 'Содержит текст',
+ 'does-not-contain': 'Не содержит текст',
+ 'starts-with': 'Начинается с',
+ 'ends-with': 'Заканчивается на',
+ equals: 'Равно',
+ 'greater-than': 'Больше чем',
+ 'greater-than-or-equal': 'Больше или равно',
+ 'less-than': 'Меньше чем',
+ 'less-than-or-equal': 'Меньше или равно',
+ equal: 'Равно',
+ 'not-equal': 'Не равно',
+ between: 'Между',
+ 'not-between': 'Не между',
+ custom: 'Пользовательский',
+ },
+ },
+};
+
+export default locale;
diff --git a/packages/sheets-filter-ui/src/locale/zh-CN.ts b/packages/sheets-filter-ui/src/locale/zh-CN.ts
index db2492d6e0..f37ab9534a 100644
--- a/packages/sheets-filter-ui/src/locale/zh-CN.ts
+++ b/packages/sheets-filter-ui/src/locale/zh-CN.ts
@@ -14,9 +14,7 @@
* limitations under the License.
*/
-import type enUS from './en-US';
-
-const zLocale: typeof enUS = {
+const locale = {
'sheets-filter': {
toolbar: {
'smart-toggle-filter-tooltip': '筛选',
@@ -67,4 +65,4 @@ const zLocale: typeof enUS = {
},
};
-export default zLocale;
+export default locale;
diff --git a/packages/sheets-filter-ui/src/views/components/SheetsFilterPanel.stories.tsx b/packages/sheets-filter-ui/src/views/components/SheetsFilterPanel.stories.tsx
index c334b46b8f..05db64aef6 100644
--- a/packages/sheets-filter-ui/src/views/components/SheetsFilterPanel.stories.tsx
+++ b/packages/sheets-filter-ui/src/views/components/SheetsFilterPanel.stories.tsx
@@ -27,8 +27,7 @@ import { SheetsFilterPanelService } from '../../services/sheets-filter-panel.ser
import { ClearSheetsFilterCriteriaCommand, ReCalcSheetsFilterCommand, SetSheetsFilterCriteriaCommand, SmartToggleSheetsFilterCommand } from '../../commands/sheets-filter.command';
import type { IOpenFilterPanelOperationParams } from '../../commands/sheets-filter.operation';
import { ChangeFilterByOperation, CloseFilterPanelOperation, OpenFilterPanelOperation } from '../../commands/sheets-filter.operation';
-import zhCN from '../../locale/zh-CN';
-import enUS from '../../locale/en-US';
+import { enUS, ruRU, zhCN } from '../../locale';
import { WithCustomFilterModelFactory, WithValuesFilterModelFactory } from '../../__testing__/data';
import { FilterPanel } from './SheetsFilterPanel';
@@ -80,8 +79,7 @@ function createFilterStorybookBed(workbookData: IWorkbookData, locale: LocaleTyp
univer.registerPlugin(UniverSheetsFilterPlugin);
injector.get(LocaleService).setLocale(locale);
- injector.get(LocaleService).load({ enUS, zhCN });
- injector.get(ILogService).setLogLevel(LogLevel.VERBOSE);
+ injector.get(LocaleService).load({ enUS, zhCN, ruRU });
injector.get(ILogService).setLogLevel(LogLevel.VERBOSE);
const sheet = univer.createUniverSheet(workbookData);
diff --git a/packages/sheets-find-replace/src/index.ts b/packages/sheets-find-replace/src/index.ts
index d0c0724c90..4f3d15c9f7 100644
--- a/packages/sheets-find-replace/src/index.ts
+++ b/packages/sheets-find-replace/src/index.ts
@@ -14,5 +14,5 @@
* limitations under the License.
*/
-export { enUS, zhCN } from './locale';
+export { enUS, zhCN, ruRU } from './locale';
export { UniverSheetsFindReplacePlugin } from './plugin';
diff --git a/packages/sheets-find-replace/src/locale/en-US.ts b/packages/sheets-find-replace/src/locale/en-US.ts
index cdaaecfe9c..ffae8b25b8 100644
--- a/packages/sheets-find-replace/src/locale/en-US.ts
+++ b/packages/sheets-find-replace/src/locale/en-US.ts
@@ -14,7 +14,9 @@
* limitations under the License.
*/
-export default {
+import type zhCN from './zh-CN';
+
+const locale: typeof zhCN = {
'sheet-find-replace': {
replace: {
'partial-failure': 'Failed to replace some cells',
@@ -22,3 +24,5 @@ export default {
},
},
};
+
+export default locale;
diff --git a/packages/sheets-find-replace/src/locale/index.ts b/packages/sheets-find-replace/src/locale/index.ts
index 1eff5fc204..ab1fcfc7ee 100644
--- a/packages/sheets-find-replace/src/locale/index.ts
+++ b/packages/sheets-find-replace/src/locale/index.ts
@@ -16,3 +16,4 @@
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';
+export { default as ruRU } from './ru-RU';
diff --git a/packages/sheets-find-replace/src/locale/ru-RU.ts b/packages/sheets-find-replace/src/locale/ru-RU.ts
new file mode 100644
index 0000000000..23edb463f0
--- /dev/null
+++ b/packages/sheets-find-replace/src/locale/ru-RU.ts
@@ -0,0 +1,28 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type zhCN from './zh-CN';
+
+const locale: typeof zhCN = {
+ 'sheet-find-replace': {
+ replace: {
+ 'partial-failure': 'Не удалось заменить некоторые ячейки',
+ failure: 'Не удалось заменить все ячейки',
+ },
+ },
+};
+
+export default locale;
diff --git a/packages/sheets-formula/src/index.ts b/packages/sheets-formula/src/index.ts
index d3cfffbb31..c8e293487d 100644
--- a/packages/sheets-formula/src/index.ts
+++ b/packages/sheets-formula/src/index.ts
@@ -15,7 +15,7 @@
*/
export { UniverSheetsFormulaPlugin } from './formula-ui-plugin';
-export { enUS, zhCN } from './locale';
+export { enUS, zhCN, ruRU } from './locale';
export { IDescriptionService } from './services/description.service';
export { DescriptionService } from './services/description.service';
export {
diff --git a/packages/sheets-formula/src/locale/function-list/array/ru-RU.ts b/packages/sheets-formula/src/locale/function-list/array/ru-RU.ts
new file mode 100644
index 0000000000..5a3d76c357
--- /dev/null
+++ b/packages/sheets-formula/src/locale/function-list/array/ru-RU.ts
@@ -0,0 +1,21 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import enUS from './en-US';
+
+export default enUS;
+
+// export default {};
diff --git a/packages/sheets-formula/src/locale/function-list/compatibility/ru-RU.ts b/packages/sheets-formula/src/locale/function-list/compatibility/ru-RU.ts
new file mode 100644
index 0000000000..5a3d76c357
--- /dev/null
+++ b/packages/sheets-formula/src/locale/function-list/compatibility/ru-RU.ts
@@ -0,0 +1,21 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import enUS from './en-US';
+
+export default enUS;
+
+// export default {};
diff --git a/packages/sheets-formula/src/locale/function-list/cube/ru-RU.ts b/packages/sheets-formula/src/locale/function-list/cube/ru-RU.ts
new file mode 100644
index 0000000000..7193e43346
--- /dev/null
+++ b/packages/sheets-formula/src/locale/function-list/cube/ru-RU.ts
@@ -0,0 +1,116 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+export default {
+ CUBEKPIMEMBER: {
+ description: 'Возвращает свойство ключевого показателя эффективности (KPI) и отображает имя KPI в ячейке. KPI — это количественная мера, такая как ежемесячная валовая прибыль или ежеквартальная текучесть сотрудников, используемая для мониторинга производительности организации.',
+ abstract: 'Возвращает свойство ключевого показателя эффективности (KPI) и отображает имя KPI в ячейке. KPI — это количественная мера, такая как ежемесячная валовая прибыль или ежеквартальная текучесть сотрудников, используемая для мониторинга производительности организации.',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/en-us/office/cubekpimember-function-744608bf-2c62-42cd-b67a-a56109f4b03b',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ CUBEMEMBER: {
+ description: 'Возвращает элемент или кортеж из куба. Используйте для проверки существования элемента или кортежа в кубе.',
+ abstract: 'Возвращает элемент или кортеж из куба. Используйте для проверки существования элемента или кортежа в кубе.',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/en-us/office/cubemember-function-0f6a15b9-2c18-4819-ae89-e1b5c8b398ad',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ CUBEMEMBERPROPERTY: {
+ description: 'Возвращает значение свойства элемента из куба. Используйте для проверки существования имени элемента в кубе и для возврата указанного свойства для этого элемента.',
+ abstract: 'Возвращает значение свойства элемента из куба. Используйте для проверки существования имени элемента в кубе и для возврата указанного свойства для этого элемента.',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/en-us/office/cubememberproperty-function-001e57d6-b35a-49e5-abcd-05ff599e8951',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ CUBERANKEDMEMBER: {
+ description: 'Возвращает n-ого или ранжированного элемента в наборе. Используйте для возврата одного или нескольких элементов в наборе, таких как лучший продавец или топ-10 студентов.',
+ abstract: 'Возвращает n-ого или ранжированного элемента в наборе. Используйте для возврата одного или нескольких элементов в наборе, таких как лучший продавец или топ-10 студентов.',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/en-us/office/cuberankedmember-function-07efecde-e669-4075-b4bf-6b40df2dc4b3',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ CUBESET: {
+ description: 'Определяет вычисляемый набор элементов или кортежей, отправляя выражение набора на сервер, который создает набор, а затем возвращает этот набор в Microsoft Excel.',
+ abstract: 'Определяет вычисляемый набор элементов или кортежей, отправляя выражение набора на сервер, который создает набор, а затем возвращает этот набор в Microsoft Excel.',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/en-us/office/cubeset-function-5b2146bd-62d6-4d04-9d8f-670e993ee1d9',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ CUBESETCOUNT: {
+ description: 'Возвращает количество элементов в наборе.',
+ abstract: 'Возвращает количество элементов в наборе.',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/en-us/office/cubesetcount-function-c4c2a438-c1ff-4061-80fe-982f2d705286',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ CUBEVALUE: {
+ description: 'Возвращает агрегированное значение из куба.',
+ abstract: 'Возвращает агрегированное значение из куба.',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/en-us/office/cubevalue-function-8733da24-26d1-4e34-9b3a-84a8f00dcbe0',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+};
diff --git a/packages/sheets-formula/src/locale/function-list/database/ru-RU.ts b/packages/sheets-formula/src/locale/function-list/database/ru-RU.ts
new file mode 100644
index 0000000000..5b0b86b2ec
--- /dev/null
+++ b/packages/sheets-formula/src/locale/function-list/database/ru-RU.ts
@@ -0,0 +1,186 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+export default {
+ DAVERAGE: {
+ description: 'Возвращает среднее значение выбранных записей базы данных',
+ abstract: 'Возвращает среднее значение выбранных записей базы данных',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/daverage-function-a6a2d5ac-4b4b-48cd-a1d8-7b37834e5aee',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ DCOUNT: {
+ description: 'Считает ячейки, содержащие числа в базе данных',
+ abstract: 'Считает ячейки, содержащие числа в базе данных',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/dcount-function-c1fc7b93-fb0d-4d8d-97db-8d5f076eaeb1',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ DCOUNTA: {
+ description: 'Считает непустые ячейки в базе данных',
+ abstract: 'Считает непустые ячейки в базе данных',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/dcounta-function-00232a6d-5a66-4a01-a25b-c1653fda1244',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ DGET: {
+ description: 'Извлекает из базы данных одну запись, соответствующую заданным критериям',
+ abstract: 'Извлекает из базы данных одну запись, соответствующую заданным критериям',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/dget-function-455568bf-4eef-45f7-90f0-ec250d00892e',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ DMAX: {
+ description: 'Возвращает максимальное значение из выбранных записей базы данных',
+ abstract: 'Возвращает максимальное значение из выбранных записей базы данных',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/dmax-function-f4e8209d-8958-4c3d-a1ee-6351665d41c2',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ DMIN: {
+ description: 'Возвращает минимальное значение из выбранных записей базы данных',
+ abstract: 'Возвращает минимальное значение из выбранных записей базы данных',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/dmin-function-4ae6f1d9-1f26-40f1-a783-6dc3680192a3',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ DPRODUCT: {
+ description: 'Умножает значения в определенном поле записей, соответствующих критериям в базе данных',
+ abstract: 'Умножает значения в определенном поле записей, соответствующих критериям в базе данных',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/dproduct-function-4f96b13e-d49c-47a7-b769-22f6d017cb31',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ DSTDEV: {
+ description: 'Оценивает стандартное отклонение на основе выборки из выбранных записей базы данных',
+ abstract: 'Оценивает стандартное отклонение на основе выборки из выбранных записей базы данных',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/dstdev-function-026b8c73-616d-4b5e-b072-241871c4ab96',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ DSTDEVP: {
+ description: 'Вычисляет стандартное отклонение на основе всей совокупности выбранных записей базы данных',
+ abstract: 'Вычисляет стандартное отклонение на основе всей совокупности выбранных записей базы данных',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/dstdevp-function-04b78995-da03-4813-bbd9-d74fd0f5d94b',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ DSUM: {
+ description: 'Складывает числа в столбце поля записей в базе данных, которые соответствуют критериям',
+ abstract: 'Складывает числа в столбце поля записей в базе данных, которые соответствуют критериям',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/dsum-function-53181285-0c4b-4f5a-aaa3-529a322be41b',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ DVAR: {
+ description: 'Оценивает дисперсию на основе выборки из выбранных записей базы данных',
+ abstract: 'Оценивает дисперсию на основе выборки из выбранных записей базы данных',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/dvar-function-d6747ca9-99c7-48bb-996e-9d7af00f3ed1',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ DVARP: {
+ description: 'Вычисляет дисперсию на основе всей совокупности выбранных записей базы данных',
+ abstract: 'Вычисляет дисперсию на основе всей совокупности выбранных записей базы данных',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/dvarp-function-eb0ba387-9cb7-45c8-81e9-0394912502fc',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+};
diff --git a/packages/sheets-formula/src/locale/function-list/date/ru-RU.ts b/packages/sheets-formula/src/locale/function-list/date/ru-RU.ts
new file mode 100644
index 0000000000..5a3d76c357
--- /dev/null
+++ b/packages/sheets-formula/src/locale/function-list/date/ru-RU.ts
@@ -0,0 +1,21 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import enUS from './en-US';
+
+export default enUS;
+
+// export default {};
diff --git a/packages/sheets-formula/src/locale/function-list/engineering/ru-RU.ts b/packages/sheets-formula/src/locale/function-list/engineering/ru-RU.ts
new file mode 100644
index 0000000000..5a3d76c357
--- /dev/null
+++ b/packages/sheets-formula/src/locale/function-list/engineering/ru-RU.ts
@@ -0,0 +1,21 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import enUS from './en-US';
+
+export default enUS;
+
+// export default {};
diff --git a/packages/sheets-formula/src/locale/function-list/financial/ru-RU.ts b/packages/sheets-formula/src/locale/function-list/financial/ru-RU.ts
new file mode 100644
index 0000000000..5a3d76c357
--- /dev/null
+++ b/packages/sheets-formula/src/locale/function-list/financial/ru-RU.ts
@@ -0,0 +1,21 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import enUS from './en-US';
+
+export default enUS;
+
+// export default {};
diff --git a/packages/sheets-formula/src/locale/function-list/information/ru-RU.ts b/packages/sheets-formula/src/locale/function-list/information/ru-RU.ts
new file mode 100644
index 0000000000..5a3d76c357
--- /dev/null
+++ b/packages/sheets-formula/src/locale/function-list/information/ru-RU.ts
@@ -0,0 +1,21 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import enUS from './en-US';
+
+export default enUS;
+
+// export default {};
diff --git a/packages/sheets-formula/src/locale/function-list/logical/ru-RU.ts b/packages/sheets-formula/src/locale/function-list/logical/ru-RU.ts
new file mode 100644
index 0000000000..5a3d76c357
--- /dev/null
+++ b/packages/sheets-formula/src/locale/function-list/logical/ru-RU.ts
@@ -0,0 +1,21 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import enUS from './en-US';
+
+export default enUS;
+
+// export default {};
diff --git a/packages/sheets-formula/src/locale/function-list/lookup/ru-RU.ts b/packages/sheets-formula/src/locale/function-list/lookup/ru-RU.ts
new file mode 100644
index 0000000000..5a3d76c357
--- /dev/null
+++ b/packages/sheets-formula/src/locale/function-list/lookup/ru-RU.ts
@@ -0,0 +1,21 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import enUS from './en-US';
+
+export default enUS;
+
+// export default {};
diff --git a/packages/sheets-formula/src/locale/function-list/math/ru-RU.ts b/packages/sheets-formula/src/locale/function-list/math/ru-RU.ts
new file mode 100644
index 0000000000..5a3d76c357
--- /dev/null
+++ b/packages/sheets-formula/src/locale/function-list/math/ru-RU.ts
@@ -0,0 +1,21 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import enUS from './en-US';
+
+export default enUS;
+
+// export default {};
diff --git a/packages/sheets-formula/src/locale/function-list/statistical/ru-RU.ts b/packages/sheets-formula/src/locale/function-list/statistical/ru-RU.ts
new file mode 100644
index 0000000000..2468f2b2dd
--- /dev/null
+++ b/packages/sheets-formula/src/locale/function-list/statistical/ru-RU.ts
@@ -0,0 +1,281 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import enUS from './en-US';
+
+export default enUS;
+
+// export default {
+// AVEDEV: {
+// description: 'Возвращает среднее абсолютное отклонение значений выборки от их среднего арифметического',
+// abstract: 'Возвращает среднее абсолютное отклонение значений выборки от их среднего арифметического',
+// links: [
+// {
+// title: 'Инструкция',
+// url: 'https://support.microsoft.com/ru-ru/office/функция-avedev-58fe8d65-2a84-4dc7-8052-f3f87b5c6639',
+// },
+// ],
+// functionParameter: {
+// number1: { name: 'number1', detail: 'первое' },
+// number2: { name: 'number2', detail: 'второе' },
+// },
+// },
+// AVERAGE: {
+// description: 'Возвращает среднее арифметическое аргументов.',
+// abstract: 'Возвращает среднее арифметическое аргументов',
+// links: [
+// {
+// title: 'Инструкция',
+// url: 'https://support.microsoft.com/ru-ru/office/функция-average-047bac88-d466-426c-a32b-8f33eb960cf6',
+// },
+// ],
+// functionParameter: {
+// number1: {
+// name: 'number1',
+// detail: 'Первое число, ссылка на ячейку или диапазон, для которого требуется вычислить среднее арифметическое.',
+// },
+// number2: {
+// name: 'number2',
+// detail: 'Дополнительные числа, ссылки на ячейки или диапазоны, для которых требуется вычислить среднее арифметическое, максимум 255.',
+// },
+// },
+// },
+// AVERAGEA: {
+// description: 'Возвращает среднее арифметическое своих аргументов, включая числа, текст и логические значения',
+// abstract: 'Возвращает среднее арифметическое своих аргументов, включая числа, текст и логические значения',
+// links: [
+// {
+// title: 'Инструкция',
+// url: 'https://support.microsoft.com/ru-ru/office/функция-averagea-f5f84098-d453-4f4c-bbba-3d2c66356091',
+// },
+// ],
+// functionParameter: {
+// number1: { name: 'number1', detail: 'первое' },
+// number2: { name: 'number2', detail: 'второе' },
+// },
+// },
+// AVERAGEIF: {
+// description: 'Возвращает среднее арифметическое всех ячеек в диапазоне, удовлетворяющих заданному критерию',
+// abstract: 'Возвращает среднее арифметическое всех ячеек в диапазоне, удовлетворяющих заданному критерию',
+// links: [
+// {
+// title: 'Инструкция',
+// url: 'https://support.microsoft.com/ru-ru/office/функция-averageif-faec8e2e-0dec-4308-af69-f5576d8ac642',
+// },
+// ],
+// functionParameter: {
+// number1: { name: 'number1', detail: 'первое' },
+// number2: { name: 'number2', detail: 'второе' },
+// },
+// },
+// AVERAGEIFS: {
+// description: 'Возвращает среднее арифметическое всех ячеек, удовлетворяющих нескольким критериям',
+// abstract: 'Возвращает среднее арифметическое всех ячеек, удовлетворяющих нескольким критериям',
+// links: [
+// {
+// title: 'Инструкция',
+// url: 'https://support.microsoft.com/ru-ru/office/функция-averageifs-48910c45-1fc0-4389-a028-f7c5c3001690',
+// },
+// ],
+// functionParameter: {
+// number1: { name: 'number1', detail: 'первое' },
+// number2: { name: 'number2', detail: 'второе' },
+// },
+// },
+// BETA_DIST: {
+// description: 'Возвращает бета-функцию плотности вероятности',
+// abstract: 'Возвращает бета-функцию плотности вероятности',
+// links: [
+// {
+// title: 'Инструкция',
+// url: 'https://support.microsoft.com/ru-ru/office/функция-beta-dist-11188c9c-780a-42c7-ba43-9ecb5a878d31',
+// },
+// ],
+// functionParameter: {
+// number1: { name: 'number1', detail: 'первое' },
+// number2: { name: 'number2', detail: 'второе' },
+// },
+// },
+// BETA_INV: {
+// description: 'Возвращает обратное значение функции бета-распределения',
+// abstract: 'Возвращает обратное значение функции бета-распределения',
+// links: [
+// {
+// title: 'Инструкция',
+// url: 'https://support.microsoft.com/ru-ru/office/функция-beta-inv-e84cb8aa-8df0-4cf6-9892-83a341d252eb',
+// },
+// ],
+// functionParameter: {
+// number1: { name: 'number1', detail: 'первое' },
+// number2: { name: 'number2', detail: 'второе' },
+// },
+// },
+// BINOM_DIST: {
+// description: 'Возвращает индивидуальное биномиальное распределение вероятностей',
+// abstract: 'Возвращает индивидуальное биномиальное распределение вероятностей',
+// links: [
+// {
+// title: 'Инструкция',
+// url: 'https://support.microsoft.com/ru-ru/office/функция-binom-dist-c5ae37b6-f39c-4be2-94c2-509a1480770c',
+// },
+// ],
+// functionParameter: {
+// number1: { name: 'number1', detail: 'первое' },
+// number2: { name: 'number2', detail: 'второе' },
+// },
+// },
+// BINOM_DIST_RANGE: {
+// description: 'Возвращает вероятность результата испытания с использованием биномиального распределения',
+// abstract: 'Возвращает вероятность результата испытания с использованием биномиального распределения',
+// links: [
+// {
+// title: 'Инструкция',
+// url: 'https://support.microsoft.com/ru-ru/office/функция-binom-dist-range-17331329-74c7-4053-bb4c-6653a7421595',
+// },
+// ],
+// functionParameter: {
+// number1: { name: 'number1', detail: 'первое' },
+// number2: { name: 'number2', detail: 'второе' },
+// },
+// },
+// BINOM_INV: {
+// description: 'Возвращает наименьшее значение, для которого кумулятивное биномиальное распределение меньше или равно критерию',
+// abstract: 'Возвращает наименьшее значение, для которого кумулятивное биномиальное распределение меньше или равно критериальному значению',
+// links: [
+// {
+// title: 'Инструкция',
+// url: 'https://support.microsoft.com/ru-ru/office/функция-binom-inv-80a0370c-ada6-49b4-83e7-05a91ba77ac9',
+// },
+// ],
+// functionParameter: {
+// number1: { name: 'number1', detail: 'первое' },
+// number2: { name: 'number2', detail: 'второе' },
+// },
+// },
+// CHISQ_DIST: {
+// description: 'Возвращает кумулятивную бета-функцию плотности вероятности',
+// abstract: 'Возвращает кумулятивную бета-функцию плотности вероятности',
+// links: [
+// {
+// title: 'Инструкция',
+// url: 'https://support.microsoft.com/ru-ru/office/функция-chisq-dist-8486b05e-5c05-4942-a9ea-f6b341518732',
+// },
+// ],
+// functionParameter: {
+// number1: { name: 'number1', detail: 'первое' },
+// number2: { name: 'number2', detail: 'второе' },
+// },
+// },
+// CHISQ_DIST_RT: {
+// description: 'Возвращает одностороннюю вероятность распределения хи-квадрат',
+// abstract: 'Возвращает одностороннюю вероятность распределения хи-квадрат',
+// links: [
+// {
+// title: 'Инструкция',
+// url: 'https://support.microsoft.com/ru-ru/office/функция-chisq-dist-rt-dc4832e8-ed2b-49ae-8d7c-b28d5804c0f2',
+// },
+// ],
+// functionParameter: {
+// number1: { name: 'number1', detail: 'первое' },
+// number2: { name: 'number2', detail: 'второе' },
+// },
+// },
+// CHISQ_INV: {
+// description: 'Возвращает кумулятивную бета-функцию плотности вероятности',
+// abstract: 'Возвращает кумулятивную бета-функцию плотности вероятности',
+// links: [
+// {
+// title: 'Инструкция',
+// url: 'https://support.microsoft.com/ru-ru/office/функция-chisq-inv-400db556-62b3-472d-80b3-254723e7092f',
+// },
+// ],
+// functionParameter: {
+// number1: { name: 'number1', detail: 'первое' },
+// number2: { name: 'number2', detail: 'второе' },
+// },
+// },
+// CHISQ_INV_RT: {
+// description: 'Возвращает обратное значение односторонней вероятности распределения хи-квадрат',
+// abstract: 'Возвращает обратное значение односторонней вероятности распределения хи-квадрат',
+// links: [
+// {
+// title: 'Инструкция',
+// url: 'https://support.microsoft.com/ru-ru/office/функция-chisq-inv-rt-435b5ed8-98d5-4da6-823f-293e2cbc94fe',
+// },
+// ],
+// functionParameter: {
+// number1: { name: 'number1', detail: 'первое' },
+// number2: { name: 'number2', detail: 'второе' },
+// },
+// },
+// CHISQ_TEST: {
+// description: 'Возвращает тест на независимость',
+// abstract: 'Возвращает тест на независимость',
+// links: [
+// {
+// title: 'Инструкция',
+// url: 'https://support.microsoft.com/ru-ru/office/функция-chisq-test-2e8a7861-b14a-4985-aa93-fb88de3f260f',
+// },
+// ],
+// functionParameter: {
+// number1: { name: 'number1', detail: 'первое' },
+// number2: { name: 'number2', detail: 'второе' },
+// },
+// },
+// CONFIDENCE_NORM: {
+// description: 'Возвращает доверительный интервал для среднего значения генеральной совокупности',
+// abstract: 'Возвращает доверительный интервал для среднего значения генеральной совокупности',
+// links: [
+// {
+// title: 'Инструкция',
+// url: 'https://support.microsoft.com/ru-ru/office/функция-confidence-norm-7cec58a6-85bb-488d-91c3-63828d4fbfd4',
+// },
+// ],
+// functionParameter: {
+// number1: { name: 'number1', detail: 'первое' },
+// number2: { name: 'number2', detail: 'второе' },
+// },
+// },
+// CONFIDENCE_T: {
+// description: 'Возвращает доверительный интервал для среднего значения генеральной совокупности с использованием распределения Стьюдента',
+// abstract: 'Возвращает доверительный интервал для среднего значения генеральной совокупности с использованием распределения Стьюдента',
+// links: [
+// {
+// title: 'Инструкция',
+// url: 'https://support.microsoft.com/ru-ru/office/функция-confidence-t-e8eca395-6c3a-4ba9-9003-79ccc61d3c53',
+// },
+// ],
+// functionParameter: {
+// number1: { name: 'number1', detail: 'первое' },
+// number2: { name: 'number2', detail: 'второе' },
+// },
+// },
+// CORREL: {
+// description: 'Возвращает коэффициент корреляции между двумя наборами данных',
+// abstract: 'Возвращает коэффициент корреляции между двумя наборами данных',
+// links: [
+// {
+// title: 'Инструкция',
+// url: 'https://support.microsoft.com/ru-ru/office/функция-correl-995dcef7-0c0a-4bed-a3fb-239d7b68ca92',
+// },
+// ],
+// functionParameter: {
+// number1: { name: 'number1', detail: 'первое' },
+// number2: { name: 'number2', detail: 'второе' },
+// },
+// },
+// //TODO: Закончить перевод(честно говоря, я устал, слишком много его)
+// };
diff --git a/packages/sheets-formula/src/locale/function-list/text/ru-RU.ts b/packages/sheets-formula/src/locale/function-list/text/ru-RU.ts
new file mode 100644
index 0000000000..16925fecc9
--- /dev/null
+++ b/packages/sheets-formula/src/locale/function-list/text/ru-RU.ts
@@ -0,0 +1,677 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+export default {
+ ASC: {
+ description: 'Преобразует символы полного (двойного) байта английских букв или катаканы внутри строки символов в символы половинного (одинарного) байта',
+ abstract: 'Преобразует символы полного (двойного) байта английских букв или катаканы внутри строки символов в символы половинного (одинарного) байта',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/asc-function-0b6abf1c-c663-4004-a964-ebc00b723266',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ ARRAYTOTEXT: {
+ description: 'Возвращает массив текстовых значений из любого указанного диапазона',
+ abstract: 'Возвращает массив текстовых значений из любого указанного диапазона',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/arraytotext-function-9cdcad46-2fa5-4c6b-ac92-14e7bc862b8b',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ BAHTTEXT: {
+ description: 'Преобразует число в текст, используя валютный формат ß (бат)',
+ abstract: 'Преобразует число в текст, используя валютный формат ß (бат)',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/bahttext-function-5ba4d0b4-abd3-4325-8d22-7a92d59aab9c',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ CHAR: {
+ description: 'Возвращает символ, указанный номером кода',
+ abstract: 'Возвращает символ, указанный номером кода',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/char-function-bbd249c8-b36e-4a91-8017-1c133f9b837a',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ CLEAN: {
+ description: 'Удаляет все непечатаемые символы из текста',
+ abstract: 'Удаляет все непечатаемые символы из текста',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/clean-function-26f3d7c5-475f-4a9c-90e5-4b8ba987ba41',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ CODE: {
+ description: 'Возвращает числовой код для первого символа в текстовой строке',
+ abstract: 'Возвращает числовой код для первого символа в текстовой строке',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/code-function-c32b692b-2ed0-4a04-bdd9-75640144b928',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ CONCAT: {
+ description: 'Объединяет текст из нескольких диапазонов и/или строк, но не предоставляет аргументы разделителя или IgnoreEmpty.',
+ abstract: 'Объединяет текст из нескольких диапазонов и/или строк, но не предоставляет аргументы разделителя или IgnoreEmpty.',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/concat-function-9b1a9a3f-94ff-41af-9736-694cbd6b4ca2',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ CONCATENATE: {
+ description: 'Объединяет несколько текстовых элементов в один текстовый элемент',
+ abstract: 'Объединяет несколько текстовых элементов в один текстовый элемент',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/concatenate-function-8f8ae884-2ca8-4f7a-b093-75d702bea31d',
+ },
+ ],
+ functionParameter: {
+ text1: { name: 'Текст 1', detail: 'Первый элемент для объединения. Элемент может быть текстовым значением, числом или ссылкой на ячейку.' },
+ text2: { name: 'Текст 2', detail: 'Дополнительные текстовые элементы для объединения. Можно использовать до 255 элементов, общей длиной до 8192 символов.' },
+ },
+ },
+ DBCS: {
+ description: 'Преобразует символы половинного (одинарного) байта английских букв или катаканы внутри строки символов в символы полного (двойного) байта',
+ abstract: 'Преобразует символы половинного (одинарного) байта английских букв или катаканы внутри строки символов в символы полного (двойного) байта',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/dbcs-function-a4025e73-63d2-4958-9423-21a24794c9e5',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ DOLLAR: {
+ description: 'Преобразует число в текст, используя валютный формат $ (доллар)',
+ abstract: 'Преобразует число в текст, используя валютный формат $ (доллар)',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/dollar-function-a6cd05d9-9740-4ad3-a469-8109d18ff611',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ EXACT: {
+ description: 'Проверяет, идентичны ли два текстовых значения',
+ abstract: 'Проверяет, идентичны ли два текстовых значения',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/exact-function-d3087698-fc15-4a15-9631-12575cf29926',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ FIND: {
+ description: 'Находит одно текстовое значение внутри другого (с учетом регистра)',
+ abstract: 'Находит одно текстовое значение внутри другого (с учетом регистра)',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/find-findb-functions-c7912941-af2a-4bdf-a553-d0d89b0a0628',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ FINDB: {
+ description: 'Находит одно текстовое значение внутри другого (с учетом регистра)',
+ abstract: 'Находит одно текстовое значение внутри другого (с учетом регистра)',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/find-findb-functions-c7912941-af2a-4bdf-a553-d0d89b0a0628',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ FIXED: {
+ description: 'Форматирует число как текст с фиксированным количеством десятичных знаков',
+ abstract: 'Форматирует число как текст с фиксированным количеством десятичных знаков',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/fixed-function-ffd5723c-324c-45e9-8b96-e41be2a8274a',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ LEFT: {
+ description: 'Возвращает крайние левые символы из текстового значения',
+ abstract: 'Возвращает крайние левые символы из текстового значения',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/left-leftb-functions-9203d2d2-7960-479b-84c6-1ea52b99640c',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ LEFTB: {
+ description: 'Возвращает крайние левые символы из текстового значения',
+ abstract: 'Возвращает крайние левые символы из текстового значения',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/left-leftb-functions-9203d2d2-7960-479b-84c6-1ea52b99640c',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ LEN: {
+ description: 'Возвращает количество символов в текстовой строке',
+ abstract: 'Возвращает количество символов в текстовой строке',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/len-lenb-functions-29236f94-cedc-429d-affd-b5e33d2c67cb',
+ },
+ ],
+ functionParameter: {
+ text: { name: 'текст', detail: 'Текст, длину которого вы хотите узнать. Пробелы считаются символами.' },
+ },
+ },
+ LENB: {
+ description: 'Возвращает количество байтов, используемых для представления символов в текстовой строке.',
+ abstract: 'Возвращает количество байтов, используемых для представления символов в текстовой строке',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/len-lenb-functions-29236f94-cedc-429d-affd-b5e33d2c67cb',
+ },
+ ],
+ functionParameter: {
+ text: { name: 'текст', detail: 'Текст, длину которого вы хотите узнать. Пробелы считаются символами.' },
+ },
+ },
+ LOWER: {
+ description: 'Преобразует текст в нижний регистр.',
+ abstract: 'Преобразует текст в нижний регистр',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/lower-function-3f21df02-a80c-44b2-afaf-81358f9fdeb4',
+ },
+ ],
+ functionParameter: {
+ text: {
+ name: 'текст',
+ detail: 'Текст, который вы хотите преобразовать в нижний регистр. LOWER не изменяет символы в тексте, которые не являются буквами.',
+ },
+ },
+ },
+ MID: {
+ description: 'Возвращает определенное количество символов из текстовой строки, начиная с указанной позиции',
+ abstract: 'Возвращает определенное количество символов из текстовой строки, начиная с указанной позиции',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/mid-midb-functions-d5f9e25c-d7d6-472e-b568-4ecb12433028',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ MIDB: {
+ description: 'Возвращает определенное количество символов из текстовой строки, начиная с указанной позиции',
+ abstract: 'Возвращает определенное количество символов из текстовой строки, начиная с указанной позиции',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/mid-midb-functions-d5f9e25c-d7d6-472e-b568-4ecb12433028',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ NUMBERVALUE: {
+ description: 'Преобразует текст в число независимо от региональных стандартов',
+ abstract: 'Преобразует текст в число независимо от региональных стандартов',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/numbervalue-function-1b05c8cf-2bfa-4437-af70-596c7ea7d879',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ PHONETIC: {
+ description: 'Извлекает фонетические (фуригана) символы из текстовой строки',
+ abstract: 'Извлекает фонетические (фуригана) символы из текстовой строки',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/phonetic-function-9a329dac-0c0f-42f8-9a55-639086988554',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ PROPER: {
+ description: 'Преобразует первый символ каждого слова в текстовом значении в заглавную букву',
+ abstract: 'Преобразует первый символ каждого слова в текстовом значении в заглавную букву',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/proper-function-52a5a283-e8b2-49be-8506-b2887b889f94',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ REPLACE: {
+ description: 'Заменяет символы в тексте',
+ abstract: 'Заменяет символы в тексте',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/replace-replaceb-functions-8d799074-2425-4a8a-84bc-82472868878a',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ REPLACEB: {
+ description: 'Заменяет символы в тексте',
+ abstract: 'Заменяет символы в тексте',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/replace-replaceb-functions-8d799074-2425-4a8a-84bc-82472868878a',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ REPT: {
+ description: 'Повторяет текст заданное количество раз',
+ abstract: 'Повторяет текст заданное количество раз',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/rept-function-04c4d778-e712-43b4-9c15-d656582bb061',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ RIGHT: {
+ description: 'Возвращает крайние правые символы из текстового значения',
+ abstract: 'Возвращает крайние правые символы из текстового значения',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/right-rightb-functions-240267ee-9afa-4639-a02b-f19e1786cf2f',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ RIGHTB: {
+ description: 'Возвращает крайние правые символы из текстового значения',
+ abstract: 'Возвращает крайние правые символы из текстового значения',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/right-rightb-functions-240267ee-9afa-4639-a02b-f19e1786cf2f',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ SEARCH: {
+ description: 'Находит одно текстовое значение внутри другого (без учета регистра)',
+ abstract: 'Находит одно текстовое значение внутри другого (без учета регистра)',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/search-searchb-functions-9ab04538-0e55-4719-a72e-b6f54513b495',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ SEARCHB: {
+ description: 'Находит одно текстовое значение внутри другого (без учета регистра)',
+ abstract: 'Находит одно текстовое значение внутри другого (без учета регистра)',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/search-searchb-functions-9ab04538-0e55-4719-a72e-b6f54513b495',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ SUBSTITUTE: {
+ description: 'Заменяет новый текст на старый текст в строке текста',
+ abstract: 'Заменяет новый текст на старый текст в строке текста',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/substitute-function-6434944e-a904-4336-a9b0-1e58df3bc332',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ T: {
+ description: 'Преобразует свои аргументы в текст',
+ abstract: 'Преобразует свои аргументы в текст',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/t-function-fb83aeec-45e7-4924-af95-53e073541228',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ TEXT: {
+ description: 'Форматирует число и преобразует его в текст',
+ abstract: 'Форматирует число и преобразует его в текст',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/text-function-20d5ac4d-7b94-49fd-bb38-93d29371225c',
+ },
+ ],
+ functionParameter: {
+ value: { name: 'значение', detail: 'Числовое значение, которое вы хотите преобразовать в текст.' },
+ formatText: { name: 'формат_текста', detail: 'Строка текста, которая определяет форматирование, которое вы хотите применить к указанному значению.' },
+ },
+ },
+ TEXTAFTER: {
+ description: 'Возвращает текст, который находится после указанного символа или строки',
+ abstract: 'Возвращает текст, который находится после указанного символа или строки',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/textafter-function-c8db2546-5b51-416a-9690-c7e6722e90b4',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ TEXTBEFORE: {
+ description: 'Возвращает текст, который находится до указанного символа или строки',
+ abstract: 'Возвращает текст, который находится до указанного символа или строки',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/textbefore-function-d099c28a-dba8-448e-ac6c-f086d0fa1b29',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ TEXTJOIN: {
+ description: 'Объединяет текст из нескольких диапазонов и/или строк',
+ abstract: 'Объединяет текст из нескольких диапазонов и/или строк',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/textjoin-function-357b449a-ec91-49d0-80c3-0e8fc845691c',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ TEXTSPLIT: {
+ description: 'Разделяет текстовые строки, используя разделители столбцов и строк',
+ abstract: 'Разделяет текстовые строки, используя разделители столбцов и строк',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/textsplit-function-b1ca414e-4c21-4ca0-b1b7-bdecace8a6e7',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ TRIM: {
+ description: 'Удаляет пробелы из текста',
+ abstract: 'Удаляет пробелы из текста',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/trim-function-410388fa-c5df-49c6-b16c-9e5630b479f9',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ UNICHAR: {
+ description: 'Возвращает Юникод-символ, на который ссылается заданное числовое значение',
+ abstract: 'Возвращает Юникод-символ, на который ссылается заданное числовое значение',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/unichar-function-ffeb64f5-f131-44c6-b332-5cd72f0659b8',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ UNICODE: {
+ description: 'Возвращает номер (кодовый пункт), соответствующий первому символу текста',
+ abstract: 'Возвращает номер (кодовый пункт), соответствующий первому символу текста',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/unicode-function-adb74aaa-a2a5-4dde-aff6-966e4e81f16f',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ UPPER: {
+ description: 'Преобразует текст в верхний регистр',
+ abstract: 'Преобразует текст в верхний регистр',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/upper-function-c11f29b3-d1a3-4537-8df6-04d0049963d6',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ VALUE: {
+ description: 'Преобразует текстовый аргумент в число',
+ abstract: 'Преобразует текстовый аргумент в число',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/value-function-257d0108-07dc-437d-ae1c-bc2d3953d8c2',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ VALUETOTEXT: {
+ description: 'Возвращает текст из любого указанного значения',
+ abstract: 'Возвращает текст из любого указанного значения',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/valuetotext-function-5fff61a2-301a-4ab2-9ffa-0a5242a08fea',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ CALL: {
+ description: 'Вызывает процедуру в динамической библиотеке или ресурсе кода',
+ abstract: 'Вызывает процедуру в динамической библиотеке или ресурсе кода',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/call-function-32d58445-e646-4ffd-8d5e-b45077a5e995',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ EUROCONVERT: {
+ description: 'Преобразует число в евро, преобразует число из евро в валюту страны-члена еврозоны или преобразует число из одной валюты страны-члена еврозоны в другую, используя евро в качестве промежуточного звена (триангуляция)',
+ abstract: 'Преобразует число в евро, преобразует число из евро в валюту страны-члена еврозоны или преобразует число из одной валюты страны-члена еврозоны в другую, используя евро в качестве промежуточного звена (триангуляция)',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/euroconvert-function-79c8fd67-c665-450c-bb6c-15fc92f8345c',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ REGISTER_ID: {
+ description: 'Возвращает ID регистрации указанной динамической библиотеки (DLL) или ресурса кода, который был ранее зарегистрирован',
+ abstract: 'Возвращает ID регистрации указанной динамической библиотеки (DLL) или ресурса кода, который был ранее зарегистрирован',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/register-id-function-f8f0af0f-fd66-4704-a0f2-87b27b175b50',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+};
+
diff --git a/packages/sheets-formula/src/locale/function-list/univer/ru-RU.ts b/packages/sheets-formula/src/locale/function-list/univer/ru-RU.ts
new file mode 100644
index 0000000000..1c4630e861
--- /dev/null
+++ b/packages/sheets-formula/src/locale/function-list/univer/ru-RU.ts
@@ -0,0 +1,17 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+export default {};
diff --git a/packages/sheets-formula/src/locale/function-list/web/ru-RU.ts b/packages/sheets-formula/src/locale/function-list/web/ru-RU.ts
new file mode 100644
index 0000000000..35dbab0ba7
--- /dev/null
+++ b/packages/sheets-formula/src/locale/function-list/web/ru-RU.ts
@@ -0,0 +1,60 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+export default {
+ ENCODEURL: {
+ description: 'Возвращает строку, закодированную в формате URL',
+ abstract: 'Возвращает строку, закодированную в формате URL',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/encodeurl-function-07c7fb90-7c60-4bff-8687-fac50fe33d0e',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ FILTERXML: {
+ description: 'Возвращает конкретные данные из XML-содержимого, используя указанный XPath',
+ abstract: 'Возвращает конкретные данные из XML-содержимого, используя указанный XPath',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/filterxml-function-4df72efc-11ec-4951-86f5-c1374812f5b7',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+ WEBSERVICE: {
+ description: 'Возвращает данные с веб-сервиса',
+ abstract: 'Возвращает данные с веб-сервиса',
+ links: [
+ {
+ title: 'Инструкция',
+ url: 'https://support.microsoft.com/ru-ru/office/webservice-function-0546a35a-ecc6-4739-aed7-c0b7ce1562c4',
+ },
+ ],
+ functionParameter: {
+ number1: { name: 'number1', detail: 'первый' },
+ number2: { name: 'number2', detail: 'второй' },
+ },
+ },
+};
diff --git a/packages/sheets-formula/src/locale/index.ts b/packages/sheets-formula/src/locale/index.ts
index 1eff5fc204..ab1fcfc7ee 100644
--- a/packages/sheets-formula/src/locale/index.ts
+++ b/packages/sheets-formula/src/locale/index.ts
@@ -16,3 +16,4 @@
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';
+export { default as ruRU } from './ru-RU';
diff --git a/packages/sheets-formula/src/locale/ru-RU.ts b/packages/sheets-formula/src/locale/ru-RU.ts
new file mode 100644
index 0000000000..e83e898603
--- /dev/null
+++ b/packages/sheets-formula/src/locale/ru-RU.ts
@@ -0,0 +1,113 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import array from './function-list/array/ru-RU'; // TODO
+import compatibility from './function-list/compatibility/ru-RU'; // TODO
+import cube from './function-list/cube/ru-RU';
+import database from './function-list/database/ru-RU';
+import date from './function-list/date/ru-RU'; // TODO
+import engineering from './function-list/engineering/ru-RU'; // TODO
+import financial from './function-list/financial/ru-RU'; // TODO
+import information from './function-list/information/ru-RU'; // TODO
+import logical from './function-list/logical/ru-RU'; // TODO
+import lookup from './function-list/lookup/ru-RU'; // TODO
+import math from './function-list/math/en-US'; // TODO
+import statistical from './function-list/statistical/en-US'; // TODO
+import text from './function-list/text/ru-RU';
+import univer from './function-list/univer/ru-RU';
+import web from './function-list/web/ru-RU';
+
+export default {
+ formula: {
+ insert: {
+ tooltip: 'Функции',
+ sum: 'СУММ',
+ average: 'СРЗНАЧ',
+ count: 'СЧЁТ',
+ max: 'МАКС',
+ min: 'МИН',
+ more: 'Другие функции...',
+ },
+ functionList: {
+ ...financial,
+ ...date,
+ ...math,
+ ...statistical,
+ ...lookup,
+ ...database,
+ ...text,
+ ...logical,
+ ...information,
+ ...engineering,
+ ...cube,
+ ...compatibility,
+ ...web,
+ ...array,
+ ...univer,
+ },
+ prompt: {
+ helpExample: 'ПРИМЕР',
+ helpAbstract: 'ОПИСАНИЕ',
+ required: 'Обязательно.',
+ optional: 'Необязательно.',
+ },
+ error: {
+ title: 'Ошибка',
+ divByZero: 'Ошибка деления на ноль',
+ name: 'Ошибка неверного имени',
+ value: 'Ошибка в значении',
+ num: 'Ошибка числа',
+ na: 'Ошибка недоступного значения',
+ cycle: 'Ошибка циклической ссылки',
+ ref: 'Ошибка неверной ссылки на ячейку',
+ spill: 'Диапазон разлива не пуст',
+ calc: 'Ошибка вычисления',
+ error: 'Ошибка',
+ connect: 'Получение данных',
+ null: 'Ошибка нулевого значения',
+ },
+
+ functionType: {
+ financial: 'Финансовые',
+ date: 'Дата и время',
+ math: 'Математика и тригонометрия',
+ statistical: 'Статистические',
+ lookup: 'Поиск и ссылки',
+ database: 'База данных',
+ text: 'Текстовые',
+ logical: 'Логические',
+ information: 'Информационные',
+ engineering: 'Инженерные',
+ cube: 'Куб',
+ compatibility: 'Совместимость',
+ web: 'Веб',
+ array: 'Массив',
+ univer: 'Универсальные',
+ user: 'Пользовательские',
+ },
+ moreFunctions: {
+ confirm: 'Подтвердить',
+ prev: 'Предыдущий',
+ next: 'Следующий',
+ searchFunctionPlaceholder: 'Поиск функции',
+ allFunctions: 'Все функции',
+ syntax: 'СИНТАКСИС',
+ },
+ operation: {
+ pasteFormula: 'Вставить Формулу',
+ },
+ },
+};
diff --git a/packages/sheets-numfmt/src/components/stories/Panel.stories.tsx b/packages/sheets-numfmt/src/components/stories/Panel.stories.tsx
index 6863e7fa24..03784cf1f4 100644
--- a/packages/sheets-numfmt/src/components/stories/Panel.stories.tsx
+++ b/packages/sheets-numfmt/src/components/stories/Panel.stories.tsx
@@ -20,7 +20,7 @@ import type { Dependency } from '@wendellhu/redi';
import { RediContext } from '@wendellhu/redi/react-bindings';
import React, { useContext, useState } from 'react';
-import { enUS, zhCN } from '../../locale';
+import { enUS, ruRU, zhCN } from '../../locale';
import type { ISheetNumfmtPanelProps } from '../index';
import { SheetNumfmtPanel } from '../index';
import { UserHabitController } from '../../controllers/user-habit.controller';
@@ -47,6 +47,7 @@ export const Test: StoryObj<ISheetNumfmtPanelProps> = {
injector?.get(LocaleService).load({
[LocaleType.EN_US]: enUS,
[LocaleType.ZH_CN]: zhCN,
+ [LocaleType.RU_RU]: ruRU,
});
deps.forEach((dependency) => injector?.add(dependency));
diff --git a/packages/sheets-numfmt/src/index.ts b/packages/sheets-numfmt/src/index.ts
index 901bfa7a36..a6c69f419f 100644
--- a/packages/sheets-numfmt/src/index.ts
+++ b/packages/sheets-numfmt/src/index.ts
@@ -15,6 +15,6 @@
*/
export { type ISetNumfmtCommandParams, SetNumfmtCommand } from './commands/commands/set-numfmt.command';
-export { enUS, zhCN } from './locale';
+export { enUS, zhCN, ruRU } from './locale';
export { UniverSheetsNumfmtPlugin } from './numfmt-plugin';
export { getPatternPreview } from './utils/pattern';
diff --git a/packages/sheets-numfmt/src/locale/index.ts b/packages/sheets-numfmt/src/locale/index.ts
index 1eff5fc204..ab1fcfc7ee 100644
--- a/packages/sheets-numfmt/src/locale/index.ts
+++ b/packages/sheets-numfmt/src/locale/index.ts
@@ -16,3 +16,4 @@
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';
+export { default as ruRU } from './ru-RU';
diff --git a/packages/sheets-numfmt/src/locale/ru-RU.ts b/packages/sheets-numfmt/src/locale/ru-RU.ts
new file mode 100644
index 0000000000..58172121c4
--- /dev/null
+++ b/packages/sheets-numfmt/src/locale/ru-RU.ts
@@ -0,0 +1,56 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type zhCN from './zh-CN';
+
+const locale: typeof zhCN = {
+ sheet: {
+ numfmt: {
+ percent: 'Процент',
+ title: 'Формат числа',
+ numfmtType: 'Типы форматов',
+ cancel: 'Отмена',
+ confirm: 'Подтвердить',
+ general: 'Общий',
+ accounting: 'Бухгалтерский',
+ text: 'Текст',
+ number: 'Число',
+ currency: 'Валюта',
+ date: 'Дата',
+ time: 'Время',
+ thousandthPercentile: 'Разделитель тысяч',
+ preview: 'Предпросмотр',
+ dateTime: 'Дата и время',
+ decimalLength: 'Десятичные знаки',
+ currencyType: 'Символ валюты',
+ moreFmt: 'Другие форматы',
+ financialValue: 'Финансовое значение',
+ roundingCurrency: 'Округление валюты',
+ timeDuration: 'Продолжительность времени',
+ currencyDes: 'Формат валюты используется для представления общих значений валюты. Формат бухгалтерского учета выравнивает столбец значений по десятичным точкам.',
+ accountingDes: 'Формат бухгалтерских чисел выравнивает столбец значений по символам валюты и десятичным точкам.',
+ dateType: 'Тип даты',
+ dateDes: 'Формат даты представляет значения времени и даты как значения даты.',
+ negType: 'Тип отрицательного числа',
+ generalDes: 'Обычный формат не содержит никакого специфического формата числа.',
+ thousandthPercentileDes: 'Формат процента используется для представления обычных чисел. Монетарные и бухгалтерские форматы предоставляют специальный формат для вычислений монетарных значений.',
+ addDecimal: 'Увеличить количество десятичных знаков',
+ subtractDecimal: 'Уменьшить количество десятичных знаков',
+ },
+ },
+};
+
+export default locale;
diff --git a/packages/sheets-ui/src/index.ts b/packages/sheets-ui/src/index.ts
index b7164c99e6..e6655f55d7 100644
--- a/packages/sheets-ui/src/index.ts
+++ b/packages/sheets-ui/src/index.ts
@@ -50,7 +50,7 @@ export {
export { useActiveWorkbook, useActiveWorksheet } from './components/hook';
export { whenSheetEditorFocused } from './controllers/shortcuts/utils';
export type { IEditorBridgeServiceParam } from './services/editor-bridge.service';
-export { enUS, zhCN } from './locale';
+export { enUS, zhCN, ruRU } from './locale';
export { AutoFillService, IAutoFillService } from './services/auto-fill/auto-fill.service';
export { getAutoFillRepeatRange } from './services/auto-fill/tools';
export type { ICopyDataPiece, ISheetAutoFillHook } from './services/auto-fill/type';
diff --git a/packages/sheets-ui/src/locale/index.ts b/packages/sheets-ui/src/locale/index.ts
index 1eff5fc204..ab1fcfc7ee 100644
--- a/packages/sheets-ui/src/locale/index.ts
+++ b/packages/sheets-ui/src/locale/index.ts
@@ -16,3 +16,4 @@
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';
+export { default as ruRU } from './ru-RU';
diff --git a/packages/sheets-ui/src/locale/ru-RU.ts b/packages/sheets-ui/src/locale/ru-RU.ts
new file mode 100644
index 0000000000..d8d69b5dde
--- /dev/null
+++ b/packages/sheets-ui/src/locale/ru-RU.ts
@@ -0,0 +1,534 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type zhCN from './zh-CN';
+
+const locale: typeof zhCN = {
+ spreadsheetLabel: 'Электронная таблица',
+ spreadsheetRightLabel: 'больше листов',
+
+ toolbar: {
+ undo: 'Отменить',
+ redo: 'Повторить',
+ formatPainter: 'Копировать формат',
+ currencyFormat: 'Форматировать как валюту',
+ percentageFormat: 'Форматировать как процент',
+ numberDecrease: 'Уменьшить количество десятичных знаков',
+ numberIncrease: 'Увеличить количество десятичных знаков',
+ moreFormats: 'Больше форматов',
+ font: 'Шрифт',
+ fontSize: 'Размер шрифта',
+ bold: 'Жирный',
+ italic: 'Курсив',
+ strikethrough: 'Зачеркнутый',
+ subscript: 'Нижний индекс',
+ superscript: 'Верхний индекс',
+ underline: 'Подчеркнутый',
+ textColor: {
+ main: 'Цвет текста',
+ right: 'Выбрать цвет',
+ },
+ resetColor: 'Сбросить',
+ customColor: 'ПОЛЬЗ.',
+ alternatingColors: 'Чередующиеся цвета',
+ confirmColor: 'ОК',
+ cancelColor: 'Отмена',
+ collapse: 'Свернуть',
+ fillColor: {
+ main: 'Цвет заливки',
+ right: 'Выбрать цвет',
+ },
+ border: {
+ main: 'Граница',
+ right: 'Стиль границы',
+ },
+ mergeCell: {
+ main: 'Объединить ячейки',
+ right: 'Выбрать тип объединения',
+ },
+ horizontalAlignMode: {
+ main: 'Горизонтальное выравнивание',
+ right: 'Выравнивание',
+ },
+ verticalAlignMode: {
+ main: 'Вертикальное выравнивание',
+ right: 'Выравнивание',
+ },
+ textWrapMode: {
+ main: 'Перенос текста',
+ right: 'Режим переноса текста',
+ },
+ textRotateMode: {
+ main: 'Поворот текста',
+ right: 'Режим поворота текста',
+ },
+ freezeTopRow: 'Закрепить верхнюю строку',
+ sortAndFilter: 'Сортировка и фильтр',
+ findAndReplace: 'Найти и заменить',
+ sum: 'СУММ',
+ autoSum: 'Авто СУММ',
+ moreFunction: 'Больше функций',
+ conditionalFormatting: 'Условное форматирование',
+ comment: 'Комментарий',
+ pivotTable: 'Сводная таблица',
+ chart: 'Диаграмма',
+ screenshot: 'Снимок экрана',
+ splitColumn: 'Разделить текст',
+ insertImage: 'Вставить изображение',
+ insertLink: 'Вставить ссылку',
+ dataValidation: 'Проверка данных',
+ protection: 'Защита листа',
+
+ clearText: 'Очистить цвет',
+ noColorSelectedText: 'Цвет не выбран',
+
+ toolMore: 'Больше',
+ toolLess: 'Меньше',
+ toolClose: 'Закрыть',
+ toolMoreTip: 'Больше возможностей',
+ moreOptions: 'Больше опций',
+
+ cellFormat: 'Настройка формата ячейки',
+ print: 'Печать',
+ borderMethod: {
+ top: 'Верхняя рамка',
+ bottom: 'Нижняя рамка',
+ left: 'Левая рамка',
+ right: 'Правая рамка',
+ },
+ more: 'Больше',
+ },
+ defaultFmt: {
+ Automatic: {
+ text: 'Автоматический',
+ value: 'Общий',
+ example: '',
+ },
+ Number: {
+ text: 'Число',
+ value: '##0.00',
+ example: '1000.12',
+ },
+ Percent: {
+ text: 'Процент',
+ value: '#0.00%',
+ example: '12.21%',
+ },
+ PlainText: {
+ text: 'Простой текст',
+ value: '@',
+ example: '',
+ },
+ Scientific: {
+ text: 'Научный',
+ value: '0.00E+00',
+ example: '1.01E+5',
+ },
+ Accounting: {
+ text: 'Бухгалтерский учет',
+ value: '¥(0.00)',
+ example: '¥(1200.09)',
+ },
+ Thousand: {
+ text: 'Десять тысяч',
+ value: 'w',
+ example: '1億2000万2500',
+ },
+ Currency: {
+ text: 'Валюта',
+ value: '¥0.00',
+ example: '¥1200.09',
+ },
+ Digit: {
+ text: 'Десятичные 2 знака',
+ value: 'w0.00',
+ example: '2万2500.55',
+ },
+ Date: {
+ text: 'Дата',
+ value: 'yyyy-MM-dd',
+ example: '2017-11-29',
+ },
+ Time: { text: 'Время', value: 'hh:mm AM/PM', example: '3:00 PM' },
+ Time24H: { text: 'Время 24H', value: 'hh:mm', example: '15:00' },
+ DateTime: { text: 'Дата и время', value: 'yyyy-MM-dd hh:mm AM/PM', example: '2017-11-29 3:00 PM' },
+ DateTime24H: { text: 'Дата и время 24H', value: 'yyyy-MM-dd hh:mm', example: '2017-11-29 15:00' },
+ CustomFormats: { text: 'Пользовательские форматы', value: 'fmtOtherSelf', example: '' },
+ },
+ format: {
+ moreCurrency: 'Больше форматов валюты',
+ moreDateTime: 'Больше форматов даты и времени',
+ moreNumber: 'Больше форматов чисел',
+
+ titleCurrency: 'Форматы валюты',
+ decimalPlaces: 'Десятичные знаки',
+ titleDateTime: 'Форматы даты и времени',
+ titleNumber: 'Числовые форматы',
+ },
+ print: {
+ normalBtn: 'Обычный',
+ layoutBtn: 'Макет страницы',
+ pageBtn: 'Предпросмотр разрыва страницы',
+
+ menuItemPrint: 'Печать (Ctrl+P)',
+ menuItemAreas: 'Области печати',
+ menuItemRows: 'Печатать строки заголовков',
+ menuItemColumns: 'Печатать столбцы заголовков',
+ },
+ align: {
+ left: 'лево',
+ center: 'центр',
+ right: 'право',
+
+ top: 'верх',
+ middle: 'середина',
+ bottom: 'низ',
+ },
+
+ button: {
+ confirm: 'ОК',
+ cancel: 'Отмена',
+ close: 'Закрыть',
+ update: 'Обновить',
+ delete: 'Удалить',
+ insert: 'Вставить',
+ prevPage: 'Предыдущая',
+ nextPage: 'Следующая',
+ total: 'всего:',
+ },
+ punctuation: {
+ tab: 'Табуляция',
+ semicolon: 'точка с запятой',
+ comma: 'запятая',
+ space: 'пробел',
+ },
+ colorPicker: {
+ collapse: 'Свернуть',
+ customColor: 'ПОЛЬЗ.',
+ change: 'Изменить',
+ confirmColor: 'ОК',
+ cancelColor: 'Отмена',
+ },
+ borderLine: {
+ borderTop: 'верхняя граница',
+ borderBottom: 'нижняя граница',
+ borderLeft: 'левая граница',
+ borderRight: 'правая граница',
+ borderNone: 'без границы',
+ borderAll: 'все границы',
+ borderOutside: 'внешняя граница',
+ borderInside: 'внутренняя граница',
+ borderHorizontal: 'горизонтальная граница',
+ borderVertical: 'вертикальная граница',
+ borderColor: 'цвет границы',
+ borderSize: 'размер границы',
+ borderType: 'тип границы',
+ },
+ merge: {
+ all: 'Объединить все',
+ vertical: 'Вертикальное объединение',
+ horizontal: 'Горизонтальное объединение',
+ cancel: 'Отменить объединение',
+ overlappingError: 'Невозможно объединить перекрывающиеся области',
+ partiallyError: 'Невозможно выполнить эту операцию на частично объединенных ячейках',
+ confirm: {
+ title: 'Продолжение объединения сохранит только значение в верхней левой ячейке, остальные значения будут удалены. Вы уверены, что хотите продолжить?',
+ cancel: 'Отменить объединение',
+ confirm: 'Продолжить объединение',
+ waring: 'Предупреждение',
+ dismantleMergeCellWaring: 'Это приведет к разделению некоторых объединенных ячеек. Продолжить?',
+ },
+ },
+ filter: {
+ confirm: {
+ error: 'Произошла ошибка',
+ notAllowedToInsertRange: 'Нельзя перемещать ячейки сюда, пока фильтр не будет очищен',
+ },
+ },
+ textWrap: {
+ overflow: 'Переполнение',
+ wrap: 'Перенос',
+ clip: 'Обрезать',
+ },
+ textRotate: {
+ none: 'Нет',
+ angleUp: 'Повернуть вверх',
+ angleDown: 'Повернуть вниз',
+ vertical: 'Вертикально',
+ rotationUp: 'Поворот вверх',
+ rotationDown: 'Поворот вниз',
+ },
+ sheetConfig: {
+ delete: 'Удалить',
+ copy: 'Копировать',
+ rename: 'Переименовать',
+ changeColor: 'Изменить цвет',
+ hide: 'Скрыть',
+ unhide: 'Показать',
+ moveLeft: 'Переместить влево',
+ moveRight: 'Переместить вправо',
+ resetColor: 'Сбросить цвет',
+ cancelText: 'Отмена',
+ chooseText: 'Подтвердить цвет',
+
+ tipNameRepeat: 'Имя вкладки не может повторяться! Пожалуйста, исправьте',
+ noMoreSheet:
+ 'В книге должен содержаться хотя бы один видимый лист. Чтобы удалить выбранный лист, вставьте новый лист или покажите скрытый лист.',
+ confirmDelete: 'Вы уверены, что хотите удалить',
+ redoDelete: 'Можно отменить с помощью Ctrl+Z',
+ noHide: 'Нельзя скрыть, оставьте хотя бы одну вкладку листа',
+ chartEditNoOpt: 'Эта операция недоступна в режиме редактирования диаграммы!',
+ sheetNameErrorTitle: 'Произошла ошибка',
+ sheetNameSpecCharError: 'Имя не может содержать: [ ] : ? * / \' "',
+ sheetNameCannotIsEmptyError: 'Имя листа не может быть пустым.',
+ sheetNameAlreadyExistsError: 'Имя листа уже существует. Пожалуйста, введите другое имя.',
+ deleteSheet: 'Удалить лист',
+ deleteSheetContent:
+ 'Подтвердите удаление этого листа. После удаления его нельзя будет восстановить. Вы уверены, что хотите удалить его?',
+ },
+ rightClick: {
+ copy: 'Копировать',
+ copyAs: 'Копировать как',
+ cut: 'Вырезать',
+ paste: 'Вставить',
+ pasteSpecial: 'Специальная вставка',
+ pasteValue: 'Вставить значение',
+ pasteFormat: 'Вставить формат',
+ pasteColWidth: 'Вставить ширину столбца',
+ pasteBesidesBorder: 'Вставить кроме стилей границы',
+ insert: 'Вставить',
+ insertRow: 'Вставить строку',
+ insertRowBefore: 'Вставить строку выше',
+ insertColumn: 'Вставить столбец',
+ insertColumnBefore: 'Вставить столбец слева',
+ delete: 'Удалить',
+ deleteCell: 'Удалить ячейку',
+ insertCell: 'Вставить ячейку',
+ deleteSelected: 'Удалить выбранное',
+ hide: 'Скрыть',
+ hideSelected: 'Скрыть выбранное',
+ showHide: 'Показать скрытые',
+ toTopAdd: 'Добавить сверху',
+ toBottomAdd: 'Добавить снизу',
+ toLeftAdd: 'Добавить слева',
+ toRightAdd: 'Добавить справа',
+ deleteSelectedRow: 'Удалить выбранную строку',
+ deleteSelectedColumn: 'Удалить выбранный столбец',
+ hideSelectedRow: 'Скрыть выбранную строку',
+ showHideRow: 'Показать скрытую строку',
+ rowHeight: 'Высота строки',
+ hideSelectedColumn: 'Скрыть выбранный столбец',
+ showHideColumn: 'Показать скрытый столбец',
+ columnWidth: 'Ширина столбца',
+ to: 'К',
+ left: 'Лево',
+ right: 'Право',
+ top: 'Верх',
+ bottom: 'Низ',
+ moveLeft: 'Переместить влево',
+ moveUp: 'Переместить вверх',
+ moveRight: 'Переместить вправо',
+ moveDown: 'Переместить вниз',
+ add: 'Добавить',
+ row: 'Строка',
+ column: 'Столбец',
+ width: 'Ширина',
+ height: 'Высота',
+ number: 'Номер',
+ confirm: 'Подтвердить',
+ orderAZ: 'Порядок А-Я',
+ orderZA: 'Порядок Я-А',
+ clearSelection: 'Очистить',
+ clearContent: 'Очистить содержимое',
+ clearFormat: 'Очистить формат',
+ clearAll: 'Очистить все',
+ matrix: 'Матричная операция',
+ sortSelection: 'Сортировать',
+ filterSelection: 'Фильтр',
+ chartGeneration: 'Создать диаграмму',
+ firstLineTitle: 'Заголовок первой строки',
+ untitled: 'Без названия',
+ array1: 'Одномерный массив',
+ array2: 'Двумерный массив',
+ array3: 'Многомерные массивы',
+ diagonal: 'Диагональ',
+ antiDiagonal: 'Антидиагональ',
+ diagonalOffset: 'Смещение диагонали',
+ offset: 'Смещение',
+ boolean: 'Булевый',
+ flip: 'Перевернуть',
+ upAndDown: 'Вверх и вниз',
+ leftAndRight: 'Влево и вправо',
+ clockwise: 'По часовой стрелке',
+ counterclockwise: 'Против часовой стрелки',
+ transpose: 'Транспонировать',
+ matrixCalculation: 'Матричное вычисление',
+ plus: 'Плюс',
+ minus: 'Минус',
+ multiply: 'Умножить',
+ divided: 'Делить',
+ power: 'Степень',
+ root: 'Корень',
+ log: 'Логарифм',
+ delete0: 'Удалить значения 0 с обоих концов',
+ removeDuplicate: 'Удалить дубликаты значений',
+ byRow: 'По строке',
+ byCol: 'По столбцу',
+ generateNewMatrix: 'Создать новую матрицу',
+ fitContent: 'Подогнать под данные',
+ freeze: 'Закрепить',
+ freezeCol: 'Закрепить до этого столбца',
+ freezeRow: 'Закрепить до этой строки',
+ cancelFreeze: 'Отменить закрепление',
+ zenEditor: 'Редактор на весь экран',
+ deleteAllRowsAlert: 'Нельзя удалить все строки на листе',
+ deleteAllColumnsAlert: 'Нельзя удалить все столбцы на листе',
+ hideAllRowsAlert: 'Нельзя скрыть все строки на листе',
+ hideAllColumnsAlert: 'Нельзя скрыть все столбцы на листе',
+ },
+ info: {
+ tooltip: 'Подсказка',
+ error: 'Ошибка',
+ notChangeMerge: 'Вы не можете частично изменить объединенные ячейки',
+ detailUpdate: 'Новый открытый',
+ detailSave: 'Восстановлено из локального кэша',
+ row: '',
+ column: '',
+ loading: 'Загрузка...',
+
+ copy: 'Копировать',
+ return: 'Выход',
+ rename: 'Переименовать',
+ tips: 'Переименовать',
+ noName: 'Электронная таблица без названия',
+ wait: 'ожидание обновления',
+
+ add: 'Добавить',
+ addLast: 'больше строк внизу',
+ backTop: 'Вернуться наверх',
+ // eslint-disable-next-line no-template-curly-in-string
+ pageInfo: 'Всего ${total}, ${totalPage} страниц, текущая ${currentPage}',
+ nextPage: 'Следующая',
+
+ tipInputNumber: 'Пожалуйста, введите число',
+ tipInputNumberLimit: 'Диапазон увеличения ограничен от 1 до 100',
+
+ tipRowHeightLimit: 'Высота строки должна быть в пределах от 0 до 545',
+ tipColumnWidthLimit: 'Ширина столбца должна быть в пределах от 0 до 2038',
+ // eslint-disable-next-line no-template-curly-in-string
+ pageInfoFull: 'Всего ${total}, ${totalPage} страниц, все данные отображены',
+ problem: 'Произошла проблема',
+ forceStringInfo: 'Число хранится как текст',
+ },
+ clipboard: {
+ paste: {
+ exceedMaxCells: 'Количество вставляемых ячеек превышает максимальное количество ячеек',
+ overlappingMergedCells: 'Область вставки перекрывается с объединенными ячейками',
+ },
+ shortCutNotify: {
+ title: 'Используйте сочетания клавиш для вставки.',
+ useShortCutInstead: 'Обнаружено содержимое Excel. Используйте сочетание клавиш для вставки.',
+ },
+ },
+ statusbar: {
+ sum: 'Сумма',
+ average: 'Среднее',
+ min: 'Минимум',
+ max: 'Максимум',
+ count: 'Числовое количество',
+ countA: 'Количество',
+ clickToCopy: 'Нажмите, чтобы скопировать',
+ copied: 'Скопировано',
+ },
+ autoFill: {
+ copy: 'Копировать ячейку',
+ series: 'Заполнить серию',
+ formatOnly: 'Только формат',
+ noFormat: 'Без формата',
+ },
+
+ rangeSelector: {
+ placeholder: 'Выберите диапазон или введите значение',
+ tooltip: 'Выберите диапазон',
+ },
+
+ shortcut: {
+ sheet: {
+ 'zoom-in': 'Увеличить',
+ 'zoom-out': 'Уменьшить',
+ 'reset-zoom': 'Сбросить масштаб',
+ 'select-below-cell': 'Выбрать ячейку ниже',
+ 'select-up-cell': 'Выбрать ячейку выше',
+ 'select-left-cell': 'Выбрать ячейку слева',
+ 'select-right-cell': 'Выбрать ячейку справа',
+ 'select-next-cell': 'Выбрать следующую ячейку',
+ 'select-previous-cell': 'Выбрать предыдущую ячейку',
+ 'select-up-value-cell': 'Выбрать ячейку выше со значением',
+ 'select-below-value-cell': 'Выбрать ячейку ниже со значением',
+ 'select-left-value-cell': 'Выбрать ячейку слева со значением',
+ 'select-right-value-cell': 'Выбрать ячейку справа со значением',
+ 'expand-selection-down': 'Расширить выделение вниз',
+ 'expand-selection-up': 'Расширить выделение вверх',
+ 'expand-selection-left': 'Расширить выделение влево',
+ 'expand-selection-right': 'Расширить выделение вправо',
+ 'expand-selection-to-left-gap': 'Расширить выделение до левого пробела',
+ 'expand-selection-to-below-gap': 'Расширить выделение до нижнего пробела',
+ 'expand-selection-to-right-gap': 'Расширить выделение до правого пробела',
+ 'expand-selection-to-up-gap': 'Расширить выделение до верхнего пробела',
+ 'select-all': 'Выбрать все',
+ 'toggle-editing': 'Переключить редактирование',
+ 'delete-and-start-editing': 'Очистить и начать редактирование',
+ 'abort-editing': 'Прервать редактирование',
+ 'break-line': 'Разрыв строки',
+ 'set-bold': 'Переключить жирный',
+ 'set-italic': 'Переключить курсив',
+ 'set-underline': 'Переключить подчеркивание',
+ 'set-strike-through': 'Переключить зачеркивание',
+ },
+ },
+ 'sheet-view': 'Просмотр листа',
+ 'sheet-edit': 'Редактирование листа',
+
+ definedName: {
+ managerTitle: 'Управление именами',
+ managerDescription: 'Создайте определенное имя, выбрав ячейки или формулы и введя желаемое имя в текстовое поле.',
+ addButton: 'Добавить определенное имя',
+ featureTitle: 'Определенные имена',
+ ratioRange: 'Диапазон',
+ ratioFormula: 'Формула',
+ confirm: 'Подтвердить',
+ cancel: 'Отмена',
+ scopeWorkbook: 'Книга',
+ inputNamePlaceholder: 'Введите имя (без пробелов)',
+ inputCommentPlaceholder: 'Введите комментарий',
+ inputRangePlaceholder: 'Введите диапазон (без пробелов)',
+ inputFormulaPlaceholder: 'Введите формулу (без пробелов)',
+ nameEmpty: 'Имя не может быть пустым',
+ nameDuplicate: 'Имя уже существует',
+ formulaOrRefStringEmpty: 'Формула или строка ссылки не может быть пустой',
+ formulaOrRefStringInvalid: 'Неверная формула или строка ссылки',
+ defaultName: 'ОпределенноеИмя',
+ updateButton: 'Обновить',
+ deleteButton: 'Удалить',
+ deleteConfirmText: 'Вы уверены, что хотите удалить это определенное имя?',
+ nameConflict: 'Имя конфликтует с именем функции',
+ nameInvalid: 'Имя недействительно',
+ nameSheetConflict: 'Имя конфликтует с именем листа',
+ },
+};
+
+export default locale;
+
diff --git a/packages/sheets-zen-editor/src/index.ts b/packages/sheets-zen-editor/src/index.ts
index a5f03c0ee3..fe70aa5f90 100644
--- a/packages/sheets-zen-editor/src/index.ts
+++ b/packages/sheets-zen-editor/src/index.ts
@@ -15,4 +15,4 @@
*/
export { UniverSheetsZenEditorPlugin } from './plugin';
-export { enUS, zhCN } from './locale';
+export { enUS, zhCN, ruRU } from './locale';
diff --git a/packages/sheets-zen-editor/src/locale/index.ts b/packages/sheets-zen-editor/src/locale/index.ts
index 1eff5fc204..ab1fcfc7ee 100644
--- a/packages/sheets-zen-editor/src/locale/index.ts
+++ b/packages/sheets-zen-editor/src/locale/index.ts
@@ -16,3 +16,4 @@
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';
+export { default as ruRU } from './ru-RU';
diff --git a/packages/sheets-zen-editor/src/locale/ru-RU.ts b/packages/sheets-zen-editor/src/locale/ru-RU.ts
new file mode 100644
index 0000000000..82cc2936d0
--- /dev/null
+++ b/packages/sheets-zen-editor/src/locale/ru-RU.ts
@@ -0,0 +1,28 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type zhCN from './zh-CN';
+
+const locale: typeof zhCN = {
+ shortcut: {
+ sheet: {
+ 'zen-edit-cancel': 'Отменить Zen редактирование',
+ 'zen-edit-confirm': 'Подтвердить Zen редактирование',
+ },
+ },
+};
+
+export default locale;
diff --git a/packages/sheets/src/index.ts b/packages/sheets/src/index.ts
index c320f4754d..a4cc6c2a9d 100644
--- a/packages/sheets/src/index.ts
+++ b/packages/sheets/src/index.ts
@@ -256,7 +256,7 @@ export { getInsertRangeMutations, getRemoveRangeMutations } from './commands/uti
export { handleInsertRangeMutation } from './commands/utils/handle-range-mutation';
export { type ISheetCommandSharedParams } from './commands/utils/interface';
export { getAddMergeMutationRangeByType } from './controllers/merge-cell.controller';
-export { enUS, zhCN } from './locale';
+export { enUS, zhCN, ruRU } from './locale';
export { NumfmtService } from './services/numfmt/numfmt.service';
export type { INumfmtItem, INumfmtItemWithCache } from './services/numfmt/type';
export { INumfmtService } from './services/numfmt/type';
diff --git a/packages/sheets/src/locale/index.ts b/packages/sheets/src/locale/index.ts
index 1eff5fc204..ab1fcfc7ee 100644
--- a/packages/sheets/src/locale/index.ts
+++ b/packages/sheets/src/locale/index.ts
@@ -16,3 +16,4 @@
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';
+export { default as ruRU } from './ru-RU';
diff --git a/packages/sheets/src/locale/ru-RU.ts b/packages/sheets/src/locale/ru-RU.ts
new file mode 100644
index 0000000000..26a64a2e03
--- /dev/null
+++ b/packages/sheets/src/locale/ru-RU.ts
@@ -0,0 +1,34 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type zhCN from './zh-CN';
+
+const locale: typeof zhCN = {
+ sheets: {
+ tabs: {
+ sheetCopy: '(Копия)',
+ sheet: 'Лист',
+ },
+ info: {
+ overlappingSelections: 'Невозможно использовать эту команду на пересекающихся выделениях',
+ acrossMergedCell: 'Через объединенную ячейку',
+ partOfCell: 'Выделена только часть объединенной ячейки',
+ hideSheet: 'После скрытия этого листа не будет видно ни одного листа',
+ },
+ },
+};
+
+export default locale;
diff --git a/packages/slides-ui/src/index.ts b/packages/slides-ui/src/index.ts
index 33fa19c53e..d1478834c3 100644
--- a/packages/slides-ui/src/index.ts
+++ b/packages/slides-ui/src/index.ts
@@ -15,4 +15,4 @@
*/
export * from './slides-ui-plugin';
-export { enUS, zhCN } from './locale';
+export { enUS, zhCN, ruRU } from './locale';
diff --git a/packages/slides-ui/src/locale/index.ts b/packages/slides-ui/src/locale/index.ts
index 1eff5fc204..ab1fcfc7ee 100644
--- a/packages/slides-ui/src/locale/index.ts
+++ b/packages/slides-ui/src/locale/index.ts
@@ -16,3 +16,4 @@
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';
+export { default as ruRU } from './ru-RU';
diff --git a/packages/slides-ui/src/locale/ru-RU.ts b/packages/slides-ui/src/locale/ru-RU.ts
new file mode 100644
index 0000000000..7ee2dd1ea0
--- /dev/null
+++ b/packages/slides-ui/src/locale/ru-RU.ts
@@ -0,0 +1,26 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type zhCN from './zh-CN';
+
+const locale: typeof zhCN = {
+ toolbar: {
+ undo: 'Отменить',
+ redo: 'Повторить',
+ },
+};
+
+export default locale;
diff --git a/packages/slides/src/index.ts b/packages/slides/src/index.ts
index 6e8008ca51..d71446293a 100644
--- a/packages/slides/src/index.ts
+++ b/packages/slides/src/index.ts
@@ -16,4 +16,4 @@
export * from './slides-plugin';
export * from './views/render';
-export { enUS, zhCN } from './locale';
+export { enUS, zhCN, ruRU } from './locale';
diff --git a/packages/slides/src/locale/index.ts b/packages/slides/src/locale/index.ts
index 1eff5fc204..ab1fcfc7ee 100644
--- a/packages/slides/src/locale/index.ts
+++ b/packages/slides/src/locale/index.ts
@@ -16,3 +16,4 @@
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';
+export { default as ruRU } from './ru-RU';
diff --git a/packages/slides/src/locale/ru-RU.ts b/packages/slides/src/locale/ru-RU.ts
new file mode 100644
index 0000000000..8f283396ae
--- /dev/null
+++ b/packages/slides/src/locale/ru-RU.ts
@@ -0,0 +1,22 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type zhCN from './zh-CN';
+
+const locale: typeof zhCN = {
+};
+
+export default locale;
diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.ts
index 2576e60993..30f3ec2e63 100644
--- a/packages/ui/src/index.ts
+++ b/packages/ui/src/index.ts
@@ -29,7 +29,7 @@ export {
} from './controllers/shared-shortcut.controller';
export { IUIController, type IWorkbenchOptions } from './controllers/ui/ui.controller';
export { DesktopUIController, DesktopUIPart, type IDesktopUIController } from './controllers/ui/ui-desktop.controller';
-export { enUS, zhCN } from './locale';
+export { enUS, zhCN, ruRU } from './locale';
export { DesktopBeforeCloseService, IBeforeCloseService } from './services/before-close/before-close.service';
export { CopyCommand, CutCommand, PasteCommand } from './services/clipboard/clipboard.command';
export {
diff --git a/packages/ui/src/locale/index.ts b/packages/ui/src/locale/index.ts
index 1eff5fc204..ab1fcfc7ee 100644
--- a/packages/ui/src/locale/index.ts
+++ b/packages/ui/src/locale/index.ts
@@ -16,3 +16,4 @@
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';
+export { default as ruRU } from './ru-RU';
diff --git a/packages/ui/src/locale/ru-RU.ts b/packages/ui/src/locale/ru-RU.ts
new file mode 100644
index 0000000000..ec844807c6
--- /dev/null
+++ b/packages/ui/src/locale/ru-RU.ts
@@ -0,0 +1,81 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type zhCN from './zh-CN';
+
+const locale: typeof zhCN = {
+ uiToolbar: {
+ start: 'Начало',
+ insert: 'Вставка',
+ formulas: 'Формулы',
+ data: 'Данные',
+ view: 'Вид',
+ others: 'Другие',
+ },
+ more: 'Больше',
+ fontFamily: {
+ TimesNewRoman: 'Times New Roman',
+ Arial: 'Arial',
+ Tahoma: 'Tahoma',
+ Verdana: 'Verdana',
+ MicrosoftYaHei: 'Microsoft YaHei',
+ SimSun: 'SimSun',
+ SimHei: 'SimHei',
+ Kaiti: 'Kaiti',
+ FangSong: 'FangSong',
+ NSimSun: 'NSimSun',
+ STXinwei: 'STXinwei',
+ STXingkai: 'STXingkai',
+ STLiti: 'STLiti',
+ HanaleiFill: 'HanaleiFill',
+ Anton: 'Anton',
+ Pacifico: 'Pacifico',
+ },
+ 'shortcut-panel': {
+ title: 'Ярлыки',
+ },
+ shortcut: {
+ undo: 'Отменить',
+ redo: 'Повторить',
+ cut: 'Вырезать',
+ copy: 'Копировать',
+ paste: 'Вставить',
+ 'shortcut-panel': 'Переключить панель ярлыков',
+ },
+ 'common-edit': 'Общие команды редактирования',
+ 'toggle-shortcut-panel': 'Переключить панель ярлыков',
+ clipboard: {
+ authentication: {
+ title: 'Доступ запрещен',
+ content: 'Пожалуйста, разрешите Univer доступ к вашему буферу обмена.',
+ },
+ },
+ textEditor: {
+ formulaError: 'Пожалуйста, введите корректную формулу, например =SUM(A1)',
+ rangeError: 'Пожалуйста, введите корректный диапазон, например A1:B10',
+ },
+ rangeSelector: {
+ title: 'Выберите диапазон данных',
+ addAnotherRange: 'Добавить диапазон',
+ buttonTooltip: 'Выбрать диапазон данных',
+ placeHolder: 'Выберите диапазон или введите.',
+ confirm: 'Подтвердить',
+ cancel: 'Отменить',
+ },
+ 'global-shortcut': 'Глобальные ярлыки',
+};
+
+export default locale;
diff --git a/packages/uniscript/src/index.ts b/packages/uniscript/src/index.ts
index 693de942a1..9a8590cd3e 100644
--- a/packages/uniscript/src/index.ts
+++ b/packages/uniscript/src/index.ts
@@ -14,6 +14,6 @@
* limitations under the License.
*/
-export { enUS, zhCN } from './locale';
+export { enUS, zhCN, ruRU } from './locale';
export { type IUniscriptConfig, UniverUniscriptPlugin } from './plugin';
export { ScriptEditorService } from './services/script-editor.service';
diff --git a/packages/uniscript/src/locale/index.ts b/packages/uniscript/src/locale/index.ts
index 1eff5fc204..ab1fcfc7ee 100644
--- a/packages/uniscript/src/locale/index.ts
+++ b/packages/uniscript/src/locale/index.ts
@@ -16,3 +16,4 @@
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';
+export { default as ruRU } from './ru-RU';
diff --git a/packages/uniscript/src/locale/ru-RU.ts b/packages/uniscript/src/locale/ru-RU.ts
new file mode 100644
index 0000000000..4d906b3167
--- /dev/null
+++ b/packages/uniscript/src/locale/ru-RU.ts
@@ -0,0 +1,37 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type zhCN from './zh-CN';
+
+const locale: typeof zhCN = {
+ 'script-panel': {
+ title: 'Юнискрипт',
+ tooltip: {
+ 'menu-button': 'Переключить панель Юнискрипт',
+ },
+ panel: {
+ execute: 'Выполнить скрипт',
+ },
+ },
+ uniscript: {
+ message: {
+ success: 'Выполнение успешно',
+ failed: 'Выполнение не удалось',
+ },
+ },
+};
+
+export default locale;