mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 15:00:58 +00:00
nav bar text is now translated but uses key as the string if it can't be translated
This commit is contained in:
parent
377acfaa56
commit
90395af6b8
1 changed files with 5 additions and 5 deletions
|
@ -23,7 +23,7 @@ nav.navbar.navbar-default
|
|||
if item.dropdown
|
||||
li.dropdown(class=item.class)
|
||||
a.dropdown-toggle(href)
|
||||
| !{item.text}
|
||||
| !{translate(item.text)}
|
||||
b.caret
|
||||
ul.dropdown-menu
|
||||
each child in item.dropdown
|
||||
|
@ -32,14 +32,14 @@ nav.navbar.navbar-default
|
|||
else
|
||||
li
|
||||
if child.url
|
||||
a(href=child.url, class=child.class) !{child.text}
|
||||
a(href=child.url, class=child.class) !{translate(child.text)}
|
||||
else
|
||||
| !{child.text}
|
||||
| !{translate(child.text)}
|
||||
else
|
||||
li(class=item.class)
|
||||
if item.url
|
||||
a(href=item.url, class=item.class) !{item.text}
|
||||
a(href=item.url, class=item.class) !{translate(item.text)}
|
||||
else
|
||||
| !{item.text}
|
||||
| !{translate(item.text)}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue