matchLanguage beta
Function of @v12-engine/client
ts
export declare function matchLanguage(wanted: readonly string[], have: readonly string[]): string | undefined;The language a player reads, of those a game has: the first of the browser's (navigator.languages) the game has, by its whole id or by its language alone (pt-BR for pt, pt for pt-BR), else the game's first