Skip to content

Commit 5032b25

Browse files
bjarnefAndyButland
andauthored
Icon picker: Better title for icon colors (#20649)
* Better title for icon colors * Add name for legacy colors * Translations of colors * Fixed import, adding missing colour, added Italian translations. --------- Co-authored-by: Andy Butland <[email protected]>
1 parent 3d24f0a commit 5032b25

File tree

6 files changed

+50
-3
lines changed

6 files changed

+50
-3
lines changed

src/Umbraco.Web.UI.Client/src/assets/lang/da.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,18 @@ export default {
10091009
document: 'Dokument',
10101010
},
10111011
colors: {
1012+
black: 'Sort',
10121013
blue: 'Blå',
1014+
brown: 'Brun',
1015+
cyan: 'Cyan',
1016+
green: 'Grøn',
1017+
lightBlue: 'Lyseblå',
1018+
pink: 'Lyserød',
1019+
red: 'Rød',
1020+
text: 'Sort',
1021+
yellow: 'Gul',
1022+
white: 'Hvid',
1023+
grey: 'Grå',
10131024
},
10141025
shortcuts: {
10151026
addGroup: 'Tilføj fane',

src/Umbraco.Web.UI.Client/src/assets/lang/de.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,18 @@ export default {
903903
newVersionAvailable: 'Neue Version verfügbar',
904904
},
905905
colors: {
906+
black: 'Schwarz',
906907
blue: 'Blau',
908+
brown: 'Braun',
909+
cyan: 'Cyan',
910+
green: 'Grün',
911+
lightBlue: 'Hellblau',
912+
pink: 'Pink',
913+
red: 'Rot',
914+
text: 'Schwarz',
915+
yellow: 'Gelb',
916+
white: 'Weiß',
917+
grey: 'Grau',
907918
},
908919
shortcuts: {
909920
addTab: 'Tab hinzufügen',

src/Umbraco.Web.UI.Client/src/assets/lang/en-us.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ export default {
3535
showLabelDescription:
3636
'Displays colored field and a label for each color in the color picker, rather than just a colored field.',
3737
},
38+
colors: {
39+
grey: 'Gray',
40+
},
3841
create: {
3942
folderDescription: 'Used to organize items and other folders. Keep items structured and easy to access.',
4043
},

src/Umbraco.Web.UI.Client/src/assets/lang/en.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,18 @@ export default {
10191019
},
10201020
},
10211021
colors: {
1022+
black: 'Black',
10221023
blue: 'Blue',
1024+
brown: 'Brown',
1025+
cyan: 'Cyan',
1026+
green: 'Green',
1027+
lightBlue: 'Light Blue',
1028+
pink: 'Pink',
1029+
red: 'Red',
1030+
text: 'Black',
1031+
yellow: 'Yellow',
1032+
white: 'White',
1033+
grey: 'Grey',
10231034
},
10241035
shortcuts: {
10251036
addGroup: 'Add group',

src/Umbraco.Web.UI.Client/src/assets/lang/it.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,18 @@ export default {
850850
avatar: 'Avatar per',
851851
},
852852
colors: {
853+
black: 'Nero',
853854
blue: 'Blu',
855+
brown: 'Marrone',
856+
cyan: 'Ciano',
857+
green: 'Verde',
858+
lightBlue: 'Azzurro',
859+
pink: 'Rosa',
860+
red: 'Rosso',
861+
text: 'Nero',
862+
yellow: 'Giallo',
863+
white: 'Bianco',
864+
grey: 'Grigio',
854865
},
855866
shortcuts: {
856867
addGroup: 'Aggiungi gruppo',

src/Umbraco.Web.UI.Client/src/packages/core/icon-registry/icon-picker-modal/icon-picker-modal.element.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { umbFocus } from '@umbraco-cms/backoffice/lit-element';
1616
import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal';
1717
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
1818
import type { UUIColorSwatchesEvent } from '@umbraco-cms/backoffice/external/uui';
19+
import { toCamelCase } from '@umbraco-cms/backoffice/utils';
1920

2021
@customElement('umb-icon-picker-modal')
2122
export class UmbIconPickerModalElement extends UmbModalBaseElement<UmbIconPickerModalData, UmbIconPickerModalValue> {
@@ -87,12 +88,11 @@ export class UmbIconPickerModalElement extends UmbModalBaseElement<UmbIconPicker
8788
label=${this.localize.term('defaultdialogs_colorSwitcher')}
8889
@change=${this.#onColorChange}>
8990
${
90-
// TODO: Missing localization for the color aliases. [NL]
9191
this._colorList.map(
9292
(color) => html`
9393
<uui-color-swatch
94-
label=${color.alias}
95-
title=${color.alias}
94+
label=${this.localize.term('colors_' + toCamelCase(color.alias))}
95+
title=${this.localize.term('colors_' + toCamelCase(color.alias))}
9696
value=${color.alias}
9797
style="--uui-swatch-color: var(${color.varName})">
9898
</uui-color-swatch>

0 commit comments

Comments
 (0)