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: any[]) => {
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
Tue, Dec 24, 10:28 (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
557071
Default Alt Text
i18n.ts (437 B)

Event Timeline