Page MenuHomeSealhub

i18n.ts
No OneTemporary

import * as assert from "assert";
import languages from "./languages/languages";
export default (default_language: string) => {
assert.ok(default_language);
assert.ok(languages[default_language]);
return (key: string, params: unknown[]) => {
let translation: string;
if (languages[default_language][key]) {
translation = languages[default_language][key](...(params || []));
} else {
translation = key;
}
return translation;
};
};

File Metadata

Mime Type
text/x-java
Expires
Mon, Dec 23, 08:36 (22 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
556297
Default Alt Text
i18n.ts (452 B)

Event Timeline