From a058f4acf33eb49654c77dad046f0088ca3f60db Mon Sep 17 00:00:00 2001 From: Lokowitz Date: Mon, 5 May 2025 19:24:14 +0000 Subject: [PATCH] complete sites i18n --- messages/en-US.json | 22 ++++- .../settings/resources/create/page.tsx | 2 +- .../[orgId]/settings/sites/create/page.tsx | 85 ++++++++----------- 3 files changed, 58 insertions(+), 51 deletions(-) diff --git a/messages/en-US.json b/messages/en-US.json index fd80fb83..3d500de1 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -2,7 +2,6 @@ "setupCreate": "Create your organization, site, and resources", "setupNewOrg": "New Organization", "setupCreateOrg": "Create Organization", - "setupCreateSite": "Create Site", "setupCreateResources": "Create Resources", "setupOrgName": "Organization Name", "orgDisplayName": "This is the display name of your organization.", @@ -41,6 +40,7 @@ "dataIn": "Data In", "dataOut": "Data Out", "connectionType": "Connection Type", + "tunnelType": "Tunnel Type", "local": "Local", "edit": "Edit", "siteConfirmDelete": "Confirm Delete Site", @@ -51,6 +51,7 @@ "siteManageSites": "Manage Sites", "siteDescription": "Allow connectivity to your network through secure tunnels", "siteCreate": "Create Site", + "siteCreateDescription2": "Follow the steps below to create and connect a new site", "siteCreateDescription": "Create a new site to start connecting your resources", "close": "Close", "siteNameMin": "Name must be at least 2 characters.", @@ -72,6 +73,12 @@ "siteConfirmCopy": "I have copied the config", "searchSites": "Search sites...", "siteAdd": "Add Site", + "siteInstallNewt": "Install Newt", + "siteInstallNewtDescription": "Get Newt running on your system", + "WgConfiguration": "WireGuard Configuration", + "WgConfigurationDescription": "Use the following configuration to connect to your network", + "operatingSystem": "Operating System", + "commands": "Commands", "recommended": "Recommended", "siteNewtDescription": "For the best user experience, use Newt. It uses WireGuard under the hood and allows you to address your private resources by their LAN address on your private network from within the Pangolin dashboard.", "siteRunsInDocker": "Runs in Docker", @@ -84,6 +91,17 @@ "siteGeneralDescription": "Configure the general settings for this site", "siteSettingDescription": "Configure the settings on your site", "siteSetting": "{siteName} Settings", + "siteNewtTunnel": "Newt Tunnel (Recommended)", + "siteNewtTunnelDescription": "Easiest way to create an entrypoint into your network. No extra setup.", + "siteWg": "Basic WireGuard", + "siteWgDescription": "Use any WireGuard client to establish a tunnel. Manual NAT setup required.", + "siteLocalDescription": "Local resources only. No tunneling.", + "siteSeeAll": "See All Sites", + "siteTunnelDescription": "Determine how you want to connect to your site", + "siteNewtCredentials": "Newt Credentials", + "siteNewtCredentialsDescription": "This is how Newt will authenticate with the server", + "siteCredentialsSave": "Save Your Credentials", + "siteCredentialsSaveDescription": "You will only be able to see this once. Make sure to copy it to a secure place.", "siteInfo": "Site Information", "status": "Status", "shareTitle": "Manage Share Links", @@ -164,7 +182,7 @@ "protocolSelect": "Select a protocol", "resourcePortNumber": "Port Number", "resourcePortNumberDescription": "The external port number to proxy requests.", - "cancle": "Cancle", + "cancel": "Cancel", "resourceConfig": "Configuration Snippets", "resourceConfigDescription": "Copy and paste these configuration snippets to set up your TCP/UDP resource", "resourceAddEntrypoints": "Traefik: Add Entrypoints", diff --git a/src/app/[orgId]/settings/resources/create/page.tsx b/src/app/[orgId]/settings/resources/create/page.tsx index 1b702e89..22ebf1ff 100644 --- a/src/app/[orgId]/settings/resources/create/page.tsx +++ b/src/app/[orgId]/settings/resources/create/page.tsx @@ -791,7 +791,7 @@ export default function Page() { router.push(`/${orgId}/settings/resources`) } > - {t('cancle')} + {t('cancel')} @@ -539,7 +539,7 @@ WantedBy=default.target` - Site Information + {t('siteInfo')} @@ -555,7 +555,7 @@ WantedBy=default.target` render={({ field }) => ( - Name + {t('name')} - This is the display - name for the site. + {t('siteNameDescription')} )} @@ -580,11 +579,10 @@ WantedBy=default.target` - Tunnel Type + {t('tunnelType')} - Determine how you want to connect to your - site + {t('siteTunnelDescription')} @@ -604,11 +602,10 @@ WantedBy=default.target` - Newt Credentials + {t('siteNewtCredentials')} - This is how Newt will authenticate - with the server + {t('siteNewtCredentialsDescription')} @@ -650,12 +647,10 @@ WantedBy=default.target` - Save Your Credentials + {t('siteCredentialsSave')} - You will only be able to see - this once. Make sure to copy it - to a secure place. + {t('siteCredentialsSaveDescription')} @@ -690,9 +685,7 @@ WantedBy=default.target` htmlFor="terms" className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" > - I have - copied the - config + {t('siteConfirmCopy')} @@ -707,16 +700,16 @@ WantedBy=default.target` - Install Newt + {t('siteInstallNewt')} - Get Newt running on your system + {t('siteInstallNewtDescription')}

- Operating System + {t('operatingSystem')}

{platforms.map((os) => ( @@ -772,7 +765,7 @@ WantedBy=default.target`

- Commands + {t('commands')}

- WireGuard Configuration + {t('WgConfiguration')} - Use the following configuration to - connect to your network + {t('WgConfigurationDescription')} @@ -818,12 +810,10 @@ WantedBy=default.target` - Save Your Credentials + {t('siteCredentialsSave')} - You will only be able to see this - once. Make sure to copy it to a - secure place. + {t('siteCredentialsSaveDescription')} @@ -858,8 +848,7 @@ WantedBy=default.target` htmlFor="terms" className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" > - I have copied - the config + {t('siteConfirmCopy')}
@@ -881,7 +870,7 @@ WantedBy=default.target` router.push(`/${orgId}/settings/sites`); }} > - Cancel + {t('cancel')}