diff --git a/src/app/components/api/primengconfig.ts b/src/app/components/api/primengconfig.ts
index 392b3c305f7..c096885cdc7 100644
--- a/src/app/components/api/primengconfig.ts
+++ b/src/app/components/api/primengconfig.ts
@@ -139,7 +139,8 @@ export class PrimeNGConfig {
rotateLeft: 'Rotate Left',
listLabel: 'Option List',
selectColor: 'Select a color',
- removeLabel: 'Remove'
+ removeLabel: 'Remove',
+ browseFiles: 'Browse Files'
}
};
diff --git a/src/app/components/api/translation.ts b/src/app/components/api/translation.ts
index bdbc8861547..bc7030211c0 100644
--- a/src/app/components/api/translation.ts
+++ b/src/app/components/api/translation.ts
@@ -130,4 +130,5 @@ export interface Aria {
listLabel?: string;
selectColor?: string;
removeLabel?: string;
+ browseFiles?: string;
}
diff --git a/src/app/components/api/translationkeys.ts b/src/app/components/api/translationkeys.ts
index 46424c192bf..998a358e6b0 100644
--- a/src/app/components/api/translationkeys.ts
+++ b/src/app/components/api/translationkeys.ts
@@ -46,4 +46,5 @@ export class TranslationKeys {
public static readonly SELECTION_MESSAGE = 'selectionMessage';
public static readonly ARIA = 'aria';
public static readonly SELECT_COLOR = 'selectColor';
+ public static readonly BROWSE_FILES = 'browseFiles';
}
diff --git a/src/app/components/fileupload/fileupload.ts b/src/app/components/fileupload/fileupload.ts
index 178b58a3068..edd58096d84 100755
--- a/src/app/components/fileupload/fileupload.ts
+++ b/src/app/components/fileupload/fileupload.ts
@@ -57,7 +57,17 @@ import { FileBeforeUploadEvent, FileProgressEvent, FileRemoveEvent, FileSelectEv
[class]="chooseStyleClass"
[attr.data-pc-section]="'choosebutton'"
>
-
+
@@ -146,7 +156,19 @@ import { FileBeforeUploadEvent, FileProgressEvent, FileRemoveEvent, FileSelectEv
{{ basicButtonLabel }}
-
+
`,
@@ -889,6 +911,10 @@ export class FileUpload implements AfterViewInit, AfterContentInit, OnInit, OnDe
return this.cancelLabel || this.config.getTranslation(TranslationKeys.CANCEL);
}
+ get browseFilesLabel(): string {
+ return this.config.getTranslation(TranslationKeys.ARIA)[TranslationKeys.BROWSE_FILES];
+ }
+
ngOnDestroy() {
if (this.content && this.content.nativeElement) {
if (this.dragOverListener) {