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
bb5ffef3
Commit
bb5ffef3
authored
2 years ago
by
Kocher, Manuel
Browse files
Options
Downloads
Patches
Plain Diff
Fix linter issues introduced in the last commit
parent
4e3c5c04
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#176865
passed
2 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
packages/common/i18next.js
+1
-1
1 addition, 1 deletion
packages/common/i18next.js
packages/common/src/i18n.js
+1
-1
1 addition, 1 deletion
packages/common/src/i18n.js
packages/common/src/translation.js
+1
-14
1 addition, 14 deletions
packages/common/src/translation.js
with
3 additions
and
16 deletions
packages/common/i18next.js
+
1
−
1
View file @
bb5ffef3
...
...
@@ -141,7 +141,7 @@ async function fetchOverridesByLanguage(overrides, lng) {
*
* @param {i18next.i18n} i18n - The i18next instance
* @param {HTMLElement} element - The element at which the overrides are targeted
* @param {
S
tring} overridesFile - Path to the translation file containing the overrides
* @param {
s
tring} overridesFile - Path to the translation file containing the overrides
*/
export
async
function
setOverridesByFile
(
i18n
,
element
,
overridesFile
)
{
// We add a special namespace which gets used with priority and falls back
...
...
This diff is collapsed.
Click to expand it.
packages/common/src/i18n.js
+
1
−
1
View file @
bb5ffef3
...
...
@@ -9,7 +9,7 @@ export function createInstance() {
export
async
function
createInstanceAsync
(
langFile
,
namespace
)
{
if
(
namespace
==
undefined
)
namespace
=
'
translation
'
namespace
=
'
translation
'
;
// check if a path to language files is given
if
(
langFile
)
{
...
...
This diff is collapsed.
Click to expand it.
packages/common/src/translation.js
+
1
−
14
View file @
bb5ffef3
...
...
@@ -4,19 +4,6 @@ import {unsafeHTML} from 'lit/directives/unsafe-html.js';
import
DBPLitElement
from
'
../dbp-lit-element
'
;
import
{
createInstanceAsync
,
setOverridesByFile
}
from
'
./i18n.js
'
;
let
OVERRIDE
=
{
'
de
'
:
{
'
dbp-translation
'
:
{
'
toolkit-showcase
'
:
'
testText
'
}
},
'
en
'
:
{
'
dbp-translation
'
:
{
'
toolkit-showcase
'
:
'
testText2
'
}
}
}
export
class
Translation
extends
DBPLitElement
{
constructor
()
{
super
();
...
...
@@ -68,7 +55,7 @@ export class Translation extends DBPLitElement {
local
.
_i18n
=
response
;
local
.
requestUpdate
();
});
})
})
;
}
}
...
...
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