Skip to content

Commit

Permalink
I18n for new strings
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman authored and TonyGiorgio committed Mar 27, 2024
1 parent 8c3572d commit 71e53bf
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
4 changes: 3 additions & 1 deletion public/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,9 @@
"description": "Mutiny has experimental support for the Fedimint protocol. Store funds in a federation at your own risk!",
"learn_more": "Learn more about Fedimint.",
"discover": "Discover Federations",
"manual": "Invite Code"
"manual": "Invite Code",
"created_at": "Created At",
"recommended_by": "Recommended By"
},
"gift": {
"give_sats_link": "Give sats as a gift",
Expand Down
4 changes: 3 additions & 1 deletion public/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,9 @@
"expires": "Expira",
"federation_id": "ID federación",
"description": "Mutiny tiene soporte experimental para el protocolo Fedimint. ¡Almacene fondos en una federación bajo su propio riesgo!",
"learn_more": "Aprenda más sobre Fedimint."
"learn_more": "Aprenda más sobre Fedimint.",
"created_at": "Creado En",
"recommended_by": "Recomendado por"
},
"gift": {
"give_sats_link": "Dar sats de regalo",
Expand Down
14 changes: 10 additions & 4 deletions src/routes/settings/ManageFederations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,11 @@ function AddFederationForm(props: { refetch?: RefetchType }) {
<MiniStringShower text={fed.id} />
</KeyValue>
<Show when={fed.created_at}>
<KeyValue key="created at">
{/* todo i18n */}
<KeyValue
key={i18n.t(
"settings.manage_federations.created_at"
)}
>
<time>
{timeAgo(fed.created_at)}
</time>
Expand All @@ -244,8 +247,11 @@ function AddFederationForm(props: { refetch?: RefetchType }) {
fed.recommendations.length > 0
}
>
<KeyValue key={"recommended by"}>
{/* todo i18n */}
<KeyValue
key={i18n.t(
"settings.manage_federations.recommended_by"
)}
>
<div class="flex items-center gap-2 overflow-scroll md:gap-4">
<For
each={
Expand Down

0 comments on commit 71e53bf

Please sign in to comment.