From a11026972b59bfc94884b96ea2de8f759cb30dcd Mon Sep 17 00:00:00 2001 From: Linus Miller Date: Tue, 23 Dec 2025 23:45:27 +0100 Subject: [PATCH] translate to swedish --- client/public/components/accounts_page.tsx | 8 +++--- client/public/components/balances_page.tsx | 8 +++--- client/public/components/entries_page.tsx | 16 +++++------ client/public/components/entry_page.tsx | 22 +++++++-------- client/public/components/invoice_page.tsx | 9 ++---- .../components/invoices_by_supplier_page.tsx | 14 +++++----- client/public/components/invoices_page.tsx | 4 +-- client/public/components/object.tsx | 8 +++--- client/public/components/objects_page.tsx | 4 +-- client/public/components/results_page.tsx | 8 +++--- client/public/components/start_page.tsx | 4 +-- .../public/components/transactions_page.tsx | 20 ++++++------- client/public/routes.ts | 28 +++++++++---------- server/routes/api/invoices.ts | 2 +- 14 files changed, 75 insertions(+), 80 deletions(-) diff --git a/client/public/components/accounts_page.tsx b/client/public/components/accounts_page.tsx index 43ebad4..b73105f 100644 --- a/client/public/components/accounts_page.tsx +++ b/client/public/components/accounts_page.tsx @@ -11,14 +11,14 @@ const AccountsPage: FunctionComponent = () => { return (
- : Accounts + : Konton -

Accounts

+

Konton

- - + + {accounts.map((account) => ( diff --git a/client/public/components/balances_page.tsx b/client/public/components/balances_page.tsx index fdb4276..60050cf 100644 --- a/client/public/components/balances_page.tsx +++ b/client/public/components/balances_page.tsx @@ -20,16 +20,16 @@ const BalancesPage: FunctionComponent = () => { return (
- : Balances + : Balanser -

Balances

+

Balanser

{years.length && balances.length && (
NumberDescriptionNummerBeskrivning
- - + + {years.map((year) => ( ))} diff --git a/client/public/components/entries_page.tsx b/client/public/components/entries_page.tsx index 42d8e8e..1e01b22 100644 --- a/client/public/components/entries_page.tsx +++ b/client/public/components/entries_page.tsx @@ -43,9 +43,9 @@ const EntriesPage: FunctionComponent = () => { return financialYears.length && journals.length ? (
- : Entries + : Verifikat -

Entries

+

Verifikat

- +

@@ -70,11 +70,11 @@ const EntriesPage: FunctionComponent = () => {

- - - - - + + + + + diff --git a/client/public/components/entry_page.tsx b/client/public/components/entry_page.tsx index d978988..4d14a9f 100644 --- a/client/public/components/entry_page.tsx +++ b/client/public/components/entry_page.tsx @@ -17,11 +17,11 @@ const EntryPage: FunctionComponent = () => { {' '} - : Entry {entry.journal} {entry.number}{' '} + : Verifikat {entry.journal} {entry.number}{' '}

- Entry {entry.journal} {entry.number} + Verifikat {entry.journal} {entry.number}

AccountDescriptionKontoBeskrivning{year}
IDNumberEntry DateTransaction DateAmountDescriptionNummerBokföringsdatumTransaktionsdatumBeloppBeskrivning
@@ -29,11 +29,11 @@ const EntryPage: FunctionComponent = () => { - - - - - + + + + + @@ -51,14 +51,14 @@ const EntryPage: FunctionComponent = () => {
ID JournalNumberEntry DateTransaction DateAmountDescriptionNummerBokföringsdatumTransaktionsdatumBeloppBeskrivning
-

Transactions

+

Transaktioner

- + - - + + diff --git a/client/public/components/invoice_page.tsx b/client/public/components/invoice_page.tsx index 9f61063..d52aad1 100644 --- a/client/public/components/invoice_page.tsx +++ b/client/public/components/invoice_page.tsx @@ -7,10 +7,11 @@ import { formatNumber } from '../utils/format_number.ts' import Head from './head.ts' const InvoicePage: FunctionComponent = () => { + const route = useRoute() + const invoice = usePromise(() => rek(`/api/invoices/${route.params.id}`), ) - const route = useRoute() return (
@@ -20,12 +21,6 @@ const InvoicePage: FunctionComponent = () => {

Invoice

AccountKonto DebitCreditDescriptionKreditBeskrivning
- - - - - - {invoice && ( diff --git a/client/public/components/invoices_by_supplier_page.tsx b/client/public/components/invoices_by_supplier_page.tsx index 9738043..c29dce8 100644 --- a/client/public/components/invoices_by_supplier_page.tsx +++ b/client/public/components/invoices_by_supplier_page.tsx @@ -28,10 +28,10 @@ const InvoicesPage: FunctionComponent = () => { return (
- : Invoices : {supplier?.name} + : Fakturor : {supplier?.name} -

Invoices for {supplier?.name}

+

Fakturor från {supplier?.name}

Total: {formatPrice(totalAmount)} @@ -43,11 +43,11 @@ const InvoicesPage: FunctionComponent = () => {

- - - - - + + + + + diff --git a/client/public/components/invoices_page.tsx b/client/public/components/invoices_page.tsx index 80d6112..4a4055f 100644 --- a/client/public/components/invoices_page.tsx +++ b/client/public/components/invoices_page.tsx @@ -11,10 +11,10 @@ const InvoicesPage: FunctionComponent = () => { return (
- : Invoices + : Fakturor -

Invoices

+

Fakturor

    {suppliers?.map((supplier) => (
  • diff --git a/client/public/components/object.tsx b/client/public/components/object.tsx index 61ca5e8..957ea15 100644 --- a/client/public/components/object.tsx +++ b/client/public/components/object.tsx @@ -20,10 +20,10 @@ const ObjectComponent: FunctionComponent = ({ objectId })
whatwho
ID Fisken PHMInvoice DateDue DateNumberAmountFilesFakturadatumFörfallodagNummerBeloppFiler
- - - - + + + + diff --git a/client/public/components/objects_page.tsx b/client/public/components/objects_page.tsx index 0c88b73..f33868d 100644 --- a/client/public/components/objects_page.tsx +++ b/client/public/components/objects_page.tsx @@ -15,10 +15,10 @@ const ObjectsPage: FunctionComponent = () => { return (
- : Objects + : Objekt -

Objects

+

Objekt

{objects.map((object) => (
EntryDateAccountAmountVerifikatDatumKontoBelopp
- - + + {years.map((year) => ( ))} diff --git a/client/public/components/start_page.tsx b/client/public/components/start_page.tsx index d53fbab..fd78d63 100644 --- a/client/public/components/start_page.tsx +++ b/client/public/components/start_page.tsx @@ -2,9 +2,9 @@ import { h, type FunctionComponent } from 'preact' const StartPage: FunctionComponent = () => (
-

Fart Page

+

Start

-

Haha oh my, fart page.

+

Kommer vettigare info här snart.

) diff --git a/client/public/components/transactions_page.tsx b/client/public/components/transactions_page.tsx index 3f2de43..9ab8ee3 100644 --- a/client/public/components/transactions_page.tsx +++ b/client/public/components/transactions_page.tsx @@ -41,7 +41,7 @@ const TransactionsPage: FunctionComponent = () => { return (
- : Transactions + : Transaktioner
@@ -51,21 +51,21 @@ const TransactionsPage: FunctionComponent = () => { ))} - + -

Transactions

+

Transaktioner

AccountDescriptionKontoBeskrivning{year}
- - + + - - - - - + + + + + {transactions.map((transaction) => ( diff --git a/client/public/routes.ts b/client/public/routes.ts index 1549ddd..e0f27a5 100644 --- a/client/public/routes.ts +++ b/client/public/routes.ts @@ -20,64 +20,64 @@ export default [ { path: '/accounts', name: 'accounts', - title: 'Accounts', + title: 'Konton', component: Accounts, }, { path: '/entries', name: 'entries', - title: 'Entries', + title: 'Verifikat', component: Entries, }, { path: '/entries/:id', - name: 'entry', - title: 'Entry', + name: 'entries-id', + title: 'Verifikat :id', component: Entry, nav: false, }, { path: '/objects', name: 'objects', - title: 'Objects', + title: 'Objekt', component: Objects, }, { - path: '/invoices', + path: 'invoices', name: 'invoices', - title: 'Invoices', + title: 'Fakturor', component: Invoices, }, { path: '/invoices/:id', - name: 'invoice', - title: 'Invoice', + name: 'invoices-id', + title: 'Faktura :id', component: Invoice, nav: false, }, { path: '/invoices/by-supplier/:supplier', - name: 'invoices', - title: 'Invoices', + name: 'invoices-by-supplier', + title: 'Fakturor från leverantör', component: InvoicesBySupplier, nav: false, }, { path: '/balances', name: 'balances', - title: 'Balances', + title: 'Balanser', component: Balances, }, { path: '/results', name: 'results', - title: 'Results', + title: 'Resultat', component: Results, }, { path: '/transactions', name: 'transactions', - title: 'Transactions', + title: 'Transaktioner', component: Transactions, }, ] diff --git a/server/routes/api/invoices.ts b/server/routes/api/invoices.ts index e37a459..a04acb6 100644 --- a/server/routes/api/invoices.ts +++ b/server/routes/api/invoices.ts @@ -98,7 +98,7 @@ const invoiceRoutes: FastifyPluginCallbackZod = (fastify, _, done) => { ), ]) .where('i.id', '=', request.params.id) - .execute() + .executeTakeFirst() }, })
DateAccountDatumKonto DebitCreditDescriptionEntryEntry DescriptionInvoiceKreditBeskrivningVerifikatVerifikat beskrivningFaktura