Skip to content

Commit a06adda

Browse files
committed
docs: update translation for nav links
1 parent 1aa326a commit a06adda

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ def setup(app):
9797
sitemap_filename = "sitemap.xml"
9898
sitemap_locales = [None]
9999

100+
if language == "zh":
101+
nav_links = html_theme_options["nav_links"]
102+
nav_links[0]["title"] = "项目"
103+
nav_links[1]["title"] = "赞助我们"
104+
nav_links[1]["url"] = "/zh/sponsors"
105+
100106
html_baseurl = f"https://jose.authlib.org/{language}/"
101107
html_context["languages"] = [
102108
("English", "https://jose.authlib.org/en/%s/", "en"),

0 commit comments

Comments
 (0)