From 6d9434adfd6f91ade9f4d10553ec47803e4f95e7 Mon Sep 17 00:00:00 2001 From: ai-bot Date: Sat, 14 Nov 2026 16:16:52 +0000 Subject: [PATCH] Add the Nynorsk labels for the transaction types --- static/app.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/static/app.js b/static/app.js index 0256eee..d387745 100644 --- a/static/app.js +++ b/static/app.js @@ -96,6 +96,23 @@ return Number(whole) * 100000000 + Number(fraction); } + /* The stored type names and what the owner sees, docs/spec.md section 7.3. */ + var TYPE_LABELS = { + trade: "Handel", + income: "Inntekt", + spend: "Forbruk", + loss: "Tap", + transfer_out: "Overføring ut", + transfer_in: "Overføring inn", + gift_received: "Gåve (motteke)", + gift_given: "Gåve (gjeven)", + admin_cost: "Forvaltningskostnad" + }; + + function typeLabel(type) { + return TYPE_LABELS[type] || String(type || ""); + } + function api(method, path, body) { var options = { method: method,