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
|
if item.dropdown
|
||||||
li.dropdown(class=item.class)
|
li.dropdown(class=item.class)
|
||||||
a.dropdown-toggle(href)
|
a.dropdown-toggle(href)
|
||||||
| !{item.text}
|
| !{translate(item.text)}
|
||||||
b.caret
|
b.caret
|
||||||
ul.dropdown-menu
|
ul.dropdown-menu
|
||||||
each child in item.dropdown
|
each child in item.dropdown
|
||||||
|
@ -32,14 +32,14 @@ nav.navbar.navbar-default
|
||||||
else
|
else
|
||||||
li
|
li
|
||||||
if child.url
|
if child.url
|
||||||
a(href=child.url, class=child.class) !{child.text}
|
a(href=child.url, class=child.class) !{translate(child.text)}
|
||||||
else
|
else
|
||||||
| !{child.text}
|
| !{translate(child.text)}
|
||||||
else
|
else
|
||||||
li(class=item.class)
|
li(class=item.class)
|
||||||
if item.url
|
if item.url
|
||||||
a(href=item.url, class=item.class) !{item.text}
|
a(href=item.url, class=item.class) !{translate(item.text)}
|
||||||
else
|
else
|
||||||
| !{item.text}
|
| !{translate(item.text)}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue