Update localised JS

This commit is contained in:
James Cole
2020-09-13 07:38:31 +02:00
parent 29445e4ffb
commit 890de05394
47 changed files with 243 additions and 630 deletions

6
frontend/package-lock.json generated Normal file → Executable file
View File

@@ -9281,9 +9281,9 @@
"dev": true
},
"vue-i18n": {
"version": "8.21.0",
"resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-8.21.0.tgz",
"integrity": "sha512-pKBq6Kg5hNacFHMFgPbpYsFlDIMRu4Ew/tpvTWns14CZoCxt7B3tmSNdrLruGMMivnJu1rhhRqsQqT6YwHkuQQ==",
"version": "8.21.1",
"resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-8.21.1.tgz",
"integrity": "sha512-KEakJLI7R6+UCmhJOMZ0K7C+Zf5FcMh7QDkBRaEq39V7d9JgSrTDBf/9HuHU3TaxQYXx4fUi5PTIPdwLXq+iow==",
"dev": true
},
"vue-loader": {

2
frontend/package.json Normal file → Executable file
View File

@@ -19,7 +19,7 @@
"sass": "^1.26.10",
"sass-loader": "^10.0.2",
"vue": "^2.6.12",
"vue-i18n": "^8.21",
"vue-i18n": "^8.21.1",
"vue-template-compiler": "^2.6.12"
},
"dependencies": {

View File

@@ -1,2 +1,2 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{206:function(t,s,a){t.exports=a(211)},211:function(t,s,a){"use strict";a.r(s);var e=a(9),n={name:"Index"},c=a(1),i=Object(c.a)(n,(function(){var t=this.$createElement,s=this._self._c||t;return s("div",[s("router-view")],1)}),[],!1,null,"6b40cc75",null).exports,r={name:"List",props:{accountTypes:String},data:function(){return{accounts:[]}},mounted:function(){var t=this;axios.get("./api/v1/accounts?type="+this.$props.accountTypes).then((function(s){t.loadAccounts(s.data.data)}))},methods:{loadAccounts:function(t){for(var s in t)if(t.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294){var a=t[s];"asset"===a.attributes.type&&null!==a.attributes.account_role&&(a.attributes.account_role=this.$t("firefly.account_role_"+a.attributes.account_role)),"asset"===a.attributes.type&&null===a.attributes.account_role&&(a.attributes.account_role=this.$t("firefly.Default asset account")),null===a.attributes.iban&&(a.attributes.iban=a.attributes.account_number),this.accounts.push(a)}}}},o=Object(c.a)(r,(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-12 col-md-12 col-sm-12 col-xs-12"},[a("div",{staticClass:"card"},[t._m(0),t._v(" "),a("div",{staticClass:"card-body p-0"},[a("table",{staticClass:"table table-sm table-striped"},[a("thead",[a("tr",[a("th",[t._v(" ")]),t._v(" "),a("th",[t._v(t._s(t.$t("list.name")))]),t._v(" "),"asset"===t.$props.accountTypes?a("th",[t._v(t._s(t.$t("list.role")))]):t._e(),t._v(" "),a("th",[t._v(t._s(t.$t("list.iban")))]),t._v(" "),a("th",{staticStyle:{"text-align":"right"}},[t._v(t._s(t.$t("list.currentBalance")))]),t._v(" "),a("th",[t._v(t._s(t.$t("list.balanceDiff")))])])]),t._v(" "),a("tbody",t._l(t.accounts,(function(s){return a("tr",[t._m(1,!0),t._v(" "),a("td",[a("router-link",{attrs:{to:{name:"accounts.show",params:{id:s.id}},title:s.attributes.name}},[t._v(t._s(s.attributes.name)+"\n ")])],1),t._v(" "),"asset"===t.$props.accountTypes?a("td",[t._v("\n "+t._s(s.attributes.account_role)+"\n ")]):t._e(),t._v(" "),a("td",[t._v("\n "+t._s(s.attributes.iban)+"\n ")]),t._v(" "),a("td",{staticStyle:{"text-align":"right"}},[t._v("\n "+t._s(Intl.NumberFormat("en-US",{style:"currency",currency:s.attributes.currency_code}).format(s.attributes.current_balance))+"\n ")]),t._v(" "),a("td",[t._v("diff")])])})),0)])]),t._v(" "),a("div",{staticClass:"card-footer"},[t._v("\n Footer stuff.\n ")])])])])}),[function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"card-header"},[s("h3",{staticClass:"card-title"},[this._v("Title thing")]),this._v(" "),s("div",{staticClass:"card-tools"},[s("div",{staticClass:"input-group input-group-sm",staticStyle:{width:"150px"}},[s("input",{staticClass:"form-control float-right",attrs:{type:"text",name:"table_search",placeholder:"Search"}}),this._v(" "),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-default",attrs:{type:"submit"}},[s("i",{staticClass:"fas fa-search"})])])])])])},function(){var t=this.$createElement,s=this._self._c||t;return s("td",[s("div",{staticClass:"btn-group btn-group-xs"},[s("a",{staticClass:"btn btn-xs btn-default",attrs:{href:"edit"}},[s("i",{staticClass:"fa fas fa-pencil-alt"})]),this._v(" "),s("a",{staticClass:"btn btn-xs btn-danger",attrs:{href:"del"}},[s("i",{staticClass:"fa far fa-trash"})])])])}],!1,null,"27a44b66",null).exports,u={name:"Show"},l=Object(c.a)(u,(function(){var t=this.$createElement;return(this._self._c||t)("div",[this._v("\n I am a show\n")])}),[],!1,null,"dcd61a50",null).exports;a(155);var p=[{path:"/",component:i},{path:"/accounts/asset",name:"accounts.index.asset",component:o,props:{accountTypes:"asset"}},{path:"/accounts/expense",component:o,props:{accountTypes:"expense"}},{path:"/accounts/revenue",component:o,props:{accountTypes:"revenue"}},{path:"/accounts/liabilities",component:o,props:{accountTypes:"liabilities"}},{path:"/accounts/show/:id",name:"accounts.show",component:l}],_=new e.a({mode:"history",routes:p}),d=a(154),h={};Vue.use(e.a),new Vue({router:_,i18n:d,render:function(t){return t(i,{props:h})}}).$mount("#accounts")}},[[206,0,1]]]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{206:function(t,s,a){t.exports=a(211)},211:function(t,s,a){"use strict";a.r(s);var e=a(9),n={name:"Index"},c=a(1),i=Object(c.a)(n,(function(){var t=this.$createElement,s=this._self._c||t;return s("div",[s("router-view")],1)}),[],!1,null,"6b40cc75",null).exports,r={name:"List",props:{accountTypes:String},data:function(){return{accounts:[]}},mounted:function(){var t=this;axios.get("./api/v1/accounts?type="+this.$props.accountTypes).then((function(s){t.loadAccounts(s.data.data)}))},methods:{loadAccounts:function(t){for(var s in t)if(t.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294){var a=t[s];"asset"===a.attributes.type&&null!==a.attributes.account_role&&(a.attributes.account_role=this.$t("firefly.account_role_"+a.attributes.account_role)),"asset"===a.attributes.type&&null===a.attributes.account_role&&(a.attributes.account_role=this.$t("firefly.Default asset account")),null===a.attributes.iban&&(a.attributes.iban=a.attributes.account_number),this.accounts.push(a)}}}},o=Object(c.a)(r,(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-12 col-md-12 col-sm-12 col-xs-12"},[a("div",{staticClass:"card"},[t._m(0),t._v(" "),a("div",{staticClass:"card-body p-0"},[a("table",{staticClass:"table table-sm table-striped"},[a("thead",[a("tr",[a("th",[t._v(" ")]),t._v(" "),a("th",[t._v(t._s(t.$t("list.name")))]),t._v(" "),"asset"===t.$props.accountTypes?a("th",[t._v(t._s(t.$t("list.role")))]):t._e(),t._v(" "),a("th",[t._v(t._s(t.$t("list.iban")))]),t._v(" "),a("th",{staticStyle:{"text-align":"right"}},[t._v(t._s(t.$t("list.currentBalance")))]),t._v(" "),a("th",[t._v(t._s(t.$t("list.balanceDiff")))])])]),t._v(" "),a("tbody",t._l(t.accounts,(function(s){return a("tr",[t._m(1,!0),t._v(" "),a("td",[a("router-link",{attrs:{to:{name:"accounts.show",params:{id:s.id}},title:s.attributes.name}},[t._v(t._s(s.attributes.name)+"\n ")])],1),t._v(" "),"asset"===t.$props.accountTypes?a("td",[t._v("\n "+t._s(s.attributes.account_role)+"\n ")]):t._e(),t._v(" "),a("td",[t._v("\n "+t._s(s.attributes.iban)+"\n ")]),t._v(" "),a("td",{staticStyle:{"text-align":"right"}},[t._v("\n "+t._s(Intl.NumberFormat("en-US",{style:"currency",currency:s.attributes.currency_code}).format(s.attributes.current_balance))+"\n ")]),t._v(" "),a("td",[t._v("diff")])])})),0)])]),t._v(" "),a("div",{staticClass:"card-footer"},[t._v("\n Footer stuff.\n ")])])])])}),[function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"card-header"},[s("h3",{staticClass:"card-title"},[this._v("Title thing")]),this._v(" "),s("div",{staticClass:"card-tools"},[s("div",{staticClass:"input-group input-group-sm",staticStyle:{width:"150px"}},[s("input",{staticClass:"form-control float-right",attrs:{type:"text",name:"table_search",placeholder:"Search"}}),this._v(" "),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-default",attrs:{type:"submit"}},[s("i",{staticClass:"fas fa-search"})])])])])])},function(){var t=this.$createElement,s=this._self._c||t;return s("td",[s("div",{staticClass:"btn-group btn-group-xs"},[s("a",{staticClass:"btn btn-xs btn-default",attrs:{href:"edit"}},[s("i",{staticClass:"fa fas fa-pencil-alt"})]),this._v(" "),s("a",{staticClass:"btn btn-xs btn-danger",attrs:{href:"del"}},[s("i",{staticClass:"fa far fa-trash"})])])])}],!1,null,"27a44b66",null).exports,u={name:"Show"},l=Object(c.a)(u,(function(){var t=this.$createElement;return(this._self._c||t)("div",[this._v("\n I am a show\n")])}),[],!1,null,"dcd61a50",null).exports;a(156);var p=[{path:"/",component:i},{path:"/accounts/asset",name:"accounts.index.asset",component:o,props:{accountTypes:"asset"}},{path:"/accounts/expense",component:o,props:{accountTypes:"expense"}},{path:"/accounts/revenue",component:o,props:{accountTypes:"revenue"}},{path:"/accounts/liabilities",component:o,props:{accountTypes:"liabilities"}},{path:"/accounts/show/:id",name:"accounts.show",component:l}],_=new e.a({mode:"history",routes:p}),d=a(154),h={};Vue.use(e.a),new Vue({router:_,i18n:d,render:function(t){return t(i,{props:h})}}).$mount("#accounts")}},[[206,0,1]]]);
//# sourceMappingURL=accounts.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -27,11 +27,13 @@ module.exports = new vuei18n({
'cs': require('./locales/cs.json'),
'de': require('./locales/de.json'),
'en': require('./locales/en.json'),
'en-us': require('./locales/en.json'),
'en-gb': require('./locales/en-gb.json'),
'es': require('./locales/es.json'),
'el': require('./locales/el.json'),
'fr': require('./locales/fr.json'),
'hu': require('./locales/hu.json'),
'id': require('./locales/id.json'),
//'id': require('./locales/id.json'),
'it': require('./locales/it.json'),
'nl': require('./locales/nl.json'),
'nb': require('./locales/nb.json'),
@@ -40,6 +42,7 @@ module.exports = new vuei18n({
'pt-br': require('./locales/pt-br.json'),
'ro': require('./locales/ro.json'),
'ru': require('./locales/ru.json'),
//'zh': require('./locales/zh.json'),
'zh-tw': require('./locales/zh-tw.json'),
'zh-cn': require('./locales/zh-cn.json'),
'sv': require('./locales/sv.json'),

View File

@@ -0,0 +1,54 @@
{
"firefly": {
"balance": "Balance",
"bills_to_pay": "Bills to pay",
"left_to_spend": "Left to spend",
"net_worth": "Net worth",
"paid": "Paid",
"yourAccounts": "Your accounts",
"go_to_asset_accounts": "View your asset accounts",
"transaction_table_description": "A table containing your transactions",
"account": "Account",
"description": "Description",
"amount": "Amount",
"budget": "Budget",
"category": "Category",
"opposing_account": "Opposing account",
"budgets": "Budgets",
"categories": "Categories",
"go_to_budgets": "Go to your budgets",
"income": "Revenue \/ income",
"go_to_deposits": "Go to deposits",
"go_to_categories": "Go to your categories",
"expense_accounts": "Expense accounts",
"go_to_expenses": "Go to expenses",
"go_to_bills": "Go to your bills",
"bills": "Bills",
"go_to_piggies": "Go to your piggy banks",
"saved": "Saved",
"piggy_banks": "Piggy banks",
"piggy_bank": "Piggy bank",
"amounts": "Amounts",
"Default asset account": "Default asset account",
"account_role_defaultAsset": "Default asset account",
"account_role_savingAsset": "Savings account",
"account_role_sharedAsset": "Shared asset account",
"account_role_ccAsset": "Credit card",
"account_role_cashWalletAsset": "Cash wallet"
},
"list": {
"piggy_bank": "Piggy bank",
"percentage": "pct.",
"amount": "Amount",
"name": "Name",
"role": "Role",
"iban": "IBAN",
"lastActivity": "Last activity",
"currentBalance": "Current balance",
"balanceDiff": "Balance difference",
"next_expected_match": "Next expected match"
},
"config": {
"html_language": "en-gb"
}
}

View File

@@ -6,7 +6,7 @@
"net_worth": "Net worth",
"paid": "Paid",
"yourAccounts": "Your accounts",
"go_to_asset_accounts": "S\u0105skait\u0173 per\u017ei\u016bra",
"go_to_asset_accounts": "View your asset accounts",
"transaction_table_description": "A table containing your transactions",
"account": "Account",
"description": "Description",
@@ -16,13 +16,13 @@
"opposing_account": "Opposing account",
"budgets": "Budgets",
"categories": "Categories",
"go_to_budgets": "Pereiti \u012f biud\u017eet\u0105",
"go_to_budgets": "Go to your budgets",
"income": "Revenue \/ income",
"go_to_deposits": "Go to deposits",
"go_to_categories": "Pereiti \u012f kategorijas",
"go_to_categories": "Go to your categories",
"expense_accounts": "Expense accounts",
"go_to_expenses": "Go to expenses",
"go_to_bills": "Pereiti \u012f s\u0105skaitas",
"go_to_bills": "Go to your bills",
"bills": "Bills",
"go_to_piggies": "Go to your piggy banks",
"saved": "Saved",

View File

@@ -25,7 +25,7 @@
"go_to_bills": "Ugr\u00e1s a sz\u00e1ml\u00e1khoz",
"bills": "Sz\u00e1ml\u00e1k",
"go_to_piggies": "Ugr\u00e1s a malacperselyekhez",
"saved": "Saved",
"saved": "Mentve",
"piggy_banks": "Malacperselyek",
"piggy_bank": "Malacpersely",
"amounts": "Amounts",

View File

@@ -1,54 +0,0 @@
{
"firefly": {
"balance": "Keseimbangan",
"bills_to_pay": "Bills untuk membayar",
"left_to_spend": "Kiri untuk dibelanjakan",
"net_worth": "Nilai bersih",
"paid": "Dibayar",
"yourAccounts": "Akun anda",
"go_to_asset_accounts": "Menampilkan rekening aset",
"transaction_table_description": "A table containing your transactions",
"account": "Rekening",
"description": "Deskripsi",
"amount": "Jumlah",
"budget": "Anggaran",
"category": "Kategori",
"opposing_account": "Opposing account",
"budgets": "Anggaran",
"categories": "Kategori",
"go_to_budgets": "Pergi ke anggaran mu",
"income": "Pendapatan \/ penghasilan",
"go_to_deposits": "Go to deposits",
"go_to_categories": "Menuju ke kategori yang anda miliki",
"expense_accounts": "Rekening pengeluaran",
"go_to_expenses": "Go to expenses",
"go_to_bills": "Menuju ke bill yang anda miliki",
"bills": "Tagihan",
"go_to_piggies": "Go to your piggy banks",
"saved": "Saved",
"piggy_banks": "Piggy banks",
"piggy_bank": "Celengan",
"amounts": "Amounts",
"Default asset account": "Akun aset standar",
"account_role_defaultAsset": "Akun aset standar",
"account_role_savingAsset": "Rekening tabungan",
"account_role_sharedAsset": "Akun aset bersama",
"account_role_ccAsset": "Kartu kredit",
"account_role_cashWalletAsset": "Cash wallet"
},
"list": {
"piggy_bank": "Celengan",
"percentage": "pct.",
"amount": "Jumlah",
"name": "Nama",
"role": "Peran",
"iban": "IBAN",
"lastActivity": "Aktifitas terakhir",
"currentBalance": "Saldo saat ini",
"balanceDiff": "Perbedaan saldo",
"next_expected_match": "Transaksi yang diharapkan berikutnya"
},
"config": {
"html_language": "id"
}
}

View File

@@ -1,54 +0,0 @@
{
"firefly": {
"balance": "Denge",
"bills_to_pay": "\u00d6denecek fatura",
"left_to_spend": "Harcama i\u00e7in b\u0131rak\u0131ld\u0131",
"net_worth": "Net de\u011fer",
"paid": "\u00d6dendi",
"yourAccounts": "Hesaplar\u0131n\u0131z",
"go_to_asset_accounts": "Varl\u0131k hesaplar\u0131n\u0131z\u0131 g\u00f6r\u00fcnt\u00fcleyin",
"transaction_table_description": "A table containing your transactions",
"account": "Hesap",
"description": "A\u00e7\u0131klama",
"amount": "Miktar",
"budget": "B\u00fct\u00e7e",
"category": "Kategori",
"opposing_account": "Opposing account",
"budgets": "B\u00fct\u00e7eler",
"categories": "Kategoriler",
"go_to_budgets": "B\u00fct\u00e7elerine git",
"income": "Gelir \/ gelir",
"go_to_deposits": "Go to deposits",
"go_to_categories": "Kategorilerinize gidin",
"expense_accounts": "Gider hesaplar\u0131",
"go_to_expenses": "Go to expenses",
"go_to_bills": "Faturalar\u0131na git",
"bills": "Fatura",
"go_to_piggies": "Kumbaran\u0131za gidin",
"saved": "Saved",
"piggy_banks": "Piggy banks",
"piggy_bank": "Kumbara",
"amounts": "Amounts",
"Default asset account": "Varsay\u0131lan varl\u0131k hesab\u0131",
"account_role_defaultAsset": "Varsay\u0131lan varl\u0131k hesab\u0131",
"account_role_savingAsset": "Birikim hesab\u0131",
"account_role_sharedAsset": "Payla\u015f\u0131lan varl\u0131k hesab\u0131",
"account_role_ccAsset": "Kredi Kart\u0131",
"account_role_cashWalletAsset": "Nakit c\u00fczdan"
},
"list": {
"piggy_bank": "Kumbara",
"percentage": "yzd.",
"amount": "Miktar",
"name": "\u0130sim",
"role": "Rol",
"iban": "IBAN numaras\u0131",
"lastActivity": "Son Etkinlik",
"currentBalance": "Cari bakiye",
"balanceDiff": "Bakiye fark\u0131",
"next_expected_match": "Beklenen sonraki e\u015fle\u015fme"
},
"config": {
"html_language": "tr"
}
}

View File

@@ -25,7 +25,7 @@
"go_to_bills": "\u524d\u5f80\u60a8\u7684\u5e10\u5355",
"bills": "\u5e10\u5355",
"go_to_piggies": "\u524d\u5f80\u60a8\u7684\u5b58\u94b1\u7f50",
"saved": "Saved",
"saved": "\u5df2\u4fdd\u5b58",
"piggy_banks": "\u5b58\u94b1\u7f50",
"piggy_bank": "\u5b58\u94b1\u7f50",
"amounts": "Amounts",