fix(sheets-conditional-formatting): add missing iconSet locales (#7029)

This commit is contained in:
白熱
2026-06-08 10:51:42 +08:00
committed by GitHub
parent 4170c72ecc
commit bdbe443cb6
23 changed files with 583 additions and 10 deletions
@@ -64,9 +64,9 @@ export interface IDocBlockDropTarget {
}
const BLOCK_RANGE_ICON_MAP: Record<string, string> = {
code: 'DocsCodeBlockIcon',
quote: 'DocsQuoteBlockIcon',
callout: 'DocsCalloutBlockIcon',
code: 'CodeBlockIcon',
quote: 'QuoteIcon',
callout: 'CalloutIcon',
};
const LIST_ICON_MAP: Partial<Record<PresetListType, string>> = {
@@ -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",
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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,
@@ -100,8 +100,7 @@ export function SlideSideBar() {
<a
className={clsx(`
univer-box-border univer-block univer-h-8 univer-w-full univer-cursor-pointer
univer-rounded-md univer-bg-white univer-text-center univer-text-sm univer-leading-8
univer-transition-colors
univer-rounded-md univer-bg-white univer-text-center univer-text-sm univer-transition-colors
`, borderClassName)}
onClick={handleAppendSlide}
>