diff --git a/packages/desktop-client/src/components/accounts/Account.js b/packages/desktop-client/src/components/accounts/Account.js
index e17fd8a..62f4b2b 100644
--- a/packages/desktop-client/src/components/accounts/Account.js
+++ b/packages/desktop-client/src/components/accounts/Account.js
@@ -90,8 +90,11 @@ import {
} from 'loot-core/src/client/data-hooks/schedules';
import { getPayeesById } from 'loot-core/src/client/reducers/queries';
import { useActiveLocation } from '../ActiveLocation';
+import { useTranslation } from 'react-i18next';
function EmptyMessage({ onAdd }) {
+ const { t } = useTranslation();
+
return (
- For Actual to be useful, you need to add an account.
- You can link an account to automatically download transactions, or
- manage it locally yourself.
+ {t('account.needAccountMessage')}
- In the future, you can add accounts from the sidebar.
+ {t('account.addAccountInFutureFromSidebar')}
@@ -129,6 +130,8 @@ function EmptyMessage({ onAdd }) {
}
function ReconcilingMessage({ balanceQuery, targetBalance, onDone }) {
+ const { t } = useTranslation();
+
let cleared = useSheetValue({
name: balanceQuery.name + '-cleared',
query: balanceQuery.query.filter({ cleared: true })
@@ -167,27 +170,22 @@ function ReconcilingMessage({ balanceQuery, targetBalance, onDone }) {
marginRight: 3
}}
/>
- All reconciled!
+ {t('account.allReconciled')}
) : (
- Your cleared balance{' '}
- {format(cleared, 'financial')} needs{' '}
-
- {(targetDiff > 0 ? '+' : '') + format(targetDiff, 'financial')}
- {' '}
- to match
- your bank{"'"}s balance of{' '}
-
- {format(targetBalance, 'financial')}
-
+ {t('account.clearedBalance', {
+ 'cleared':({format(cleared, 'financial')}),
+ 'diff': ({(targetDiff > 0 ? '+' : '') + format(targetDiff, 'financial')}),
+ 'balance':({format(targetBalance, 'financial')})
+ })}
)}
diff --git a/packages/desktop-client/src/locales/en-GB.json b/packages/desktop-client/src/locales/en-GB.json
index a0c148d..d9b1538 100644
--- a/packages/desktop-client/src/locales/en-GB.json
+++ b/packages/desktop-client/src/locales/en-GB.json
@@ -1,7 +1,15 @@
{
+ "account": {
+ "addAccount": "Add account",
+ "addAccountInFutureFromSidebar": "In the future, you can add accounts from the sidebar.",
+ "allReconciled": "All reconciled!",
+ "clearedBalance": "Your cleared balance {cleared} needs {diff} to match your bank's balance of {balance}",
+ "doneReconciling": "Done Reconciling",
+ "needAccountAdvice": "For Actual to be useful, you need to add an account. You can link an account to automatically download transactions, or manage it locally yourself."
+ },
"bootstrap": {
"title": "Bootstrap this Actual instance",
"setPassword": "Set a password for this server instance",
"tryDemo": "Try Demo"
}
-}
+}
\ No newline at end of file
diff --git a/packages/desktop-client/src/locales/es-ES.json b/packages/desktop-client/src/locales/es-ES.json
index 0d3a8e9..f28707a 100644
--- a/packages/desktop-client/src/locales/es-ES.json
+++ b/packages/desktop-client/src/locales/es-ES.json
@@ -1,7 +1,15 @@
{
+ "account": {
+ "addAccount": "Agregar cuenta",
+ "addAccountInFutureFromSidebar": "En el futuro puedes agregar cuentas desde la barra lateral.",
+ "allReconciled": "¡Todo conciliado!",
+ "clearedBalance": "Su saldo compensado {cleared} necesita {diff} para coincidir con el saldo del banco de {balance}",
+ "doneReconciling": "Conciliación finalizada",
+ "needAccountAdvice": "Para que Actual sea útil, debe agregar una cuenta. Puedes vincular la cuenta para descargar transacciones automáticamente o administrala localmente."
+ },
"bootstrap": {
"title": "Bootstrap esta instancia de Actual",
"setPassword": "Establecer una contraseña para esta instancia de servidor",
"tryDemo": "Probar Demo"
}
-}
+}
\ No newline at end of file