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

@@ -1,7 +1,7 @@
import { useCallback } from "react";
import { tLang } from "../i18n";
/** Admin area always uses 繁體中文, independent of site language. */
/** Admin area always uses Chinese, independent of site language. */
export function useAdminT() {
return useCallback((key: string) => tLang("zh-TW", key), []);
return useCallback((key: string) => tLang("zh", key), []);
}