Skip to content

Commit

Permalink
Update health-services/project-factory/src/server/utils/genericUtils.ts
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
ashish-egov and coderabbitai[bot] authored Jan 21, 2025
1 parent cdcec89 commit e4cbbc4
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1338,6 +1338,13 @@ async function getLocalizedMessagesHandlerViaRequestInfo(RequestInfo: any, tenan
return localizationResponse;
}

/**
* Get localized messages using a specific locale
* @param locale The locale string to use for localization
* @param tenantId The tenant ID
* @param module The module name, defaults to config.localisation.localizationModule
* @returns Promise<Record<string, string>> A promise that resolves to localized messages
*/
async function getLocalizedMessagesHandlerViaLocale(locale:string, tenantId: any, module = config.localisation.localizationModule) {
const localisationcontroller = Localisation.getInstance();
const localizationResponse = await localisationcontroller.getLocalisedData(module, locale, tenantId);
Expand Down

0 comments on commit e4cbbc4

Please sign in to comment.