Skip to content

Commit

Permalink
Add website translations (#96)
Browse files Browse the repository at this point in the history
* Initial i18n commit

* Fix table

* Clean up code

* Merge SMS and Phone Calls

* Add apple touch icon

* Improve i18n string replacement

* Load regions on dropdown toggle

* Clean up regions.js code

* Add dialog translation & french language pack

* Rename 'legal' & add Spanish translations

* Fix search placeholder

* Only load required languages

* Rework regions dropdown

* Replace note popover with custom popover

* Replace popper.js with floating-ui

* Add u2f & totp translations

* Make custom-* icon larger

---------

Signed-off-by: Carl <Carlgo11@users.noreply.github.com>
  • Loading branch information
Carlgo11 authored Jan 17, 2025
1 parent 2806918 commit 92d6904
Show file tree
Hide file tree
Showing 17 changed files with 935 additions and 294 deletions.
72 changes: 42 additions & 30 deletions assets/css/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
padding-left: 33.5833px;
margin: auto;
}

.icon {
padding-left: 0;
margin: 0;
Expand Down Expand Up @@ -54,39 +55,62 @@
margin-right: 0 !important;
}

.nav-item {
margin: 0 .1em;

}

}
#regionDropdown {
color: var(--text-color);
padding: 0;
border: none;
background: none;
height: 2rem;

.fi-globe:before {
font-family: 'Material Symbols Outlined';
content: '\e894';
font-size: 1.3em;
}
}

#regionDropdown {
#regionsDropdown {
position: absolute;
margin: 12px 0 0;
padding: 1em;
background: var(--secondary-background);
inset: auto;
right: 0;
display: grid;
border: none;
grid-template-columns: 1fr 1fr;
grid-row-gap: .3em;
grid-column-gap: 1em;
z-index: 2;

a {
text-decoration: none;
color: var(--text-color);
}
padding: .5em;

.dropdown-menu {
right: 0;
left: auto;
background: var(--secondary-background);
column-count: 2;
z-index: 1100;
@media screen and (max-width: 445px) {
left: 0 !important;
&:hover {
background: var(--text-color);
color: var(--background)
}
}

.dropdown-item {
color: var(--bs-nav-link-color);
span {
margin-right: 0.3em;
// Square flags should still be centered (like 4x3 ones)
&.fis {
width: 1.33333333em !important;
}
}
}
}

@media screen and (max-width: 992px) {
#regionsDropdown {
left: 0;
right: 0;
}

.back-to-top-link {
$back-to-top-size: 3rem;

Expand All @@ -108,7 +132,7 @@
color: var(--primary);
}

&-moved{
&-moved {
bottom: -$back-to-top-size;
}
}
Expand All @@ -119,15 +143,3 @@
display: none;
}
}

// Square flags should still be centered (like 4x3 ones)
.fis {
width: 1.33333333em !important;
}

.dropdown-item {
// Add space between flag and name
.fi {
margin-right: .3em;
}
}
Loading

0 comments on commit 92d6904

Please sign in to comment.