UNPKG
@koishijs/i18n-utils
Version:
latest (1.0.1)
1.0.1
1.0.0
I18n Utilities for Koishi
koishi.chat/api/utils.html
koishijs/koishi
@koishijs/i18n-utils
/
lib
/
index.d.ts
8 lines
(7 loc)
•
218 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
export
type
LocaleTree
= { [key
in
string
]:
LocaleTree
; };
export
namespace
LocaleTree
{
function
from
(
locales
:
string
[]
):
LocaleTree
; }
export
function
fallback
(
tree
:
LocaleTree
,
locales
:
string
[]
):
string
[];