Skip to content

Commit e13186c

Browse files
4manasamanasa
andauthored
Fixed the Localization issues (#396)
* Fixed the Localization issues * localization fix --------- Co-authored-by: manasa <[email protected]>
1 parent 175d366 commit e13186c

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

packages/angular-sdk-components/src/lib/_components/infra/reference/reference.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ export class ReferenceComponent {
7171
pageReference: context && context.startsWith('@CLASS') ? '' : context
7272
});
7373

74+
if (referenceConfig.inheritedProps && referenceConfig.inheritedProps.length > 0) {
75+
const inheritedProps = inPConn.getInheritedProps();
76+
referenceConfig.inheritedProps = Object.keys(inheritedProps).map(prop => ({ prop, value: inheritedProps[prop] }));
77+
}
78+
7479
// Get the PConnect object from the created component
7580
const newCompPConnect = viewComponent.getPConnect();
7681

packages/angular-sdk-components/src/lib/_components/template/list-view/list-view.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ interface ListViewProps {
4646
displayAs?: string;
4747
showRecords: boolean;
4848
viewName?: string;
49+
localeReference?: any;
4950
}
5051

5152
export class Group {
@@ -516,6 +517,7 @@ export class ListViewComponent implements OnInit, OnDestroy {
516517
const arReturn = arFields;
517518
arReturn.forEach((field, i) => {
518519
field.config = { ...field.config, ...fields[i], name: fields[i].id };
520+
field.config.label = PCore.getLocaleUtils().getLocaleValue(field.config.label, this.configProps$.localeReference);
519521
});
520522
return arReturn;
521523
}

packages/angular-sdk-components/src/lib/_components/widget/file-utility/file-utility.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
}
2525

2626
.psdk-modal-file-selector {
27-
border: 1px dashed var(--app-neutral-dark-color);
27+
border: 1px dashed var(--mat-sys-neutral-variant20);
2828
width: 100%;
2929
padding: 0.3rem;
3030
text-align: center;

0 commit comments

Comments
 (0)