mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-12-06 17:27:57 +00:00
Merge pull request #2427 from XRPLF/fixes-28feb24
This commit is contained in:
@@ -2,7 +2,14 @@ theme.navbar.about: 概要
|
||||
theme.navbar.docs: ドキュメント
|
||||
theme.navbar.resources: リソース
|
||||
theme.navbar.community: コミュニティ
|
||||
theme.footer.about: 概要
|
||||
theme.footer.docs: ドキュメント
|
||||
theme.footer.resources: リソース
|
||||
theme.footer.community: コミュニティ
|
||||
sidebar.docs: ドキュメント
|
||||
sidebar.docs.tutorials: チュートリアル
|
||||
sidebar.docs.references: リファレンス
|
||||
sidebars.resources: リソース
|
||||
sidebar.resources.codesamples: コードサンプル
|
||||
Open Source.: オープンソース
|
||||
Jump to top of page: ページの先頭へ
|
||||
|
||||
@@ -34,7 +34,7 @@ export function Navbar(props) {
|
||||
|
||||
const navItems = menu.map((item, index) => {
|
||||
if (item.type === 'group') {
|
||||
return <NavDropdown key={index} label={item.label} items={item.items} pathPrefix={pathPrefix} />;
|
||||
return <NavDropdown key={index} label={item.label} labelTranslationKey={item.labelTranslationKey} items={item.items} pathPrefix={pathPrefix} />;
|
||||
} else {
|
||||
return (
|
||||
<NavItem key={index}>
|
||||
@@ -206,7 +206,8 @@ export function TopNavCollapsible(props) {
|
||||
}
|
||||
|
||||
export function NavDropdown(props) {
|
||||
const { label, items, pathPrefix } = props;
|
||||
const { label, items, pathPrefix, labelTranslationKey } = props;
|
||||
const { translate } = useTranslate();
|
||||
|
||||
const dropdownGroups = items.map((item, index) => {
|
||||
if (item.items) {
|
||||
@@ -280,7 +281,7 @@ export function NavDropdown(props) {
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false"
|
||||
>
|
||||
<span>{label}</span>
|
||||
<span>{translate(labelTranslationKey, label)}</span>
|
||||
</a>
|
||||
<div className="dropdown-menu" aria-labelledby={toggler_id} id={dd_id}>
|
||||
{dropdownGroups}
|
||||
|
||||
@@ -584,13 +584,13 @@ const CommunityPage: React.FC = () => {
|
||||
<a
|
||||
className="com-card-link"
|
||||
target="_blank"
|
||||
href="/concepts/networks-and-servers/"
|
||||
href="/docs/concepts/networks-and-servers/"
|
||||
>
|
||||
{translate("Networks and Servers")}
|
||||
</a>
|
||||
<a
|
||||
className="com-card-link"
|
||||
href="/infrastructure/configuration/server-modes/run-rippled-as-a-validator/"
|
||||
href="/docs/infrastructure/configuration/server-modes/run-rippled-as-a-validator/"
|
||||
target="_blank"
|
||||
>
|
||||
{translate("Join UNL")}
|
||||
@@ -598,14 +598,14 @@ const CommunityPage: React.FC = () => {
|
||||
<a
|
||||
className="com-card-link"
|
||||
target="_blank"
|
||||
href="/infrastructure/installation/"
|
||||
href="/docs/infrastructure/installation/"
|
||||
>
|
||||
{translate("Install & Configure")}
|
||||
</a>
|
||||
<a
|
||||
className="com-card-link"
|
||||
target="_blank"
|
||||
href="/infrastructure/troubleshooting/"
|
||||
href="/docs/infrastructure/troubleshooting/"
|
||||
>
|
||||
{translate("Troubleshooting")}
|
||||
</a>
|
||||
|
||||
@@ -62,6 +62,7 @@ theme:
|
||||
copyrightText: © 2024 XRP Ledger. Open Source.
|
||||
items:
|
||||
- group: About
|
||||
groupTranslationKey: theme.footer.about
|
||||
items:
|
||||
- page: about/index.page.tsx
|
||||
- label: Use Cases & Projects
|
||||
@@ -74,6 +75,7 @@ theme:
|
||||
- page: about/faq.md
|
||||
- page: about/privacy-policy.md
|
||||
- group: Docs
|
||||
groupTranslationKey: theme.footer.docs
|
||||
items:
|
||||
- label: XRPL Documentation
|
||||
page: docs/index.page.tsx
|
||||
@@ -84,6 +86,7 @@ theme:
|
||||
- page: docs/references/index.md
|
||||
- page: docs/infrastructure/index.md
|
||||
- group: Resources
|
||||
groupTranslationKey: theme.footer.resources
|
||||
items:
|
||||
- page: resources/code-samples.page.tsx
|
||||
- page: resources/dev-tools/index.page.tsx
|
||||
@@ -100,6 +103,7 @@ theme:
|
||||
- page: resources/contribute-code/index.md
|
||||
- page: resources/contribute-documentation/index.md
|
||||
- group: Community
|
||||
groupTranslationKey: theme.footer.community
|
||||
items:
|
||||
- page: community/index.page.tsx
|
||||
- page: community/events.page.tsx
|
||||
|
||||
@@ -602,6 +602,7 @@
|
||||
- page: docs/infrastructure/troubleshooting/server-wont-start.md
|
||||
- page: docs/infrastructure/troubleshooting/fix-sqlite-tx-db-page-size-issue.md
|
||||
- page: resources/index.md
|
||||
labelTranslationKey: sidebars.resources
|
||||
expanded: false
|
||||
items:
|
||||
- label: Code Samples
|
||||
|
||||
Reference in New Issue
Block a user