feat: align frontend languages with posts api

This commit is contained in:
TerryM
2026-05-26 07:36:53 +08:00
parent 453abfcec7
commit e7a5952d58
19 changed files with 565 additions and 544 deletions

View File

@@ -32,7 +32,7 @@ export function AdminResources() {
const [total, setTotal] = useState(0);
useEffect(() => {
getJSON<Category[]>("/api/categories?lang=zh-TW")
getJSON<Category[]>("/api/categories?lang=zh")
.then((cats) => {
const m: Record<number, string> = {};
for (const c of cats) m[c.id] = c.name;