feat: wire public posts api
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user