fromCode

Converts a language code string to a Language enum. If the code is not recognized, returns EN as a fallback.

Return

The corresponding Language enum, or EN if not found

Parameters

code

The language code to convert