Add the Nynorsk labels for the transaction types
This commit is contained in:
1 parent
fd7db19b65
commit
6d9434adfd
1 file changed
+17
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user