-
-
Notifications
You must be signed in to change notification settings - Fork 491
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Russian translation support (#2248)
* refactor: unify export style in sheets-filter-ui locale/en-US.ts packages/sheets-filter-ui/src/locale/en-US.ts Changed export default syntax to a named constant for consistency: - Replaced 'export default {' with 'const locale = {' - Added 'export default locale;' * feat: added Russian language to ./packages/*/src/locale and partially updated code - Added Russian language support to all files in the ./packages/*/src/locale directory. - Updated code to support Russian language in most places where the language was used. * chore: run eslint --fix to correct errors and remove warnings * refactor: optimize code and fix TypeScript type issues * feat(examples): added Russian language support --------- Co-authored-by: 白熱 <[email protected]>
- Loading branch information
Showing
73 changed files
with
3,149 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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:https://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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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:https://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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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:https://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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.