Backstage
Docs
GitHub
Preparing search index...
@backstage/frontend-plugin-api
index
TranslationRef
Interface TranslationRef<TId, TMessages>
interface
TranslationRef
<
TId
extends
string
=
string
,
TMessages
extends
{
[
key
in
string
]
:
string
}
=
{
[
key
in
string
]
:
string
}
,
>
{
$$type
:
"@backstage/TranslationRef"
;
id
:
TId
;
T
:
TMessages
;
<
TKey
extends
string
>
(
key
:
TKey
,
)
:
TranslationRefTuple
<
TranslationTupleOptions
<
TMessages
,
TKey
>
>
;
}
Type Parameters
TId
extends
string
=
string
TMessages
extends
{
[
key
in
string
]
:
string
}
=
{
[
key
in
string
]
:
string
}
TranslationRef
<
TKey
extends
string
>
(
key
:
TKey
,
)
:
TranslationRefTuple
<
TranslationTupleOptions
<
TMessages
,
TKey
>
>
Selects a message key, checked against this ref's declared messages.
Type Parameters
TKey
extends
string
Parameters
key
:
TKey
Returns
TranslationRefTuple
<
TranslationTupleOptions
<
TMessages
,
TKey
>
>
Index
Properties
$$type
id
T
Properties
$$type
$$type
:
"@backstage/TranslationRef"
id
id
:
TId
T
T
:
TMessages
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
$$type
id
T
Docs
GitHub
Backstage
Loading...
Selects a message key, checked against this ref's declared messages.