added english language

This commit is contained in:
SlimusMinus
2026-07-09 00:09:45 +03:00
parent 3b503623f6
commit fffcdaa526
33 changed files with 454 additions and 687 deletions

View File

@@ -10,7 +10,7 @@ export function useAuth() {
const [error, setError] = useState("");
const login = async (login, password) => {
if (!login || !password) { setError("Введите логин и пароль"); return; }
if (!login || !password) { setError("Enter login and password"); return; }
setLoading(true); setError("");
try {
@@ -22,7 +22,7 @@ export function useAuth() {
if (!res.ok) {
const data = await res.json().catch(() => ({}));
throw new Error(data.message || "Неверный логин или пароль");
throw new Error(data.message || "Invalid login or password");
}
const { token, user } = await res.json();