fix: more useful comment for util function
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user