Skip to content

Commit

Permalink
Fix language detection
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldF committed Oct 3, 2018
1 parent 33d2d24 commit bdb5e6a
Show file tree
Hide file tree
Showing 4 changed files with 1,179 additions and 321 deletions.
5 changes: 2 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<html>
<head>
<script>
const lang = window.navigator.languages.includes("de") ? "de" : "C";
</script>
<meta charset="UTF-8">
<title>Sheepshead</title>
</head>
<body>
<h1>Schafkopf</h1>
Expand Down
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Card } from "./src/card";
import { Hand } from "./src/hand";
import { CardImages } from "./src/cardimages";

declare const lang: string;
const lang = (window && window.navigator.languages.includes("de")) ? "de" : "C";

const players: Players = [
new Player(PlayerNumber.First),
Expand Down
Loading

0 comments on commit bdb5e6a

Please sign in to comment.