Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

391 B
Raw Blame
export const DEFAULT_NAMESPACE_MARKER = '__i18nNamespace';

export interface NamespaceMarker<N extends string> {
  readonly __i18nNamespace?: N;
}

export type Namespaced<N extends string, F> = F & NamespaceMarker<N>;

export type NamespacedTranslate<
  N extends string,
  Result = string,
  Options = Record<string, unknown>,
> = Namespaced<N, (key: string, options?: Options) => Result>;