Skip to content

Commit 89588f2

Browse files
committed
Ensure Locale.language is always non-empty (fixing Node.js 20 weirdness)
1 parent 289b2e0 commit 89588f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fluent-langneg/src/locale.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@ export class LocaleWrapper extends Intl.Locale {
2222
}
2323
}
2424
}
25+
26+
get language(): string {
27+
return super.language ?? "und";
28+
}
2529
}

0 commit comments

Comments
 (0)