Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go
1009 B
Raw Blame
import {
  docsLocalePrefix,
  isTraditionalChinese,
} from "../../common/docs-locale";

export function daemonRuntimesDocsHref(language?: string): string {
  return `https://multica.ai/docs${docsLocalePrefix(language)}/daemon-runtimes`;
}

export function customRuntimeDocsHref(language?: string): string {
  const base = daemonRuntimesDocsHref(language);
  if (isTraditionalChinese(language)) {
    return `${base}#${encodeURIComponent("自定義執行時配置")}`;
  }
  if (language?.startsWith("zh")) {
    return `${base}#${encodeURIComponent("自定义运行时配置")}`;
  }
  if (language?.startsWith("ja")) {
    return `${base}#${encodeURIComponent("カスタムランタイムプロファイル")}`;
  }
  if (language?.startsWith("ko")) {
    return `${base}#${encodeURIComponent("사용자-지정-런타임-프로필")}`;
  }
  if (language?.startsWith("fr")) {
    return `${base}#${encodeURIComponent("profils-de-runtime-personnalisés")}`;
  }
  return `${base}#custom-runtime-profiles`;
}