From 06ed3e0c33003c65ab3cd402c7a82336e057a756 Mon Sep 17 00:00:00 2001 From: Stamen Stoychev Date: Mon, 1 Nov 2021 15:21:27 +0200 Subject: [PATCH 1/2] feat(action-strip): titles and localization for buttons in action strip #10203 --- .../src/i18n/BG/action-strip-resources.ts | 11 ++++++++++ .../src/i18n/CS/action-strip-resources.ts | 11 ++++++++++ .../src/i18n/DA/action-strip-resources.ts | 11 ++++++++++ .../src/i18n/DE/action-strip-resources.ts | 11 ++++++++++ .../src/i18n/ES/action-strip-resources.ts | 11 ++++++++++ .../src/i18n/FR/action-strip-resources.ts | 11 ++++++++++ .../src/i18n/HU/action-strip-resources.ts | 11 ++++++++++ .../src/i18n/IT/action-strip-resources.ts | 11 ++++++++++ .../src/i18n/JA/action-strip-resources.ts | 11 ++++++++++ .../src/i18n/KO/action-strip-resources.ts | 11 ++++++++++ .../src/i18n/NB/action-strip-resources.ts | 11 ++++++++++ .../src/i18n/NL/action-strip-resources.ts | 11 ++++++++++ .../src/i18n/PL/action-strip-resources.ts | 11 ++++++++++ .../src/i18n/PT/action-strip-resources.ts | 11 ++++++++++ .../src/i18n/RO/action-strip-resources.ts | 11 ++++++++++ .../src/i18n/SV/action-strip-resources.ts | 11 ++++++++++ .../src/i18n/TR/action-strip-resources.ts | 11 ++++++++++ .../i18n/ZH-HANS/action-strip-resources.ts | 11 ++++++++++ .../i18n/ZH-HANT/action-strip-resources.ts | 11 ++++++++++ .../action-strip/action-strip.component.html | 1 + .../action-strip/action-strip.component.ts | 21 +++++++++++++++++++ .../grid-action-button.component.html | 2 +- .../grid-editing-actions.component.ts | 4 ++-- .../grid-pinning-actions.component.ts | 8 +++---- .../lib/core/i18n/action-strip-resources.ts | 7 +++++++ .../src/lib/core/i18n/resources.ts | 9 +++++--- projects/igniteui-angular/src/public_api.ts | 1 + 27 files changed, 252 insertions(+), 10 deletions(-) create mode 100644 projects/igniteui-angular-i18n/src/i18n/BG/action-strip-resources.ts create mode 100644 projects/igniteui-angular-i18n/src/i18n/CS/action-strip-resources.ts create mode 100644 projects/igniteui-angular-i18n/src/i18n/DA/action-strip-resources.ts create mode 100644 projects/igniteui-angular-i18n/src/i18n/DE/action-strip-resources.ts create mode 100644 projects/igniteui-angular-i18n/src/i18n/ES/action-strip-resources.ts create mode 100644 projects/igniteui-angular-i18n/src/i18n/FR/action-strip-resources.ts create mode 100644 projects/igniteui-angular-i18n/src/i18n/HU/action-strip-resources.ts create mode 100644 projects/igniteui-angular-i18n/src/i18n/IT/action-strip-resources.ts create mode 100644 projects/igniteui-angular-i18n/src/i18n/JA/action-strip-resources.ts create mode 100644 projects/igniteui-angular-i18n/src/i18n/KO/action-strip-resources.ts create mode 100644 projects/igniteui-angular-i18n/src/i18n/NB/action-strip-resources.ts create mode 100644 projects/igniteui-angular-i18n/src/i18n/NL/action-strip-resources.ts create mode 100644 projects/igniteui-angular-i18n/src/i18n/PL/action-strip-resources.ts create mode 100644 projects/igniteui-angular-i18n/src/i18n/PT/action-strip-resources.ts create mode 100644 projects/igniteui-angular-i18n/src/i18n/RO/action-strip-resources.ts create mode 100644 projects/igniteui-angular-i18n/src/i18n/SV/action-strip-resources.ts create mode 100644 projects/igniteui-angular-i18n/src/i18n/TR/action-strip-resources.ts create mode 100644 projects/igniteui-angular-i18n/src/i18n/ZH-HANS/action-strip-resources.ts create mode 100644 projects/igniteui-angular-i18n/src/i18n/ZH-HANT/action-strip-resources.ts create mode 100644 projects/igniteui-angular/src/lib/core/i18n/action-strip-resources.ts diff --git a/projects/igniteui-angular-i18n/src/i18n/BG/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/BG/action-strip-resources.ts new file mode 100644 index 00000000000..c4d6209484a --- /dev/null +++ b/projects/igniteui-angular-i18n/src/i18n/BG/action-strip-resources.ts @@ -0,0 +1,11 @@ +import { IActionStripResourceStrings } from 'igniteui-angular'; + +// exported below as re-cast to create declaration type with expanded properties +const ActionStripResourceStringsBG_: ExpandRequire = { + igx_action_strip_button_more_title: 'Още' +}; + +/** + * Bulgarian resource strings for IgxActionStrip + */ +export const ActionStripResourceStringsBG = ActionStripResourceStringsBG_ as ExpandRequire; \ No newline at end of file diff --git a/projects/igniteui-angular-i18n/src/i18n/CS/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/CS/action-strip-resources.ts new file mode 100644 index 00000000000..f51ff3ccc8a --- /dev/null +++ b/projects/igniteui-angular-i18n/src/i18n/CS/action-strip-resources.ts @@ -0,0 +1,11 @@ +import { IActionStripResourceStrings } from 'igniteui-angular'; + +// exported below as re-cast to create declaration type with expanded properties +const ActionStripResourceStringsCS_: ExpandRequire = { + igx_action_strip_button_more_title: 'More' +}; + +/** + * Czech resource strings for IgxActionStrip + */ +export const ActionStripResourceStringsCS = ActionStripResourceStringsCS_ as ExpandRequire; \ No newline at end of file diff --git a/projects/igniteui-angular-i18n/src/i18n/DA/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/DA/action-strip-resources.ts new file mode 100644 index 00000000000..9cecd1f1049 --- /dev/null +++ b/projects/igniteui-angular-i18n/src/i18n/DA/action-strip-resources.ts @@ -0,0 +1,11 @@ +import { IActionStripResourceStrings } from 'igniteui-angular'; + +// exported below as re-cast to create declaration type with expanded properties +const ActionStripResourceStringsDA_: ExpandRequire = { + igx_action_strip_button_more_title: 'More' +}; + +/** + * Danish resource strings for IgxActionStrip + */ +export const ActionStripResourceStringsDA = ActionStripResourceStringsDA_ as ExpandRequire; \ No newline at end of file diff --git a/projects/igniteui-angular-i18n/src/i18n/DE/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/DE/action-strip-resources.ts new file mode 100644 index 00000000000..6332ea1e986 --- /dev/null +++ b/projects/igniteui-angular-i18n/src/i18n/DE/action-strip-resources.ts @@ -0,0 +1,11 @@ +import { IActionStripResourceStrings } from 'igniteui-angular'; + +// exported below as re-cast to create declaration type with expanded properties +const ActionStripResourceStringsDE_: ExpandRequire = { + igx_action_strip_button_more_title: 'More' +}; + +/** + * German resource strings for IgxActionStrip + */ +export const ActionStripResourceStringsDE = ActionStripResourceStringsDE_ as ExpandRequire; \ No newline at end of file diff --git a/projects/igniteui-angular-i18n/src/i18n/ES/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/ES/action-strip-resources.ts new file mode 100644 index 00000000000..4e1bb3ed444 --- /dev/null +++ b/projects/igniteui-angular-i18n/src/i18n/ES/action-strip-resources.ts @@ -0,0 +1,11 @@ +import { IActionStripResourceStrings } from 'igniteui-angular'; + +// exported below as re-cast to create declaration type with expanded properties +const ActionStripResourceStringsES_: ExpandRequire = { + igx_action_strip_button_more_title: 'More' +}; + +/** + * Spanish resource strings for IgxActionStrip + */ +export const ActionStripResourceStringsES = ActionStripResourceStringsES_ as ExpandRequire; \ No newline at end of file diff --git a/projects/igniteui-angular-i18n/src/i18n/FR/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/FR/action-strip-resources.ts new file mode 100644 index 00000000000..bd5314895fc --- /dev/null +++ b/projects/igniteui-angular-i18n/src/i18n/FR/action-strip-resources.ts @@ -0,0 +1,11 @@ +import { IActionStripResourceStrings } from 'igniteui-angular'; + +// exported below as re-cast to create declaration type with expanded properties +const ActionStripResourceStringsFR_: ExpandRequire = { + igx_action_strip_button_more_title: 'More' +}; + +/** + * French resource strings for IgxActionStrip + */ +export const ActionStripResourceStringsFR = ActionStripResourceStringsFR_ as ExpandRequire; \ No newline at end of file diff --git a/projects/igniteui-angular-i18n/src/i18n/HU/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/HU/action-strip-resources.ts new file mode 100644 index 00000000000..9f893fd78da --- /dev/null +++ b/projects/igniteui-angular-i18n/src/i18n/HU/action-strip-resources.ts @@ -0,0 +1,11 @@ +import { IActionStripResourceStrings } from 'igniteui-angular'; + +// exported below as re-cast to create declaration type with expanded properties +const ActionStripResourceStringsHU_: ExpandRequire = { + igx_action_strip_button_more_title: 'More' +}; + +/** + * Hungarian resource strings for IgxActionStrip + */ +export const ActionStripResourceStringsHU = ActionStripResourceStringsHU_ as ExpandRequire; \ No newline at end of file diff --git a/projects/igniteui-angular-i18n/src/i18n/IT/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/IT/action-strip-resources.ts new file mode 100644 index 00000000000..e1a1eaffa50 --- /dev/null +++ b/projects/igniteui-angular-i18n/src/i18n/IT/action-strip-resources.ts @@ -0,0 +1,11 @@ +import { IActionStripResourceStrings } from 'igniteui-angular'; + +// exported below as re-cast to create declaration type with expanded properties +const ActionStripResourceStringsIT_: ExpandRequire = { + igx_action_strip_button_more_title: 'More' +}; + +/** + * Italian resource strings for IgxActionStrip + */ +export const ActionStripResourceStringsIT = ActionStripResourceStringsIT_ as ExpandRequire; \ No newline at end of file diff --git a/projects/igniteui-angular-i18n/src/i18n/JA/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/JA/action-strip-resources.ts new file mode 100644 index 00000000000..2056075a91d --- /dev/null +++ b/projects/igniteui-angular-i18n/src/i18n/JA/action-strip-resources.ts @@ -0,0 +1,11 @@ +import { IActionStripResourceStrings } from 'igniteui-angular'; + +// exported below as re-cast to create declaration type with expanded properties +const ActionStripResourceStringsJA_: ExpandRequire = { + igx_action_strip_button_more_title: 'Още' +}; + +/** + * Japanese resource strings for IgxActionStrip + */ +export const ActionStripResourceStringsJA = ActionStripResourceStringsJA_ as ExpandRequire; \ No newline at end of file diff --git a/projects/igniteui-angular-i18n/src/i18n/KO/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/KO/action-strip-resources.ts new file mode 100644 index 00000000000..59a77f1972e --- /dev/null +++ b/projects/igniteui-angular-i18n/src/i18n/KO/action-strip-resources.ts @@ -0,0 +1,11 @@ +import { IActionStripResourceStrings } from 'igniteui-angular'; + +// exported below as re-cast to create declaration type with expanded properties +const ActionStripResourceStringsKO_: ExpandRequire = { + igx_action_strip_button_more_title: 'More' +}; + +/** + * Korean resource strings for IgxActionStrip + */ +export const ActionStripResourceStringsKO = ActionStripResourceStringsKO_ as ExpandRequire; \ No newline at end of file diff --git a/projects/igniteui-angular-i18n/src/i18n/NB/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/NB/action-strip-resources.ts new file mode 100644 index 00000000000..fba9c8f37b1 --- /dev/null +++ b/projects/igniteui-angular-i18n/src/i18n/NB/action-strip-resources.ts @@ -0,0 +1,11 @@ +import { IActionStripResourceStrings } from 'igniteui-angular'; + +// exported below as re-cast to create declaration type with expanded properties +const ActionStripResourceStringsNB_: ExpandRequire = { + igx_action_strip_button_more_title: 'More' +}; + +/** + * Norwegian resource strings for IgxActionStrip + */ +export const ActionStripResourceStringsNB = ActionStripResourceStringsNB_ as ExpandRequire; \ No newline at end of file diff --git a/projects/igniteui-angular-i18n/src/i18n/NL/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/NL/action-strip-resources.ts new file mode 100644 index 00000000000..d3b32c41f04 --- /dev/null +++ b/projects/igniteui-angular-i18n/src/i18n/NL/action-strip-resources.ts @@ -0,0 +1,11 @@ +import { IActionStripResourceStrings } from 'igniteui-angular'; + +// exported below as re-cast to create declaration type with expanded properties +const ActionStripResourceStringsNL_: ExpandRequire = { + igx_action_strip_button_more_title: 'More' +}; + +/** + * Dutch resource strings for IgxActionStrip + */ +export const ActionStripResourceStringsNL = ActionStripResourceStringsNL_ as ExpandRequire; \ No newline at end of file diff --git a/projects/igniteui-angular-i18n/src/i18n/PL/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/PL/action-strip-resources.ts new file mode 100644 index 00000000000..081b31432a4 --- /dev/null +++ b/projects/igniteui-angular-i18n/src/i18n/PL/action-strip-resources.ts @@ -0,0 +1,11 @@ +import { IActionStripResourceStrings } from 'igniteui-angular'; + +// exported below as re-cast to create declaration type with expanded properties +const ActionStripResourceStringsPL_: ExpandRequire = { + igx_action_strip_button_more_title: 'More' +}; + +/** + * Polish resource strings for IgxActionStrip + */ +export const ActionStripResourceStringsPL = ActionStripResourceStringsPL_ as ExpandRequire; \ No newline at end of file diff --git a/projects/igniteui-angular-i18n/src/i18n/PT/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/PT/action-strip-resources.ts new file mode 100644 index 00000000000..7e7a1326662 --- /dev/null +++ b/projects/igniteui-angular-i18n/src/i18n/PT/action-strip-resources.ts @@ -0,0 +1,11 @@ +import { IActionStripResourceStrings } from 'igniteui-angular'; + +// exported below as re-cast to create declaration type with expanded properties +const ActionStripResourceStringsPT_: ExpandRequire = { + igx_action_strip_button_more_title: 'More' +}; + +/** + * Portuguese resource strings for IgxActionStrip + */ +export const ActionStripResourceStringsPT = ActionStripResourceStringsPT_ as ExpandRequire; \ No newline at end of file diff --git a/projects/igniteui-angular-i18n/src/i18n/RO/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/RO/action-strip-resources.ts new file mode 100644 index 00000000000..8f80d6690c6 --- /dev/null +++ b/projects/igniteui-angular-i18n/src/i18n/RO/action-strip-resources.ts @@ -0,0 +1,11 @@ +import { IActionStripResourceStrings } from 'igniteui-angular'; + +// exported below as re-cast to create declaration type with expanded properties +const ActionStripResourceStringsRO_: ExpandRequire = { + igx_action_strip_button_more_title: 'More' +}; + +/** + * Romanian resource strings for IgxActionStrip + */ +export const ActionStripResourceStringsRO = ActionStripResourceStringsRO_ as ExpandRequire; \ No newline at end of file diff --git a/projects/igniteui-angular-i18n/src/i18n/SV/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/SV/action-strip-resources.ts new file mode 100644 index 00000000000..5d2df9664df --- /dev/null +++ b/projects/igniteui-angular-i18n/src/i18n/SV/action-strip-resources.ts @@ -0,0 +1,11 @@ +import { IActionStripResourceStrings } from 'igniteui-angular'; + +// exported below as re-cast to create declaration type with expanded properties +const ActionStripResourceStringsSV_: ExpandRequire = { + igx_action_strip_button_more_title: 'More' +}; + +/** + * Swedish resource strings for IgxActionStrip + */ +export const ActionStripResourceStringsSV = ActionStripResourceStringsSV_ as ExpandRequire; \ No newline at end of file diff --git a/projects/igniteui-angular-i18n/src/i18n/TR/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/TR/action-strip-resources.ts new file mode 100644 index 00000000000..85ca3b0f2cb --- /dev/null +++ b/projects/igniteui-angular-i18n/src/i18n/TR/action-strip-resources.ts @@ -0,0 +1,11 @@ +import { IActionStripResourceStrings } from 'igniteui-angular'; + +// exported below as re-cast to create declaration type with expanded properties +const ActionStripResourceStringsTR_: ExpandRequire = { + igx_action_strip_button_more_title: 'More' +}; + +/** + * Turkish resource strings for IgxActionStrip + */ +export const ActionStripResourceStringsTR = ActionStripResourceStringsTR_ as ExpandRequire; \ No newline at end of file diff --git a/projects/igniteui-angular-i18n/src/i18n/ZH-HANS/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/ZH-HANS/action-strip-resources.ts new file mode 100644 index 00000000000..82cb431f7b2 --- /dev/null +++ b/projects/igniteui-angular-i18n/src/i18n/ZH-HANS/action-strip-resources.ts @@ -0,0 +1,11 @@ +import { IActionStripResourceStrings } from 'igniteui-angular'; + +// exported below as re-cast to create declaration type with expanded properties +const ActionStripResourceStringsZHHANS_: ExpandRequire = { + igx_action_strip_button_more_title: 'More' +}; + +/** + * Simplified Chinese (zh-Hans) resource strings for IgxActionStrip + */ +export const ActionStripResourceStringsZHHANS = ActionStripResourceStringsZHHANS_ as ExpandRequire; \ No newline at end of file diff --git a/projects/igniteui-angular-i18n/src/i18n/ZH-HANT/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/ZH-HANT/action-strip-resources.ts new file mode 100644 index 00000000000..77d83082a6b --- /dev/null +++ b/projects/igniteui-angular-i18n/src/i18n/ZH-HANT/action-strip-resources.ts @@ -0,0 +1,11 @@ +import { IActionStripResourceStrings } from 'igniteui-angular'; + +// exported below as re-cast to create declaration type with expanded properties +const ActionStripResourceStringsZHHANT_: ExpandRequire = { + igx_action_strip_button_more_title: 'More' +}; + +/** + * Traditional Chinese (zh-Hant) resource strings for IgxActionStrip + */ +export const ActionStripResourceStringsZHHANT = ActionStripResourceStringsZHHANT_ as ExpandRequire; \ No newline at end of file diff --git a/projects/igniteui-angular/src/lib/action-strip/action-strip.component.html b/projects/igniteui-angular/src/lib/action-strip/action-strip.component.html index 6dc89eedf94..8f024a559a8 100644 --- a/projects/igniteui-angular/src/lib/action-strip/action-strip.component.html +++ b/projects/igniteui-angular/src/lib/action-strip/action-strip.component.html @@ -7,6 +7,7 @@ [igxToggleAction]="dropdown" [overlaySettings]="menuOverlaySettings" (click)="$event.stopPropagation()" + [title]="resourceStrings.igx_action_strip_button_more_title" [igxDropDownItemNavigation]="dropdown" > more_vert diff --git a/projects/igniteui-angular/src/lib/action-strip/action-strip.component.ts b/projects/igniteui-angular/src/lib/action-strip/action-strip.component.ts index d2196893edd..294e652f705 100644 --- a/projects/igniteui-angular/src/lib/action-strip/action-strip.component.ts +++ b/projects/igniteui-angular/src/lib/action-strip/action-strip.component.ts @@ -16,6 +16,8 @@ import { AfterViewInit } from '@angular/core'; import { DisplayDensityBase, DisplayDensityToken, IDisplayDensityOptions } from '../core/density'; +import { IActionStripResourceStrings } from '../core/i18n/action-strip-resources'; +import { CurrentResourceStrings } from '../core/i18n/resources'; import { IgxDropDownComponent } from '../drop-down/public_api'; import { CloseScrollStrategy, OverlaySettings } from '../services/public_api'; import { IgxGridActionsBaseDirective } from './grid-actions/grid-actions-base.directive'; @@ -114,6 +116,24 @@ export class IgxActionStripComponent extends DisplayDensityBase implements After @Input('class') public hostClass: string; + /** + * Gets/Sets the resource strings. + * + * @remarks + * By default it uses EN resources. + */ + @Input() + public set resourceStrings(value: IActionStripResourceStrings) { + this._resourceStrings = Object.assign({}, this._resourceStrings, value); + } + + public get resourceStrings(): IActionStripResourceStrings { + if (!this._resourceStrings) { + this._resourceStrings = CurrentResourceStrings.ActionStripResourceStrings; + } + return this._resourceStrings; + } + /** * Reference to the menu * @@ -132,6 +152,7 @@ export class IgxActionStripComponent extends DisplayDensityBase implements After public menuOverlaySettings: OverlaySettings = { scrollStrategy: new CloseScrollStrategy() }; private _hidden = false; + private _resourceStrings; constructor( private _viewContainer: ViewContainerRef, diff --git a/projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-action-button.component.html b/projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-action-button.component.html index 13c4eb1a4e2..12911cb3c95 100644 --- a/projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-action-button.component.html +++ b/projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-action-button.component.html @@ -1,5 +1,5 @@ - diff --git a/projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-editing-actions.component.ts b/projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-editing-actions.component.ts index 1654a94d5e4..98069df4ff3 100644 --- a/projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-editing-actions.component.ts +++ b/projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-editing-actions.component.ts @@ -154,7 +154,7 @@ export class IgxGridEditingActionsComponent extends IgxGridActionsBaseDirective * @internal */ private registerIcons() { - this.iconService.addSvgIconFromText(addRow.name, addRow.value, 'imx-icons'); - this.iconService.addSvgIconFromText(addChild.name, addChild.value, 'imx-icons'); + this.iconService.addSvgIconFromText(addRow.name, addRow.value, 'imx-icons', true,); + this.iconService.addSvgIconFromText(addChild.name, addChild.value, 'imx-icons', true); } } diff --git a/projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-pinning-actions.component.ts b/projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-pinning-actions.component.ts index 54b83b215cd..225b54a9193 100644 --- a/projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-pinning-actions.component.ts +++ b/projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-pinning-actions.component.ts @@ -123,10 +123,10 @@ export class IgxGridPinningActionsComponent extends IgxGridActionsBaseDirective const context = this.strip.context; const grid = context.grid; if (grid) { - this.iconService.addSvgIconFromText(pinLeft.name, pinLeft.value, 'imx-icons'); - this.iconService.addSvgIconFromText(unpinLeft.name, unpinLeft.value, 'imx-icons'); - this.iconService.addSvgIconFromText(jumpDown.name, jumpDown.value, 'imx-icons'); - this.iconService.addSvgIconFromText(jumpUp.name, jumpDown.value, 'imx-icons'); + this.iconService.addSvgIconFromText(pinLeft.name, pinLeft.value, 'imx-icons', true); + this.iconService.addSvgIconFromText(unpinLeft.name, unpinLeft.value, 'imx-icons', true); + this.iconService.addSvgIconFromText(jumpDown.name, jumpDown.value, 'imx-icons', true); + this.iconService.addSvgIconFromText(jumpUp.name, jumpDown.value, 'imx-icons', true); } } } diff --git a/projects/igniteui-angular/src/lib/core/i18n/action-strip-resources.ts b/projects/igniteui-angular/src/lib/core/i18n/action-strip-resources.ts new file mode 100644 index 00000000000..5f49236c43e --- /dev/null +++ b/projects/igniteui-angular/src/lib/core/i18n/action-strip-resources.ts @@ -0,0 +1,7 @@ +export interface IActionStripResourceStrings { + igx_action_strip_button_more_title?: string; +} + +export const ActionStripResourceStringsEN: IActionStripResourceStrings = { + igx_action_strip_button_more_title: 'More' +}; diff --git a/projects/igniteui-angular/src/lib/core/i18n/resources.ts b/projects/igniteui-angular/src/lib/core/i18n/resources.ts index b1bb1aa6de2..34fd8c3d449 100644 --- a/projects/igniteui-angular/src/lib/core/i18n/resources.ts +++ b/projects/igniteui-angular/src/lib/core/i18n/resources.ts @@ -10,10 +10,11 @@ import { IListResourceStrings, ListResourceStringsEN } from './list-resources'; import { CalendarResourceStringsEN, ICalendarResourceStrings } from './calendar-resources'; import { IInputResourceStrings, InputResourceStringsEN } from './input-resources'; import { ITreeResourceStrings, TreeResourceStringsEN } from './tree-resources'; +import { IActionStripResourceStrings, ActionStripResourceStringsEN } from './action-strip-resources'; export interface IResourceStrings extends IGridResourceStrings, ITimePickerResourceStrings, ICalendarResourceStrings, ICarouselResourceStrings, IChipResourceStrings, IInputResourceStrings, IDatePickerResourceStrings, IDateRangePickerResourceStrings, - IListResourceStrings, IPaginatorResourceStrings, ITreeResourceStrings { } + IListResourceStrings, IPaginatorResourceStrings, ITreeResourceStrings, IActionStripResourceStrings { } /** * @hidden @@ -38,7 +39,8 @@ export const CurrentResourceStrings = { CarouselResStrings: cloneValue(CarouselResourceStringsEN), ListResStrings: cloneValue(ListResourceStringsEN), InputResStrings: cloneValue(InputResourceStringsEN), - TreeResStrings: cloneValue(TreeResourceStringsEN) + TreeResStrings: cloneValue(TreeResourceStringsEN), + ActionStripResourceStrings: cloneValue(ActionStripResourceStringsEN) }; const updateResourceStrings = (currentStrings: IResourceStrings, newStrings: IResourceStrings) => { @@ -74,5 +76,6 @@ export const getCurrentResourceStrings = (): IResourceStrings => ({ ...CurrentResourceStrings.ListResStrings, ...CurrentResourceStrings.PaginatorResStrings, ...CurrentResourceStrings.TimePickerResStrings, - ...CurrentResourceStrings.TreeResStrings + ...CurrentResourceStrings.TreeResStrings, + ...CurrentResourceStrings.ActionStripResourceStrings }); diff --git a/projects/igniteui-angular/src/public_api.ts b/projects/igniteui-angular/src/public_api.ts index d12f1fcaf8b..d04eadfcbce 100644 --- a/projects/igniteui-angular/src/public_api.ts +++ b/projects/igniteui-angular/src/public_api.ts @@ -127,5 +127,6 @@ export { IListResourceStrings } from './lib/core/i18n/list-resources'; export { ITreeResourceStrings } from './lib/core/i18n/tree-resources'; export { IInputResourceStrings } from './lib/core/i18n/input-resources'; export { IChipResourceStrings } from './lib/core/i18n/chip-resources'; +export { IActionStripResourceStrings } from './lib/core/i18n/action-strip-resources'; export { PickerInteractionMode } from './lib/date-common/types'; export { SplitterType } from './lib/splitter/splitter.component'; From 8431745300b2983f45c5b4d1483cccbb29907f97 Mon Sep 17 00:00:00 2001 From: Rumyana Andriova <54146583+randriova@users.noreply.github.com> Date: Wed, 3 Nov 2021 10:25:31 +0200 Subject: [PATCH 2/2] feat(i18n): updating localization - master --- .../igniteui-angular-i18n/src/i18n/CS/action-strip-resources.ts | 2 +- .../igniteui-angular-i18n/src/i18n/DA/action-strip-resources.ts | 2 +- .../igniteui-angular-i18n/src/i18n/DE/action-strip-resources.ts | 2 +- .../igniteui-angular-i18n/src/i18n/ES/action-strip-resources.ts | 2 +- .../igniteui-angular-i18n/src/i18n/FR/action-strip-resources.ts | 2 +- .../igniteui-angular-i18n/src/i18n/HU/action-strip-resources.ts | 2 +- .../igniteui-angular-i18n/src/i18n/IT/action-strip-resources.ts | 2 +- .../igniteui-angular-i18n/src/i18n/JA/action-strip-resources.ts | 2 +- .../igniteui-angular-i18n/src/i18n/KO/action-strip-resources.ts | 2 +- .../igniteui-angular-i18n/src/i18n/NB/action-strip-resources.ts | 2 +- .../igniteui-angular-i18n/src/i18n/NL/action-strip-resources.ts | 2 +- .../igniteui-angular-i18n/src/i18n/PL/action-strip-resources.ts | 2 +- .../igniteui-angular-i18n/src/i18n/PT/action-strip-resources.ts | 2 +- .../igniteui-angular-i18n/src/i18n/RO/action-strip-resources.ts | 2 +- .../igniteui-angular-i18n/src/i18n/SV/action-strip-resources.ts | 2 +- .../igniteui-angular-i18n/src/i18n/TR/action-strip-resources.ts | 2 +- .../src/i18n/ZH-HANS/action-strip-resources.ts | 2 +- .../src/i18n/ZH-HANT/action-strip-resources.ts | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/projects/igniteui-angular-i18n/src/i18n/CS/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/CS/action-strip-resources.ts index f51ff3ccc8a..7c9f560294b 100644 --- a/projects/igniteui-angular-i18n/src/i18n/CS/action-strip-resources.ts +++ b/projects/igniteui-angular-i18n/src/i18n/CS/action-strip-resources.ts @@ -2,7 +2,7 @@ import { IActionStripResourceStrings } from 'igniteui-angular'; // exported below as re-cast to create declaration type with expanded properties const ActionStripResourceStringsCS_: ExpandRequire = { - igx_action_strip_button_more_title: 'More' + igx_action_strip_button_more_title: 'Více' }; /** diff --git a/projects/igniteui-angular-i18n/src/i18n/DA/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/DA/action-strip-resources.ts index 9cecd1f1049..35863999896 100644 --- a/projects/igniteui-angular-i18n/src/i18n/DA/action-strip-resources.ts +++ b/projects/igniteui-angular-i18n/src/i18n/DA/action-strip-resources.ts @@ -2,7 +2,7 @@ import { IActionStripResourceStrings } from 'igniteui-angular'; // exported below as re-cast to create declaration type with expanded properties const ActionStripResourceStringsDA_: ExpandRequire = { - igx_action_strip_button_more_title: 'More' + igx_action_strip_button_more_title: 'Mere' }; /** diff --git a/projects/igniteui-angular-i18n/src/i18n/DE/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/DE/action-strip-resources.ts index 6332ea1e986..dba1f7c4665 100644 --- a/projects/igniteui-angular-i18n/src/i18n/DE/action-strip-resources.ts +++ b/projects/igniteui-angular-i18n/src/i18n/DE/action-strip-resources.ts @@ -2,7 +2,7 @@ import { IActionStripResourceStrings } from 'igniteui-angular'; // exported below as re-cast to create declaration type with expanded properties const ActionStripResourceStringsDE_: ExpandRequire = { - igx_action_strip_button_more_title: 'More' + igx_action_strip_button_more_title: 'Mehr' }; /** diff --git a/projects/igniteui-angular-i18n/src/i18n/ES/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/ES/action-strip-resources.ts index 4e1bb3ed444..8497ece3ebd 100644 --- a/projects/igniteui-angular-i18n/src/i18n/ES/action-strip-resources.ts +++ b/projects/igniteui-angular-i18n/src/i18n/ES/action-strip-resources.ts @@ -2,7 +2,7 @@ import { IActionStripResourceStrings } from 'igniteui-angular'; // exported below as re-cast to create declaration type with expanded properties const ActionStripResourceStringsES_: ExpandRequire = { - igx_action_strip_button_more_title: 'More' + igx_action_strip_button_more_title: 'Más' }; /** diff --git a/projects/igniteui-angular-i18n/src/i18n/FR/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/FR/action-strip-resources.ts index bd5314895fc..e9887244268 100644 --- a/projects/igniteui-angular-i18n/src/i18n/FR/action-strip-resources.ts +++ b/projects/igniteui-angular-i18n/src/i18n/FR/action-strip-resources.ts @@ -2,7 +2,7 @@ import { IActionStripResourceStrings } from 'igniteui-angular'; // exported below as re-cast to create declaration type with expanded properties const ActionStripResourceStringsFR_: ExpandRequire = { - igx_action_strip_button_more_title: 'More' + igx_action_strip_button_more_title: 'Plus' }; /** diff --git a/projects/igniteui-angular-i18n/src/i18n/HU/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/HU/action-strip-resources.ts index 9f893fd78da..c542740bf34 100644 --- a/projects/igniteui-angular-i18n/src/i18n/HU/action-strip-resources.ts +++ b/projects/igniteui-angular-i18n/src/i18n/HU/action-strip-resources.ts @@ -2,7 +2,7 @@ import { IActionStripResourceStrings } from 'igniteui-angular'; // exported below as re-cast to create declaration type with expanded properties const ActionStripResourceStringsHU_: ExpandRequire = { - igx_action_strip_button_more_title: 'More' + igx_action_strip_button_more_title: 'Továbbiak' }; /** diff --git a/projects/igniteui-angular-i18n/src/i18n/IT/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/IT/action-strip-resources.ts index e1a1eaffa50..2d093dd75ad 100644 --- a/projects/igniteui-angular-i18n/src/i18n/IT/action-strip-resources.ts +++ b/projects/igniteui-angular-i18n/src/i18n/IT/action-strip-resources.ts @@ -2,7 +2,7 @@ import { IActionStripResourceStrings } from 'igniteui-angular'; // exported below as re-cast to create declaration type with expanded properties const ActionStripResourceStringsIT_: ExpandRequire = { - igx_action_strip_button_more_title: 'More' + igx_action_strip_button_more_title: 'Altro' }; /** diff --git a/projects/igniteui-angular-i18n/src/i18n/JA/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/JA/action-strip-resources.ts index 2056075a91d..f7fd528edef 100644 --- a/projects/igniteui-angular-i18n/src/i18n/JA/action-strip-resources.ts +++ b/projects/igniteui-angular-i18n/src/i18n/JA/action-strip-resources.ts @@ -2,7 +2,7 @@ import { IActionStripResourceStrings } from 'igniteui-angular'; // exported below as re-cast to create declaration type with expanded properties const ActionStripResourceStringsJA_: ExpandRequire = { - igx_action_strip_button_more_title: 'Още' + igx_action_strip_button_more_title: 'その他' }; /** diff --git a/projects/igniteui-angular-i18n/src/i18n/KO/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/KO/action-strip-resources.ts index 59a77f1972e..5370b808a91 100644 --- a/projects/igniteui-angular-i18n/src/i18n/KO/action-strip-resources.ts +++ b/projects/igniteui-angular-i18n/src/i18n/KO/action-strip-resources.ts @@ -2,7 +2,7 @@ import { IActionStripResourceStrings } from 'igniteui-angular'; // exported below as re-cast to create declaration type with expanded properties const ActionStripResourceStringsKO_: ExpandRequire = { - igx_action_strip_button_more_title: 'More' + igx_action_strip_button_more_title: '더 보기' }; /** diff --git a/projects/igniteui-angular-i18n/src/i18n/NB/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/NB/action-strip-resources.ts index fba9c8f37b1..f0f5011b102 100644 --- a/projects/igniteui-angular-i18n/src/i18n/NB/action-strip-resources.ts +++ b/projects/igniteui-angular-i18n/src/i18n/NB/action-strip-resources.ts @@ -2,7 +2,7 @@ import { IActionStripResourceStrings } from 'igniteui-angular'; // exported below as re-cast to create declaration type with expanded properties const ActionStripResourceStringsNB_: ExpandRequire = { - igx_action_strip_button_more_title: 'More' + igx_action_strip_button_more_title: 'Mer' }; /** diff --git a/projects/igniteui-angular-i18n/src/i18n/NL/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/NL/action-strip-resources.ts index d3b32c41f04..6f5bf41384c 100644 --- a/projects/igniteui-angular-i18n/src/i18n/NL/action-strip-resources.ts +++ b/projects/igniteui-angular-i18n/src/i18n/NL/action-strip-resources.ts @@ -2,7 +2,7 @@ import { IActionStripResourceStrings } from 'igniteui-angular'; // exported below as re-cast to create declaration type with expanded properties const ActionStripResourceStringsNL_: ExpandRequire = { - igx_action_strip_button_more_title: 'More' + igx_action_strip_button_more_title: 'Meer' }; /** diff --git a/projects/igniteui-angular-i18n/src/i18n/PL/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/PL/action-strip-resources.ts index 081b31432a4..fd3e6d91151 100644 --- a/projects/igniteui-angular-i18n/src/i18n/PL/action-strip-resources.ts +++ b/projects/igniteui-angular-i18n/src/i18n/PL/action-strip-resources.ts @@ -2,7 +2,7 @@ import { IActionStripResourceStrings } from 'igniteui-angular'; // exported below as re-cast to create declaration type with expanded properties const ActionStripResourceStringsPL_: ExpandRequire = { - igx_action_strip_button_more_title: 'More' + igx_action_strip_button_more_title: 'Więcej' }; /** diff --git a/projects/igniteui-angular-i18n/src/i18n/PT/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/PT/action-strip-resources.ts index 7e7a1326662..7afcc7cf1a7 100644 --- a/projects/igniteui-angular-i18n/src/i18n/PT/action-strip-resources.ts +++ b/projects/igniteui-angular-i18n/src/i18n/PT/action-strip-resources.ts @@ -2,7 +2,7 @@ import { IActionStripResourceStrings } from 'igniteui-angular'; // exported below as re-cast to create declaration type with expanded properties const ActionStripResourceStringsPT_: ExpandRequire = { - igx_action_strip_button_more_title: 'More' + igx_action_strip_button_more_title: 'Mais' }; /** diff --git a/projects/igniteui-angular-i18n/src/i18n/RO/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/RO/action-strip-resources.ts index 8f80d6690c6..cbb2ec06bff 100644 --- a/projects/igniteui-angular-i18n/src/i18n/RO/action-strip-resources.ts +++ b/projects/igniteui-angular-i18n/src/i18n/RO/action-strip-resources.ts @@ -2,7 +2,7 @@ import { IActionStripResourceStrings } from 'igniteui-angular'; // exported below as re-cast to create declaration type with expanded properties const ActionStripResourceStringsRO_: ExpandRequire = { - igx_action_strip_button_more_title: 'More' + igx_action_strip_button_more_title: 'Mai mult' }; /** diff --git a/projects/igniteui-angular-i18n/src/i18n/SV/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/SV/action-strip-resources.ts index 5d2df9664df..a5609ad9c8b 100644 --- a/projects/igniteui-angular-i18n/src/i18n/SV/action-strip-resources.ts +++ b/projects/igniteui-angular-i18n/src/i18n/SV/action-strip-resources.ts @@ -2,7 +2,7 @@ import { IActionStripResourceStrings } from 'igniteui-angular'; // exported below as re-cast to create declaration type with expanded properties const ActionStripResourceStringsSV_: ExpandRequire = { - igx_action_strip_button_more_title: 'More' + igx_action_strip_button_more_title: 'Mer' }; /** diff --git a/projects/igniteui-angular-i18n/src/i18n/TR/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/TR/action-strip-resources.ts index 85ca3b0f2cb..a0c9fc7f3ff 100644 --- a/projects/igniteui-angular-i18n/src/i18n/TR/action-strip-resources.ts +++ b/projects/igniteui-angular-i18n/src/i18n/TR/action-strip-resources.ts @@ -2,7 +2,7 @@ import { IActionStripResourceStrings } from 'igniteui-angular'; // exported below as re-cast to create declaration type with expanded properties const ActionStripResourceStringsTR_: ExpandRequire = { - igx_action_strip_button_more_title: 'More' + igx_action_strip_button_more_title: 'Diğer' }; /** diff --git a/projects/igniteui-angular-i18n/src/i18n/ZH-HANS/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/ZH-HANS/action-strip-resources.ts index 82cb431f7b2..c452fad23a0 100644 --- a/projects/igniteui-angular-i18n/src/i18n/ZH-HANS/action-strip-resources.ts +++ b/projects/igniteui-angular-i18n/src/i18n/ZH-HANS/action-strip-resources.ts @@ -2,7 +2,7 @@ import { IActionStripResourceStrings } from 'igniteui-angular'; // exported below as re-cast to create declaration type with expanded properties const ActionStripResourceStringsZHHANS_: ExpandRequire = { - igx_action_strip_button_more_title: 'More' + igx_action_strip_button_more_title: '其他' }; /** diff --git a/projects/igniteui-angular-i18n/src/i18n/ZH-HANT/action-strip-resources.ts b/projects/igniteui-angular-i18n/src/i18n/ZH-HANT/action-strip-resources.ts index 77d83082a6b..8707376845e 100644 --- a/projects/igniteui-angular-i18n/src/i18n/ZH-HANT/action-strip-resources.ts +++ b/projects/igniteui-angular-i18n/src/i18n/ZH-HANT/action-strip-resources.ts @@ -2,7 +2,7 @@ import { IActionStripResourceStrings } from 'igniteui-angular'; // exported below as re-cast to create declaration type with expanded properties const ActionStripResourceStringsZHHANT_: ExpandRequire = { - igx_action_strip_button_more_title: 'More' + igx_action_strip_button_more_title: '其他' }; /**