Skip to content

Tankōbon / lib/utils / formatLanguage

Function: formatLanguage() ​

formatLanguage(code): string | null

Defined in: lib/utils.ts:36

An ISO 639-1 code as a language name in the current language ("fr" → "French", or "français" in French); null for null, the code itself when the runtime doesn't know it.

Parameters ​

code ​

string | null

Returns ​

string | null