File tree 4 files changed +20
-9
lines changed
4 files changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -364,4 +364,4 @@ footer a:hover {
364
364
font-weight : 400 ;
365
365
margin : 2px 4px 2px 0 ;
366
366
text-transform : capitalize; /* Ensure each word starts with uppercase */
367
- }
367
+ }
Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ function updatePageTranslations() {
30
30
const key = el . getAttribute ( 'data-i18n-placeholder' ) ;
31
31
el . setAttribute ( 'placeholder' , i18next . t ( key ) ) ;
32
32
} ) ;
33
+ // Update href attributes for elements with data-i18n-href
34
+ document . querySelectorAll ( '[data-i18n-href]' ) . forEach ( el => {
35
+ const key = el . getAttribute ( 'data-i18n-href' ) ;
36
+ el . setAttribute ( 'href' , i18next . t ( key ) ) ;
37
+ } ) ;
33
38
// Optionally update the title if needed
34
39
document . querySelectorAll ( 'title[data-i18n]' ) . forEach ( el => {
35
40
const key = el . getAttribute ( 'data-i18n' ) ;
Original file line number Diff line number Diff line change 101
101
"fr" :" Manuel" ,
102
102
"it" :" Manuale"
103
103
},
104
- "navbarContact" :{
105
- "de" :" Kontakt" ,
106
- "en" :" Contact" ,
107
- "fr" :" Contact" ,
108
- "it" :" Contatto"
104
+ "navbarContact" : {
105
+ "en" : " <b>Click here to give us some feedback...</b>" ,
106
+ "de" : " <b>Klicken Sie hier, um uns Ihr Feedback zu geben...</b>" ,
107
+ "fr" : " <b>Cliquez ici pour nous faire part de vos commentaires...</b>" ,
108
+ "it" : " <b>Clicca qui per darci il tuo feedback...</b>"
109
+ },
110
+ "navbarContactHref" : {
111
+ "en" : " mailto:kompetenzzentrumdigitaletransformation@blw.admin.ch?subject=Feedback%20regarding%20the%20DigiAgriFoodCH%20Data%20Catalog" ,
112
+ "de" : " mailto:kompetenzzentrumdigitaletransformation@blw.admin.ch?subject=Feedback%20zu%20dem%20DigiAgriFoodCH%20Datenkatalog" ,
113
+ "fr" : " mailto:kompetenzzentrumdigitaletransformation@blw.admin.ch?subject=Feedback%20concernant%20le%20DigiAgriFoodCH%20Catalog%20de%20Données" ,
114
+ "it" : " mailto:kompetenzzentrumdigitaletransformation@blw.admin.ch?subject=Feedback%20riguardo%20il%20DigiAgriFoodCH%20Catalogo%20Dati"
109
115
},
110
116
"dct:identifier" :{
111
117
"en" :" Identifier" ,
Original file line number Diff line number Diff line change 1
- < nav class ="navbar navbar-expand-lg navbar-light bg-light ">
1
+ < nav class ="navbar navbar-expand-lg navbar-light bg-light fixed-top ">
2
2
< div class ="container ">
3
- < a class ="navbar-brand " id ="home-link " data-i18n ="title "> DigiAgriCat </ a >
3
+ < a class ="navbar-brand " id ="home-link " data-i18n ="title "> DigiAgriFoodCH Data Catalog </ a >
4
4
< div class ="d-flex ms-auto align-items-right ">
5
5
< ul class ="navbar-nav me-3 ">
6
6
<!-- <li class="nav-item"><a class="nav-link" href="about.html" data-i18n="navbarAbout">navbarAbout</a></li> -->
7
7
<!-- <li class="nav-item"><a class="nav-link" href="handbook.html" data-i18n="navbarHandbook">navbarHandbook</a></li> -->
8
- < li class ="nav-item "> < a class ="nav-link " href ="mailto:kompetenzzentrumdigitaletransformation@blw.admin.ch " data-i18n ="navbarContact "> navbarContact </ a > </ li >
8
+ < li class ="nav-item "> < a class ="nav-link " href ="mailto:kompetenzzentrumdigitaletransformation@blw.admin.ch " data-i18n ="navbarContact " data-i18n-href =" navbarContactHref " > Feedback </ a > </ li >
9
9
</ ul >
10
10
< div class ="dropdown me-0 ">
11
11
< button class ="btn unified-control dropdown-toggle " type ="button " id ="language-dropdown-button " data-bs-toggle ="dropdown " aria-expanded ="false ">
You can’t perform that action at this time.
0 commit comments