From 0bdb6d260e2105c45c8f53b1d6681fc7e1e5110d Mon Sep 17 00:00:00 2001 From: Melloware Date: Mon, 6 May 2024 14:15:18 -0400 Subject: [PATCH] Add ariaLabel method to Typescript (#6582) --- components/lib/api/api.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/lib/api/api.d.ts b/components/lib/api/api.d.ts index 5bf989b090..986ec24a96 100644 --- a/components/lib/api/api.d.ts +++ b/components/lib/api/api.d.ts @@ -729,6 +729,14 @@ export declare function localeOption(key: string, locale: string): any; */ export declare function localeOptions(locale: string): object; +/** + * Finds an ARIA label in the locale by key and replaces options if provided. + * @param {string} ariaKey - Key of the ARIA label to look up in the locale. + * @param {Object} options - JSON options like { page: 2, user: "John", role: "Admin" }. + * @returns {string} The ARIA label with replaced values. + */ +export declare function ariaLabel(ariaKey: string, options: any): string; + // Locale Options export interface LocaleOptions { /**