Skip to content

Commit

Permalink
Dudo: translate rules to French
Browse files Browse the repository at this point in the history
  • Loading branch information
simlmx committed Jul 7, 2024
1 parent fb4fbf8 commit c6a09df
Show file tree
Hide file tree
Showing 11 changed files with 412 additions and 137 deletions.
4 changes: 2 additions & 2 deletions game/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"test": "pnpm vitest run src"
},
"dependencies": {
"@lefun/core": "1.4.0",
"@lefun/game": "1.4.0",
"@lefun/core": "1.5.0",
"@lefun/game": "1.5.0",
"lodash-es": "^4.17.21"
},
"devDependencies": {
Expand Down
86 changes: 43 additions & 43 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
},
"devDependencies": {
"@babel/preset-react": "^7.24.7",
"@lefun/core": "^1.4.0",
"@lefun/dev-server": "^1.4.0",
"@lefun/game": "^1.4.0",
"@lefun/ui": "^1.4.0",
"@lefun/ui-testing": "^1.4.0",
"@lefun/core": "^1.5.0",
"@lefun/dev-server": "^1.5.0",
"@lefun/game": "^1.5.0",
"@lefun/ui": "^1.5.0",
"@lefun/ui-testing": "^1.5.0",
"@lingui/cli": "^4.11.1",
"@lingui/conf": "^4.11.1",
"@lingui/macro": "^4.11.1",
Expand Down
18 changes: 2 additions & 16 deletions ui/src/Board.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,13 @@ import {
} from "dudo-game";

import { Die } from "./Die";
import { useFonts } from "./hooks";
import {
iAmAliveSelector,
iHaveRolledSelector,
itsMyTurnSelector,
} from "./selectors";

const useSetFont = () => {
// Add the google font. This is a bit hacky but we have no other way to control the
// "outer" HTML.
useEffect(() => {
const parent = document.getElementsByTagName("head")[0];
parent.insertAdjacentHTML(
"beforeend",
`
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Hammersmith+One&display=swap" rel="stylesheet">
`,
);
}, []);
};

type PlayerColor = {
text: string;
bg: string;
Expand Down Expand Up @@ -867,7 +853,7 @@ const Header = () => {
};

const Board = () => {
useSetFont();
useFonts();

const playerOrder = useSelectorShallow((state) => {
return state.board.playerOrder;
Expand Down
Loading

0 comments on commit c6a09df

Please sign in to comment.