fix: more useful comment for util function

This commit is contained in:
Chuma McPhoy
2024-07-03 16:29:44 +02:00
parent 7509cc9c8a
commit de20f65c00

View File

@@ -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()