Interface: DataLocaleProvider
Defined in: editor/dataLocaleProvider.ts:14
Provides the methods to format the graph data according to the current language.
See
DefaultDataLocaleFormatter
Methods
formatEntityLabel()
formatEntityLabel(
entity
,language
):string
Defined in: editor/dataLocaleProvider.ts:33
Formats a graph entity label.
Parameters
Parameter | Type | Description |
---|---|---|
| entity to format label for | |
|
| target language code |
Returns
string
formatEntityTypeList()
formatEntityTypeList(
entity
,language
):string
Defined in: editor/dataLocaleProvider.ts:40
Formats a graph entity types into a list.
Parameters
Parameter | Type | Description |
---|---|---|
| entity to format type list for | |
|
| target language code |
Returns
string
formatIri()
formatIri(
iri
):string
Defined in: editor/dataLocaleProvider.ts:26
Formats an IRI (unique identifier) for a graph content item.
Parameters
Parameter | Type |
---|---|
|
|
Returns
string
selectEntityImageUrl()
selectEntityImageUrl(
entity
):undefined
|string
Defined in: editor/dataLocaleProvider.ts:22
Selects a preferred image URL for an entity.
Parameters
Parameter | Type |
---|---|
|
Returns
undefined
| string
selectEntityLabel()
selectEntityLabel(
entity
): readonlyLiteral
[]
Defined in: editor/dataLocaleProvider.ts:18
Selects a preferred set of localized labels for an entity.
Parameters
Parameter | Type |
---|---|
|
Returns
readonly Literal
[]