-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #335 from greymass/kurt-resources-locale
Localized Resources pages
- Loading branch information
Showing
5 changed files
with
53 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
import type { LayoutLoad } from './$types'; | ||
import * as m from '$lib/paraglide/messages'; | ||
|
||
export const load: LayoutLoad = async ({ parent }) => { | ||
const { network } = await parent(); | ||
const title = m.resources_network_title({ | ||
network: network.chain.name | ||
}); | ||
return { | ||
title: `${network.chain.name} Network Resources`, | ||
subtitle: `Manage CPU, NET, and RAM resources on the ${network.chain.name} Network.`, | ||
title, | ||
subtitle: m.resources_network_subtitle({ | ||
network: network.chain.name | ||
}), | ||
pageMetaTags: { | ||
title: `${network.chain.name} Network Resources`, | ||
description: `An overview of the multiple network resources usable on the ${network.chain.name} network providing access to manage resources using an compatible wallet.` | ||
title, | ||
description: m.resources_metadata_overview_description({ | ||
network: network.chain.name | ||
}) | ||
} | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters