Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F996104
i18n.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
437 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
:
any
[])
=>
{
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
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)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment