From de20f65c005053191a9c1aed2b28c137b2415f5c Mon Sep 17 00:00:00 2001 From: Chuma McPhoy Date: Wed, 3 Jul 2024 16:29:44 +0200 Subject: [PATCH] fix: more useful comment for util function --- constants/languages.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/constants/languages.ts b/constants/languages.ts index 085666204..d3fbfae27 100644 --- a/constants/languages.ts +++ b/constants/languages.ts @@ -74,7 +74,8 @@ export function findLang(pathname: string) { } /** - * Helper function to convert API's (e.g. the Hotel endpoint) capitalized values to Lang enum. + * Helper function to convert langs in uppercase or capitalized format (e.g. the Hotel endpoint) + * to to Lang enum. */ export function fromUppercaseToLangEnum(lang: string): Lang | undefined { const lowerCaseLang = lang.toLowerCase()