mirror of
https://github.com/outline/outline.git
synced 2026-11-30 09:00:18 +03:00
6 lines
156 B
TypeScript
6 lines
156 B
TypeScript
export function detectLanguage() {
|
|
const [ln, r] = navigator.language.split("-");
|
|
const region = (r || ln).toUpperCase();
|
|
return `${ln}_${region}`;
|
|
}
|