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
d8440964
Commit
d8440964
authored
3 years ago
by
Reiter, Christoph
Browse files
Options
Downloads
Patches
Plain Diff
tugraz-logo: extra i18next instance per component
This was forgotten ebcause it isn't used in the tests currently
parent
abe74874
No related branches found
No related tags found
No related merge requests found
Pipeline
#51265
failed
3 years ago
Stage: test
Stage: deploy
Stage: e2e
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/app-shell/src/tugraz-logo.js
+5
-5
5 additions, 5 deletions
packages/app-shell/src/tugraz-logo.js
with
5 additions
and
5 deletions
packages/app-shell/src/tugraz-logo.js
+
5
−
5
View file @
d8440964
import
{
html
,
css
}
from
'
lit-element
'
;
import
{
html
,
css
}
from
'
lit-element
'
;
import
*
as
commonStyles
from
'
@dbp-toolkit/common/styles
'
;
import
*
as
commonStyles
from
'
@dbp-toolkit/common/styles
'
;
import
{
createI
18nI
nstance
}
from
'
./i18n.js
'
;
import
{
createInstance
}
from
'
./i18n.js
'
;
import
{
AdapterLitElement
}
from
"
@dbp-toolkit/provider/src/adapter-lit-element
"
;
import
{
AdapterLitElement
}
from
"
@dbp-toolkit/provider/src/adapter-lit-element
"
;
const
i18n
=
createI18nInstance
();
export
class
TUGrazLogo
extends
AdapterLitElement
{
export
class
TUGrazLogo
extends
AdapterLitElement
{
constructor
()
{
constructor
()
{
super
();
super
();
this
.
lang
=
i18n
.
language
;
this
.
_i18n
=
createInstance
();
this
.
lang
=
this
.
_i18n
.
language
;
}
}
static
get
properties
()
{
static
get
properties
()
{
...
@@ -23,7 +22,7 @@ export class TUGrazLogo extends AdapterLitElement {
...
@@ -23,7 +22,7 @@ export class TUGrazLogo extends AdapterLitElement {
update
(
changedProperties
)
{
update
(
changedProperties
)
{
changedProperties
.
forEach
((
oldValue
,
propName
)
=>
{
changedProperties
.
forEach
((
oldValue
,
propName
)
=>
{
if
(
propName
===
"
lang
"
)
{
if
(
propName
===
"
lang
"
)
{
i18n
.
changeLanguage
(
this
.
lang
);
this
.
_
i18n
.
changeLanguage
(
this
.
lang
);
}
}
});
});
super
.
update
(
changedProperties
);
super
.
update
(
changedProperties
);
...
@@ -67,6 +66,7 @@ export class TUGrazLogo extends AdapterLitElement {
...
@@ -67,6 +66,7 @@ export class TUGrazLogo extends AdapterLitElement {
}
}
render
()
{
render
()
{
const
i18n
=
this
.
_i18n
;
return
html
`
return
html
`
<a href="https://www.tugraz.at" title="TU Graz Home" target="_blank" rel="noopener">
<a href="https://www.tugraz.at" title="TU Graz Home" target="_blank" rel="noopener">
<div id="claim">
<div id="claim">
...
...
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