Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F995593
i18n.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
452 B
Referenced Files
None
Subscribers
None
i18n.ts
View Options
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
Details
Attached
Mime Type
text/x-java
Expires
Mon, Dec 23, 08:36 (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
556297
Default Alt Text
i18n.ts (452 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment