Page MenuHomeSealhub

translate.ts
No OneTemporary

translate.ts

import { Context } from "koa";
import { Translation } from "sealious";
export function t(
ctx: Context,
key: string,
props: unknown[],
default_translation: Translation
) {
return /* HTML */ `<span translation-key="${key.replace('"', '\\"')}"
>${ctx.$app.getString(key, props, default_translation)}</span
>`;
}

File Metadata

Mime Type
text/x-java
Expires
Fri, Jan 24, 15:15 (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
599771
Default Alt Text
translate.ts (319 B)

Event Timeline