feat: wire public posts api

This commit is contained in:
TerryM
2026-05-26 12:07:13 +08:00
parent f482a2ec38
commit d3c30795dc
19 changed files with 299 additions and 163 deletions

View File

@@ -16,3 +16,11 @@ export function languageLabel(t: (key: string) => string, code: string) {
const label = t(key);
return label === key ? code : label;
}
export function sourceLanguageQuery(code: string) {
return code === "zh-CN" ? "zh" : code;
}
export function localizationKey(code: string) {
return code === "zh-CN" || code.startsWith("zh") ? "zh" : code;
}