Skip to content

Commit 509d6e4

Browse files
committed
Translations of colors
1 parent 3cd8d19 commit 509d6e4

File tree

5 files changed

+53
-23
lines changed

5 files changed

+53
-23
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,17 @@ export default {
10061006
document: 'Dokument',
10071007
},
10081008
colors: {
1009+
black: 'Sort',
10091010
blue: 'Blå',
1011+
brown: 'Brun',
1012+
cyan: 'Cyan',
1013+
green: 'Grøn',
1014+
lightBlue: 'Lyseblå',
1015+
pink: 'Lyserød',
1016+
red: 'Rød',
1017+
text: 'Sort',
1018+
yellow: 'Gul',
1019+
white: 'Hvid',
10101020
},
10111021
shortcuts: {
10121022
addGroup: 'Tilføj fane',

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,17 @@ 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ß',
907917
},
908918
shortcuts: {
909919
addTab: 'Tab hinzufügen',

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,17 @@ export default {
10131013
},
10141014
},
10151015
colors: {
1016+
black: 'Black',
10161017
blue: 'Blue',
1018+
brown: 'Brown',
1019+
cyan: 'Cyan',
1020+
green: 'Green',
1021+
lightBlue: 'Light Blue',
1022+
pink: 'Pink',
1023+
red: 'Red',
1024+
text: 'Black',
1025+
yellow: 'Yellow',
1026+
white: 'White',
10171027
},
10181028
shortcuts: {
10191029
addGroup: 'Add group',

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
@@ -1,6 +1,7 @@
11
import type { UmbIconDefinition } from '../types.js';
22
import { UMB_ICON_REGISTRY_CONTEXT } from '../icon-registry.context-token.js';
33
import type { UmbIconPickerModalData, UmbIconPickerModalValue } from './icon-picker-modal.token.js';
4+
import { toCamelCase } from '../to-camel-case/index.js';
45
import {
56
css,
67
customElement,
@@ -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.name ?? color.alias}
95-
title=${color.name ?? 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>

src/Umbraco.Web.UI.Client/src/packages/core/resources/extractUmbColorVariable.function.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
// TODO: This does not belong here, lets move it to the icon package.
22

33
export const umbracoColors = [
4-
{ name: 'Black', alias: 'text', varName: '--uui-color-text' },
5-
{ name: 'Yellow', alias: 'yellow', varName: '--uui-palette-sunglow' },
6-
{ name: 'Pink', alias: 'pink', varName: '--uui-palette-spanish-pink' },
7-
{ name: 'Blue', alias: 'blue', varName: '--uui-palette-violet-blue' },
8-
{ name: 'Light Blue', alias: 'light-blue', varName: '--uui-palette-malibu' },
9-
{ name: 'Red', alias: 'red', varName: '--uui-palette-maroon-flush' },
10-
{ name: 'Green', alias: 'green', varName: '--uui-palette-jungle-green' },
11-
{ name: 'Brown', alias: 'brown', varName: '--uui-palette-chamoisee' },
12-
{ name: 'Grey', alias: 'grey', varName: '--uui-palette-dusty-grey' },
4+
{ alias: 'text', varName: '--uui-color-text' },
5+
{ alias: 'yellow', varName: '--uui-palette-sunglow' },
6+
{ alias: 'pink', varName: '--uui-palette-spanish-pink' },
7+
{ alias: 'blue', varName: '--uui-palette-violet-blue' },
8+
{ alias: 'light-blue', varName: '--uui-palette-malibu' },
9+
{ alias: 'red', varName: '--uui-palette-maroon-flush' },
10+
{ alias: 'green', varName: '--uui-palette-jungle-green' },
11+
{ alias: 'brown', varName: '--uui-palette-chamoisee' },
12+
{ alias: 'grey', varName: '--uui-palette-dusty-grey' },
1313

14-
{ name: 'Black', alias: 'black', legacy: true, varName: '--uui-color-text' },
15-
{ name: 'Blue Grey', alias: 'blue-grey', legacy: true, varName: '--uui-palette-dusty-grey' },
16-
{ name: 'Indigo', alias: 'indigo', legacy: true, varName: '--uui-palette-malibu' },
17-
{ name: 'Purple', alias: 'purple', legacy: true, varName: '--uui-palette-space-cadet' },
18-
{ name: 'Deep Purple', alias: 'deep-purple', legacy: true, varName: '--uui-palette-space-cadet' },
19-
{ name: 'Cyan', alias: 'cyan', legacy: true, varName: '-uui-palette-jungle-green' },
20-
{ name: 'Light Green', alias: 'light-green', legacy: true, varName: '-uui-palette-jungle-green' },
21-
{ name: 'Lime', alias: 'lime', legacy: true, varName: '-uui-palette-jungle-green' },
22-
{ name: 'Amber', alias: 'amber', legacy: true, varName: '--uui-palette-chamoisee' },
23-
{ name: 'Orange', alias: 'orange', legacy: true, varName: '--uui-palette-chamoisee' },
24-
{ name: 'Deep Orange', alias: 'deep-orange', legacy: true, varName: '--uui-palette-cocoa-brown' },
14+
{ alias: 'black', legacy: true, varName: '--uui-color-text' },
15+
{ alias: 'blue-grey', legacy: true, varName: '--uui-palette-dusty-grey' },
16+
{ alias: 'indigo', legacy: true, varName: '--uui-palette-malibu' },
17+
{ alias: 'purple', legacy: true, varName: '--uui-palette-space-cadet' },
18+
{ alias: 'deep-purple', legacy: true, varName: '--uui-palette-space-cadet' },
19+
{ alias: 'cyan', legacy: true, varName: '-uui-palette-jungle-green' },
20+
{ alias: 'light-green', legacy: true, varName: '-uui-palette-jungle-green' },
21+
{ alias: 'lime', legacy: true, varName: '-uui-palette-jungle-green' },
22+
{ alias: 'amber', legacy: true, varName: '--uui-palette-chamoisee' },
23+
{ alias: 'orange', legacy: true, varName: '--uui-palette-chamoisee' },
24+
{ alias: 'deep-orange', legacy: true, varName: '--uui-palette-cocoa-brown' },
2525
];
2626

2727
/**

0 commit comments

Comments
 (0)