mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-28 08:43:07 +08:00
added polish wikipedia
This commit is contained in:
parent
17713fde87
commit
8612c0d2f2
1 changed files with 4 additions and 1 deletions
|
@ -4,7 +4,7 @@ import { Section } from "../utils/misc";
|
|||
|
||||
export async function getTLD(
|
||||
languageGroup: MonkeyTypes.LanguageGroup
|
||||
): Promise<"en" | "es" | "fr" | "de" | "pt" | "it" | "nl"> {
|
||||
): Promise<"en" | "es" | "fr" | "de" | "pt" | "it" | "nl" | "pl"> {
|
||||
// language group to tld
|
||||
switch (languageGroup.name) {
|
||||
case "english":
|
||||
|
@ -28,6 +28,9 @@ export async function getTLD(
|
|||
case "dutch":
|
||||
return "nl";
|
||||
|
||||
case "polish":
|
||||
return "pl";
|
||||
|
||||
default:
|
||||
return "en";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue