A dead simple time tracker that keeps everything in local storage. Next.js, no accounts and no server.
handcodedlocalstoragenextjsreactself-hostedserverlesstime-trackingtimer
1import React, { useContext } from "react";
2
3import { Context } from "./context";
4
5import styles from "../styles/components/l10n.module.css";
6
7const L10n = () => {
8 const { state, dispatch } = useContext(Context);
9
10 return (
11 <select
12 className={styles.select}
13 onChange={(evt) => {
14 dispatch({ type: "SET_LANGUAGE", language: evt.target.value });
15 }}
16 value={state.language}
17 >
18 <option value="en">English</option>
19 <option value="jp">日本語</option>
20 <option value="pl">Polski</option>
21 </select>
22 );
23};
24
25export default L10n;