From bdbe443cb625498f3429100d908a29c48fa498d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E7=86=B1?= Date: Mon, 8 Jun 2026 10:51:42 +0800 Subject: [PATCH] fix(sheets-conditional-formatting): add missing iconSet locales (#7029) --- .../services/doc-paragraph-menu.service.ts | 6 ++-- .../package.json | 8 ++++- .../src/locale/ar-SA.ts | 30 +++++++++++++++++++ .../src/locale/ca-ES.ts | 30 +++++++++++++++++++ .../src/locale/de-DE.ts | 30 +++++++++++++++++++ .../src/locale/en-US.ts | 28 +++++++++++++++++ .../src/locale/es-ES.ts | 30 +++++++++++++++++++ .../src/locale/fa-IR.ts | 30 +++++++++++++++++++ .../src/locale/fr-FR.ts | 30 +++++++++++++++++++ .../src/locale/id-ID.ts | 30 +++++++++++++++++++ .../src/locale/it-IT.ts | 30 +++++++++++++++++++ .../src/locale/ja-JP.ts | 30 +++++++++++++++++++ .../src/locale/ko-KR.ts | 30 +++++++++++++++++++ .../src/locale/pl-PL.ts | 30 +++++++++++++++++++ .../src/locale/pt-BR.ts | 30 +++++++++++++++++++ .../src/locale/ru-RU.ts | 30 +++++++++++++++++++ .../src/locale/sk-SK.ts | 30 +++++++++++++++++++ .../src/locale/vi-VN.ts | 30 +++++++++++++++++++ .../src/locale/zh-CN.ts | 30 +++++++++++++++++++ .../src/locale/zh-HK.ts | 30 +++++++++++++++++++ .../src/locale/zh-TW.ts | 30 +++++++++++++++++++ .../src/models/icon-map.ts | 8 ++--- .../src/components/slide-bar/SlideBar.tsx | 3 +- 23 files changed, 583 insertions(+), 10 deletions(-) create mode 100644 packages/sheets-conditional-formatting/src/locale/ar-SA.ts create mode 100644 packages/sheets-conditional-formatting/src/locale/ca-ES.ts create mode 100644 packages/sheets-conditional-formatting/src/locale/de-DE.ts create mode 100644 packages/sheets-conditional-formatting/src/locale/en-US.ts create mode 100644 packages/sheets-conditional-formatting/src/locale/es-ES.ts create mode 100644 packages/sheets-conditional-formatting/src/locale/fa-IR.ts create mode 100644 packages/sheets-conditional-formatting/src/locale/fr-FR.ts create mode 100644 packages/sheets-conditional-formatting/src/locale/id-ID.ts create mode 100644 packages/sheets-conditional-formatting/src/locale/it-IT.ts create mode 100644 packages/sheets-conditional-formatting/src/locale/ja-JP.ts create mode 100644 packages/sheets-conditional-formatting/src/locale/ko-KR.ts create mode 100644 packages/sheets-conditional-formatting/src/locale/pl-PL.ts create mode 100644 packages/sheets-conditional-formatting/src/locale/pt-BR.ts create mode 100644 packages/sheets-conditional-formatting/src/locale/ru-RU.ts create mode 100644 packages/sheets-conditional-formatting/src/locale/sk-SK.ts create mode 100644 packages/sheets-conditional-formatting/src/locale/vi-VN.ts create mode 100644 packages/sheets-conditional-formatting/src/locale/zh-CN.ts create mode 100644 packages/sheets-conditional-formatting/src/locale/zh-HK.ts create mode 100644 packages/sheets-conditional-formatting/src/locale/zh-TW.ts diff --git a/packages/docs-ui/src/services/doc-paragraph-menu.service.ts b/packages/docs-ui/src/services/doc-paragraph-menu.service.ts index 885498bf7c..1f29b59252 100644 --- a/packages/docs-ui/src/services/doc-paragraph-menu.service.ts +++ b/packages/docs-ui/src/services/doc-paragraph-menu.service.ts @@ -64,9 +64,9 @@ export interface IDocBlockDropTarget { } const BLOCK_RANGE_ICON_MAP: Record = { - code: 'DocsCodeBlockIcon', - quote: 'DocsQuoteBlockIcon', - callout: 'DocsCalloutBlockIcon', + code: 'CodeBlockIcon', + quote: 'QuoteIcon', + callout: 'CalloutIcon', }; const LIST_ICON_MAP: Partial> = { diff --git a/packages/sheets-conditional-formatting/package.json b/packages/sheets-conditional-formatting/package.json index 6711d07cf1..fcb80501ad 100644 --- a/packages/sheets-conditional-formatting/package.json +++ b/packages/sheets-conditional-formatting/package.json @@ -27,7 +27,8 @@ "exports": { ".": "./src/index.ts", "./*": "./src/*", - "./facade": "./src/facade/index.ts" + "./facade": "./src/facade/index.ts", + "./locale/*": "./src/locale/*.ts" }, "main": "./src/index.ts", "types": "./lib/types/index.d.ts", @@ -46,6 +47,11 @@ "require": "./lib/cjs/*", "types": "./lib/types/index.d.ts" }, + "./locale/*": { + "import": "./lib/es/locale/*.js", + "require": "./lib/cjs/locale/*.js", + "types": "./lib/types/locale/*.d.ts" + }, "./facade": { "import": "./lib/es/facade.js", "require": "./lib/cjs/facade.js", diff --git a/packages/sheets-conditional-formatting/src/locale/ar-SA.ts b/packages/sheets-conditional-formatting/src/locale/ar-SA.ts new file mode 100644 index 0000000000..85597f36e3 --- /dev/null +++ b/packages/sheets-conditional-formatting/src/locale/ar-SA.ts @@ -0,0 +1,30 @@ +/** + * Copyright 2023-present DreamNum Co., Ltd. + * + * 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 enUS from './en-US'; + +const locale: typeof enUS = { + 'sheets-conditional-formatting': { + iconSet: { + direction: 'الاتجاه', + shape: 'الشكل', + mark: 'العلامة', + rank: 'الترتيب', + }, + }, +}; + +export default locale; diff --git a/packages/sheets-conditional-formatting/src/locale/ca-ES.ts b/packages/sheets-conditional-formatting/src/locale/ca-ES.ts new file mode 100644 index 0000000000..7d4f853632 --- /dev/null +++ b/packages/sheets-conditional-formatting/src/locale/ca-ES.ts @@ -0,0 +1,30 @@ +/** + * Copyright 2023-present DreamNum Co., Ltd. + * + * 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 enUS from './en-US'; + +const locale: typeof enUS = { + 'sheets-conditional-formatting': { + iconSet: { + direction: 'Direcció', + shape: 'Forma', + mark: 'Marca', + rank: 'Rang', + }, + }, +}; + +export default locale; diff --git a/packages/sheets-conditional-formatting/src/locale/de-DE.ts b/packages/sheets-conditional-formatting/src/locale/de-DE.ts new file mode 100644 index 0000000000..826fcb52a9 --- /dev/null +++ b/packages/sheets-conditional-formatting/src/locale/de-DE.ts @@ -0,0 +1,30 @@ +/** + * Copyright 2023-present DreamNum Co., Ltd. + * + * 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 enUS from './en-US'; + +const locale: typeof enUS = { + 'sheets-conditional-formatting': { + iconSet: { + direction: 'Richtung', + shape: 'Form', + mark: 'Zeichen', + rank: 'Rang', + }, + }, +}; + +export default locale; diff --git a/packages/sheets-conditional-formatting/src/locale/en-US.ts b/packages/sheets-conditional-formatting/src/locale/en-US.ts new file mode 100644 index 0000000000..a11d926e27 --- /dev/null +++ b/packages/sheets-conditional-formatting/src/locale/en-US.ts @@ -0,0 +1,28 @@ +/** + * Copyright 2023-present DreamNum Co., Ltd. + * + * 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. + */ + +const locale = { + 'sheets-conditional-formatting': { + iconSet: { + direction: 'Direction', + shape: 'Shape', + mark: 'Mark', + rank: 'Rank', + }, + }, +}; + +export default locale; diff --git a/packages/sheets-conditional-formatting/src/locale/es-ES.ts b/packages/sheets-conditional-formatting/src/locale/es-ES.ts new file mode 100644 index 0000000000..c97f73728e --- /dev/null +++ b/packages/sheets-conditional-formatting/src/locale/es-ES.ts @@ -0,0 +1,30 @@ +/** + * Copyright 2023-present DreamNum Co., Ltd. + * + * 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 enUS from './en-US'; + +const locale: typeof enUS = { + 'sheets-conditional-formatting': { + iconSet: { + direction: 'Dirección', + shape: 'Forma', + mark: 'Marca', + rank: 'Rango', + }, + }, +}; + +export default locale; diff --git a/packages/sheets-conditional-formatting/src/locale/fa-IR.ts b/packages/sheets-conditional-formatting/src/locale/fa-IR.ts new file mode 100644 index 0000000000..1806757ee9 --- /dev/null +++ b/packages/sheets-conditional-formatting/src/locale/fa-IR.ts @@ -0,0 +1,30 @@ +/** + * Copyright 2023-present DreamNum Co., Ltd. + * + * 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 enUS from './en-US'; + +const locale: typeof enUS = { + 'sheets-conditional-formatting': { + iconSet: { + direction: 'جهت', + shape: 'شکل', + mark: 'علامت', + rank: 'رتبه', + }, + }, +}; + +export default locale; diff --git a/packages/sheets-conditional-formatting/src/locale/fr-FR.ts b/packages/sheets-conditional-formatting/src/locale/fr-FR.ts new file mode 100644 index 0000000000..0b86ba6c7f --- /dev/null +++ b/packages/sheets-conditional-formatting/src/locale/fr-FR.ts @@ -0,0 +1,30 @@ +/** + * Copyright 2023-present DreamNum Co., Ltd. + * + * 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 enUS from './en-US'; + +const locale: typeof enUS = { + 'sheets-conditional-formatting': { + iconSet: { + direction: 'Direction', + shape: 'Forme', + mark: 'Marque', + rank: 'Rang', + }, + }, +}; + +export default locale; diff --git a/packages/sheets-conditional-formatting/src/locale/id-ID.ts b/packages/sheets-conditional-formatting/src/locale/id-ID.ts new file mode 100644 index 0000000000..88cfe26c2d --- /dev/null +++ b/packages/sheets-conditional-formatting/src/locale/id-ID.ts @@ -0,0 +1,30 @@ +/** + * Copyright 2023-present DreamNum Co., Ltd. + * + * 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 enUS from './en-US'; + +const locale: typeof enUS = { + 'sheets-conditional-formatting': { + iconSet: { + direction: 'Arah', + shape: 'Bentuk', + mark: 'Tanda', + rank: 'Peringkat', + }, + }, +}; + +export default locale; diff --git a/packages/sheets-conditional-formatting/src/locale/it-IT.ts b/packages/sheets-conditional-formatting/src/locale/it-IT.ts new file mode 100644 index 0000000000..4dd5fb73c6 --- /dev/null +++ b/packages/sheets-conditional-formatting/src/locale/it-IT.ts @@ -0,0 +1,30 @@ +/** + * Copyright 2023-present DreamNum Co., Ltd. + * + * 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 enUS from './en-US'; + +const locale: typeof enUS = { + 'sheets-conditional-formatting': { + iconSet: { + direction: 'Direzione', + shape: 'Forma', + mark: 'Marca', + rank: 'Grado', + }, + }, +}; + +export default locale; diff --git a/packages/sheets-conditional-formatting/src/locale/ja-JP.ts b/packages/sheets-conditional-formatting/src/locale/ja-JP.ts new file mode 100644 index 0000000000..55a6793be5 --- /dev/null +++ b/packages/sheets-conditional-formatting/src/locale/ja-JP.ts @@ -0,0 +1,30 @@ +/** + * Copyright 2023-present DreamNum Co., Ltd. + * + * 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 enUS from './en-US'; + +const locale: typeof enUS = { + 'sheets-conditional-formatting': { + iconSet: { + direction: '方向', + shape: '図形', + mark: 'インジケーター', + rank: '評価', + }, + }, +}; + +export default locale; diff --git a/packages/sheets-conditional-formatting/src/locale/ko-KR.ts b/packages/sheets-conditional-formatting/src/locale/ko-KR.ts new file mode 100644 index 0000000000..59ff59827c --- /dev/null +++ b/packages/sheets-conditional-formatting/src/locale/ko-KR.ts @@ -0,0 +1,30 @@ +/** + * Copyright 2023-present DreamNum Co., Ltd. + * + * 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 enUS from './en-US'; + +const locale: typeof enUS = { + 'sheets-conditional-formatting': { + iconSet: { + direction: '방향', + shape: '모양', + mark: '표식', + rank: '순위', + }, + }, +}; + +export default locale; diff --git a/packages/sheets-conditional-formatting/src/locale/pl-PL.ts b/packages/sheets-conditional-formatting/src/locale/pl-PL.ts new file mode 100644 index 0000000000..c4da7f0515 --- /dev/null +++ b/packages/sheets-conditional-formatting/src/locale/pl-PL.ts @@ -0,0 +1,30 @@ +/** + * Copyright 2023-present DreamNum Co., Ltd. + * + * 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 enUS from './en-US'; + +const locale: typeof enUS = { + 'sheets-conditional-formatting': { + iconSet: { + direction: 'Kierunek', + shape: 'Kształt', + mark: 'Znak', + rank: 'Ranga', + }, + }, +}; + +export default locale; diff --git a/packages/sheets-conditional-formatting/src/locale/pt-BR.ts b/packages/sheets-conditional-formatting/src/locale/pt-BR.ts new file mode 100644 index 0000000000..232d53e4c2 --- /dev/null +++ b/packages/sheets-conditional-formatting/src/locale/pt-BR.ts @@ -0,0 +1,30 @@ +/** + * Copyright 2023-present DreamNum Co., Ltd. + * + * 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 enUS from './en-US'; + +const locale: typeof enUS = { + 'sheets-conditional-formatting': { + iconSet: { + direction: 'Direção', + shape: 'Forma', + mark: 'Marca', + rank: 'Classificação', + }, + }, +}; + +export default locale; diff --git a/packages/sheets-conditional-formatting/src/locale/ru-RU.ts b/packages/sheets-conditional-formatting/src/locale/ru-RU.ts new file mode 100644 index 0000000000..6c0cf2a34d --- /dev/null +++ b/packages/sheets-conditional-formatting/src/locale/ru-RU.ts @@ -0,0 +1,30 @@ +/** + * Copyright 2023-present DreamNum Co., Ltd. + * + * 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 enUS from './en-US'; + +const locale: typeof enUS = { + 'sheets-conditional-formatting': { + iconSet: { + direction: 'Направление', + shape: 'Форма', + mark: 'Знак', + rank: 'Ранг', + }, + }, +}; + +export default locale; diff --git a/packages/sheets-conditional-formatting/src/locale/sk-SK.ts b/packages/sheets-conditional-formatting/src/locale/sk-SK.ts new file mode 100644 index 0000000000..345c2e58e8 --- /dev/null +++ b/packages/sheets-conditional-formatting/src/locale/sk-SK.ts @@ -0,0 +1,30 @@ +/** + * Copyright 2023-present DreamNum Co., Ltd. + * + * 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 enUS from './en-US'; + +const locale: typeof enUS = { + 'sheets-conditional-formatting': { + iconSet: { + direction: 'Smer', + shape: 'Tvar', + mark: 'Značka', + rank: 'Poradie', + }, + }, +}; + +export default locale; diff --git a/packages/sheets-conditional-formatting/src/locale/vi-VN.ts b/packages/sheets-conditional-formatting/src/locale/vi-VN.ts new file mode 100644 index 0000000000..9fbd763e34 --- /dev/null +++ b/packages/sheets-conditional-formatting/src/locale/vi-VN.ts @@ -0,0 +1,30 @@ +/** + * Copyright 2023-present DreamNum Co., Ltd. + * + * 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 enUS from './en-US'; + +const locale: typeof enUS = { + 'sheets-conditional-formatting': { + iconSet: { + direction: 'Hướng', + shape: 'Hình dạng', + mark: 'Dấu', + rank: 'Hạng', + }, + }, +}; + +export default locale; diff --git a/packages/sheets-conditional-formatting/src/locale/zh-CN.ts b/packages/sheets-conditional-formatting/src/locale/zh-CN.ts new file mode 100644 index 0000000000..5207bea9aa --- /dev/null +++ b/packages/sheets-conditional-formatting/src/locale/zh-CN.ts @@ -0,0 +1,30 @@ +/** + * Copyright 2023-present DreamNum Co., Ltd. + * + * 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 enUS from './en-US'; + +const locale: typeof enUS = { + 'sheets-conditional-formatting': { + iconSet: { + direction: '方向', + shape: '形状', + mark: '标记', + rank: '等级', + }, + }, +}; + +export default locale; diff --git a/packages/sheets-conditional-formatting/src/locale/zh-HK.ts b/packages/sheets-conditional-formatting/src/locale/zh-HK.ts new file mode 100644 index 0000000000..f967f15b86 --- /dev/null +++ b/packages/sheets-conditional-formatting/src/locale/zh-HK.ts @@ -0,0 +1,30 @@ +/** + * Copyright 2023-present DreamNum Co., Ltd. + * + * 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 enUS from './en-US'; + +const locale: typeof enUS = { + 'sheets-conditional-formatting': { + iconSet: { + direction: '方向', + shape: '形狀', + mark: '標記', + rank: '等級', + }, + }, +}; + +export default locale; diff --git a/packages/sheets-conditional-formatting/src/locale/zh-TW.ts b/packages/sheets-conditional-formatting/src/locale/zh-TW.ts new file mode 100644 index 0000000000..f967f15b86 --- /dev/null +++ b/packages/sheets-conditional-formatting/src/locale/zh-TW.ts @@ -0,0 +1,30 @@ +/** + * Copyright 2023-present DreamNum Co., Ltd. + * + * 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 enUS from './en-US'; + +const locale: typeof enUS = { + 'sheets-conditional-formatting': { + iconSet: { + direction: '方向', + shape: '形狀', + mark: '標記', + rank: '等級', + }, + }, +}; + +export default locale; diff --git a/packages/sheets-conditional-formatting/src/models/icon-map.ts b/packages/sheets-conditional-formatting/src/models/icon-map.ts index 7ea4e8c467..d24fe03b8c 100644 --- a/packages/sheets-conditional-formatting/src/models/icon-map.ts +++ b/packages/sheets-conditional-formatting/src/models/icon-map.ts @@ -43,7 +43,7 @@ export enum IIconSetType { export const iconGroup: { title: string; group: { name: IIconSetType; list: string[] }[] }[] = [ { - title: 'sheet.cf.iconSet.direction', + title: 'sheets-conditional-formatting.iconSet.direction', group: [ { name: IIconSetType.threeArrows, @@ -76,7 +76,7 @@ export const iconGroup: { title: string; group: { name: IIconSetType; list: stri ], }, { - title: 'sheet.cf.iconSet.shape', + title: 'sheets-conditional-formatting.iconSet.shape', group: [ { name: IIconSetType.threeTrafficLights1, @@ -101,7 +101,7 @@ export const iconGroup: { title: string; group: { name: IIconSetType; list: stri ], }, { - title: 'sheet.cf.iconSet.mark', + title: 'sheets-conditional-formatting.iconSet.mark', group: [ { name: IIconSetType.threeSymbols, @@ -119,7 +119,7 @@ export const iconGroup: { title: string; group: { name: IIconSetType; list: stri ], }, { - title: 'sheet.cf.iconSet.rank', + title: 'sheets-conditional-formatting.iconSet.rank', group: [ { name: IIconSetType.fourRating, diff --git a/packages/slides-ui/src/components/slide-bar/SlideBar.tsx b/packages/slides-ui/src/components/slide-bar/SlideBar.tsx index 077ed91330..c2a25aac04 100644 --- a/packages/slides-ui/src/components/slide-bar/SlideBar.tsx +++ b/packages/slides-ui/src/components/slide-bar/SlideBar.tsx @@ -100,8 +100,7 @@ export function SlideSideBar() {