Backstage
Docs
Github
Preparing search index...
@backstage/frontend-plugin-api
TranslationResourceOptions
Interface TranslationResourceOptions<TId, TMessages, TTranslations>
interface
TranslationResourceOptions
<
TId
extends
string
,
TMessages
extends
{
[
key
in
string
]
:
string
}
,
TTranslations
extends
{
[
language
in
string
]
:
()
=>
Promise
<
{
default
:
|
TranslationMessages
<
TId
>
|
{
[
key
in
keyof
TMessages
]
:
string
|
null
}
;
}
,
>
}
,
>
{
ref
:
TranslationRef
<
TId
,
TMessages
>
;
translations
:
TTranslations
;
}
Type Parameters
TId
extends
string
TMessages
extends
{
[
key
in
string
]
:
string
}
TTranslations
extends
{
[
language
in
string
]
:
()
=>
Promise
<
{
default
:
|
TranslationMessages
<
TId
>
|
{
[
key
in
keyof
TMessages
]
:
string
|
null
}
;
}
,
>
}
Index
Properties
ref
translations
Properties
ref
ref
:
TranslationRef
<
TId
,
TMessages
>
translations
translations
:
TTranslations
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
ref
translations
Docs
Github
Backstage
Loading...