Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Toolkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Web Component Framework
Toolkit
Commits
8f03cd32
Commit
8f03cd32
authored
5 years ago
by
Bekerle, Patrizio
Committed by
Reiter, Christoph
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implement JSONLD language switching
parent
921d284c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/common/jsonld.js
+5
-1
5 additions, 1 deletion
packages/common/jsonld.js
with
5 additions
and
1 deletion
packages/common/jsonld.js
+
5
−
1
View file @
8f03cd32
...
@@ -24,7 +24,11 @@ export default class JSONLD {
...
@@ -24,7 +24,11 @@ export default class JSONLD {
this
.
idToEntityNameMatchList
=
idToEntityNameMatchList
;
this
.
idToEntityNameMatchList
=
idToEntityNameMatchList
;
}
}
static
initialize
(
apiUrl
,
successFnc
,
failureFnc
)
{
static
initialize
(
apiUrl
,
successFnc
,
failureFnc
,
lang
=
'
de
'
)
{
if
(
lang
!==
'
de
'
)
{
i18n
.
changeLanguage
(
lang
);
}
// if init api call was already successfully finished execute the success function
// if init api call was already successfully finished execute the success function
if
(
instances
[
apiUrl
]
!==
undefined
)
{
if
(
instances
[
apiUrl
]
!==
undefined
)
{
if
(
typeof
successFnc
==
'
function
'
)
successFnc
(
instances
[
apiUrl
]);
if
(
typeof
successFnc
==
'
function
'
)
successFnc
(
instances
[
apiUrl
]);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment