Skip to content

Commit

Permalink
Merge pull request #1936 from getAlby/fix/onboarding-copy
Browse files Browse the repository at this point in the history
fix: remove obsolete translation
  • Loading branch information
bumi committed Jan 3, 2023
2 parents 103ffbb + 90db0be commit 455caa6
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 22 deletions.
10 changes: 1 addition & 9 deletions src/app/router/Welcome/Welcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Intro from "@screens/Onboard/Intro";
import SetPassword from "@screens/Onboard/SetPassword";
import TestConnection from "@screens/Onboard/TestConnection";
import { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { HashRouter as Router, useLocation, useRoutes } from "react-router-dom";
import { ToastContainer } from "react-toastify";
import Container from "~/app/components/Container";
Expand Down Expand Up @@ -45,9 +44,7 @@ function getRoutes(
element: (
<ChooseConnectorPath
title={i18n.t("translation:choose_path.title")}
description={i18n.t(
"translation:welcome.choose_path.description"
)}
description={i18n.t("translation:choose_path.description")}
/>
),
},
Expand Down Expand Up @@ -110,7 +107,6 @@ function WelcomeRouter() {

function App() {
const [steps, setSteps] = useState(initialSteps);
const { t } = useTranslation();
const location = useLocation();
const routesElement = useRoutes(routes);

Expand Down Expand Up @@ -155,10 +151,6 @@ function App() {
return (
<div>
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="text-center font-serif font-medium text-2xl pt-7 pb-3 dark:text-white">
<p>{t("welcome.title")}</p>
</div>

<Steps steps={steps} />
</div>
<Container maxWidth="xl">{routesElement}</Container>
Expand Down
1 change: 0 additions & 1 deletion src/i18n/locales/de/translation.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"translation": {
"welcome": {
"title": "Die Macht von ⚡ bitcoin ⚡ in deinem Browser",
"nav": {
"welcome": "Willkommen",
"password": "Dein Passwort",
Expand Down
4 changes: 0 additions & 4 deletions src/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"translation": {
"welcome": {
"title": "The power of⚡ bitcoin ⚡in your browser",
"nav": {
"welcome": "Welcome",
"password": "Your Password",
Expand Down Expand Up @@ -44,9 +43,6 @@
"mismatched_password": "Passwords don't match."
}
},
"choose_path": {
"description": "Start by creating a new Alby Wallet, logging in to an existing one or connecting lightning wallet. You will be able to connect and manage more wallets later as well!"
},
"test_connection": {
"ready": "Awesome, you’re ready to go!",
"tutorial": "Now you’ve connected your wallet would you like to go through a tutorial?",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/locales/eo/translation.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"translation": {
"welcome": {
"title": "La potenco de⚡ Bitmono ⚡en via TTT-legilo",
"nav": {
"welcome": "Bonvenon",
"password": "Via pasvorto",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/locales/es/translation.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"translation": {
"welcome": {
"title": "El poder de ⚡ bitcoin ⚡ en tu navegador",
"nav": {
"welcome": "Bienvenido",
"password": "Su Contraseña",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/locales/fi/translation.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"translation": {
"welcome": {
"title": "⚡Bitcoinin⚡ voima selaimessasi",
"nav": {
"welcome": "Tervetuloa",
"password": "Salasanasi",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/locales/it/translation.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"translation": {
"welcome": {
"title": "Il potere di ⚡ bitcoin ⚡ nel tuo browser",
"nav": {
"welcome": "Benvenuto",
"password": "La tua Password",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/locales/nl/translation.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"translation": {
"welcome": {
"title": "De Power van ⚡ Bitcoin ⚡ in jouw Browser",
"nav": {
"welcome": "Welkom",
"password": "Jouw Wachtwoord",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/locales/sv/translation.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"translation": {
"welcome": {
"title": "⚡ Bitcoins ⚡ kraft direkt i din webbläsare",
"nav": {
"welcome": "Välkommen",
"password": "Ditt lösenord",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/locales/tl/translation.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"translation": {
"welcome": {
"title": "Ang lakas ng ⚡ bitcoin ⚡ sa iyong browser",
"nav": {
"welcome": "Kamusta",
"password": "",
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/001-createWallets.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const commonCreateWalletUserCreate = async (

await findByText(
$document,
"Start by creating a new Alby Wallet, logging in to an existing one or connecting lightning wallet. You will be able to connect and manage more wallets later as well!"
"To start using Alby to make online payments, connect your lightning wallet to the extension."
);

if (options.connectToLightningWallet) {
Expand Down

0 comments on commit 455caa6

Please sign in to comment.