Skip to content

Commit

Permalink
translations
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamics committed Dec 13, 2023
1 parent 315d7b6 commit 148f4b8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"viewStashedMembers": "View stashed members",
"networkActions": "Network Actions",
"deleteNetwork": {
"title": "Delete network",
"title": "Delete network {networkName}",
"description": "Are you sure you want to delete this network? This cannot be undone and all members will be deleted from this network",
"yesAction": "Yes, delete it",
"noAction": "No, keep it"
Expand Down
2 changes: 1 addition & 1 deletion src/locales/es/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"viewStashedMembers": "Ver miembros guardados",
"networkActions": "Acciones de red",
"deleteNetwork": {
"title": "Eliminar red",
"title": "Eliminar red {networkName}",
"description": "¿Estás seguro de que quieres eliminar esta red? Esto no se puede deshacer y todos los miembros serán eliminados de esta red",
"yesAction": "Sí, eliminar",
"noAction": "No, conservarlo"
Expand Down
2 changes: 1 addition & 1 deletion src/locales/no/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"viewStashedMembers": "Se stashed medlemmer",
"networkActions": "Nettverksaksjoner",
"deleteNetwork": {
"title": "Slett nettverk",
"title": "Slett nettverk {networkName}",
"description": "Er du sikker på at du vil slette dette nettverket? Dette kan ikke angres og alle medlemmer vil bli slettet fra dette nettverket",
"yesAction": "Ja, slett det",
"noAction": "Nei, behold det"
Expand Down
2 changes: 1 addition & 1 deletion src/locales/zh/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"viewStashedMembers": "查看储存的成员",
"networkActions": "网络操作",
"deleteNetwork": {
"title": "删除网络",
"title": "删除网络 {networkName}",
"description": "你确定要删除这个网络吗?这个操作无法撤销,所有成员将从这个网络中删除",
"yesAction": "是的,删除它",
"noAction": "不,保留它"
Expand Down
12 changes: 7 additions & 5 deletions src/pages/network/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const HeadSection = ({ title }: { title: string }) => (
);

const NetworkById = () => {
const b = useTranslations("commonButtons");
const t = useTranslations("networkById");
const [state, setState] = useState({
viewZombieTable: false,
Expand Down Expand Up @@ -289,16 +290,17 @@ const NetworkById = () => {
</div> */}

<div className="w-5/5 divider mx-auto flex px-4 py-4 text-sm sm:w-4/5 sm:px-10 md:text-base">
Network Actions
{t("networkActions")}
</div>
<div className="w-5/5 mx-auto px-4 py-4 text-sm sm:w-4/5 sm:px-10 md:flex-row md:text-base">
<div className="flex items-end md:justify-end">
<button
onClick={() =>
callModal({
title: `Delete network ${network.name}`,
description:
"Are you sure you want to delete this network? This cannot be undone and all members will be deleted from this network",
title: t.rich("deleteNetwork.title", {
networkName: network.name,
}),
description: t("deleteNetwork.description"),
yesAction: () => {
deleteNetwork(
{ nwid: network.nwid },
Expand All @@ -309,7 +311,7 @@ const NetworkById = () => {
}
className="btn btn-error btn-outline btn-wide"
>
Delete network
{b("deleteNetwork")}
</button>
</div>
</div>
Expand Down

0 comments on commit 148f4b8

Please sign in to comment.