-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Open
Labels
Description
Page
solidity/docs/_static/js/constants.js
Lines 28 to 35 in 64118f2
| const NAV_LINKS = [ | |
| { name: "Blog", href: BLOG_URL }, | |
| { name: "Documentation", href: DOCS_URL }, | |
| { name: "Use cases", href: USE_CASES_PATH }, | |
| { name: "Contribute", href: CONTRIBUTE_PATH }, | |
| { name: "About", href: ABOUT_PATH }, | |
| { name: "Forum", href: FORUM_URL }, | |
| ]; |
Abstract
Currently, the strings in the navigation bar at the top of the 0.8 documentation is written inside the constants.js file. However, those strings cannot be extracted by Sphinx's Internationalization with Gettext feature. Therefore, one of the solutions is to move those strings to the Jinja templates (e.g., layout.html) and wrap them with {{ _('xxx') }} or {% trans %}xxx{% endtrans %}.
Pull request
Reactions are currently unavailable