feat: align frontend languages with posts api
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user