feat: Fix axios interceptors.

This commit is contained in:
Ahmed Bouhuolia
2020-05-26 17:51:00 +02:00
parent dd49774f93
commit 72ba394c53
15 changed files with 369 additions and 223 deletions

View File

@@ -1,14 +1,15 @@
export default {
hello_world: 'Hello World',
'email_or_phone_number': 'Email or phone number',
email_or_phone_number: 'Email or phone number',
password: 'Password',
login: 'Login',
invalid_email_or_phone_number: 'Invalid email or phone number.',
'required': 'Required',
required: 'Required',
reset_password: 'Reset Password',
the_user_has_been_suspended_from_admin: 'The user has been suspended from the administrator.',
the_user_has_been_suspended_from_admin:
'The user has been suspended from the administrator.',
email_and_password_entered_did_not_match:
'The email and password you entered did not match our records.',
'The email and password you entered did not match our records.',
field_name_must_be_number: 'field_name_must_be_number',
name: 'Name',
search: 'Search',
@@ -34,9 +35,9 @@ export default {
phone_number: 'Phone Number',
you_email_address_is: 'You email address is',
you_will_use_this_address_to_sign_in_to_bigcapital:
'You will use this address to sign in to Bigcapital.',
'You will use this address to sign in to Bigcapital.',
signing_in_or_creating:
'By signing in or creating an account, you agree with our',
'By signing in or creating an account, you agree with our',
terms_conditions: 'Terms & Conditions',
and: 'and',
privacy_statement: 'Privacy Statement',
@@ -47,13 +48,15 @@ export default {
organization_name: 'Organization Name',
email: 'Email',
register: 'Register',
password_successfully_updated: 'The Password for your account was successfully updated.',
password_successfully_updated:
'The Password for your account was successfully updated.',
choose_a_new_password: 'Choose a new password',
you_remembered_your_password: 'You remembered your password ?',
new_password: 'New Password',
submit_new_password: 'Submit new password',
reset_your_password: 'Reset Your Password',
we_ll_send_you_a_link_to_reset_your_password: 'Enter your email address and well send you a link to reset your password.',
we_ll_send_you_a_link_to_reset_your_password:
'Enter your email address and well send you a link to reset your password.',
send_password_reset_link: 'Send password reset link',
return_to_log_in: 'Return to log in',
sub_account: 'Sub account?',
@@ -84,7 +87,8 @@ export default {
new: 'New',
new_category: 'New Category',
invite_user: 'invite User',
your_access_to_your_team: 'Your teammate will get an email that gives them access to your team.',
your_access_to_your_team:
'Your teammate will get an email that gives them access to your team.',
invite: 'invite',
count: 'Count',
item_type: 'Item Type',
@@ -137,7 +141,7 @@ export default {
inactivate: 'Inactivate',
activate: 'Activate',
inactivate_account: 'Inactivate Account',
activate_account:'Activate Account',
activate_account: 'Activate Account',
delete_account: 'Delete Account',
code: 'Code',
type: 'Type',
@@ -169,164 +173,198 @@ export default {
view_name: 'View Name',
new_conditional: 'New Conditional',
item: 'Item',
service_has_been_successful_created: '{service} {name} has been successfully created.',
service_has_been_successful_edited: '{service} {name} has been successfully edited.',
service_has_been_successful_created:
'{service} {name} has been successfully created.',
service_has_been_successful_edited:
'{service} {name} has been successfully edited.',
you_are_about_permanently_delete_this_journal: `You're about to permanently delete this journal and all its transactions on accounts and attachments, and all of its data. <br /><br />If you're not sure, you can archive this journal instead.`,
once_delete_these_accounts_you_will_not_able_restore_them: 'Once you delete these accounts, you won\'t be able to retrieve them later. Are you sure you want to delete them?',
once_delete_these_service_you_will_not_able_restore_it: 'Once you delete these {service}, you won\'t be able to retrieve them later. Are you sure you want to delete this {service}?',
you_could_not_delete_predefined_accounts: 'You could\'t delete predefined accounts.',
cannot_delete_account_has_associated_transactions: 'you could\'t not delete account that has associated transactions.',
the_account_has_been_successfully_inactivated: 'The account has been successfully inactivated.',
the_account_has_been_successfully_activated: 'The account has been successfully activated.',
the_account_has_been_successfully_deleted: 'The account has been successfully deleted.',
the_accounts_has_been_successfully_deleted: 'The accounts have been successfully deleted.',
are_sure_to_inactive_this_account: 'Are you sure you want to inactive this account? You will be able to activate it later',
are_sure_to_activate_this_account: 'Are you sure you want to activate this account? You will be able to inactivate it later',
once_delete_these_accounts_you_will_not_able_restore_them:
"Once you delete these accounts, you won't be able to retrieve them later. Are you sure you want to delete them?",
once_delete_these_service_you_will_not_able_restore_it:
"Once you delete these {service}, you won't be able to retrieve them later. Are you sure you want to delete this {service}?",
you_could_not_delete_predefined_accounts:
"You could't delete predefined accounts.",
cannot_delete_account_has_associated_transactions:
"you could't not delete account that has associated transactions.",
the_account_has_been_successfully_inactivated:
'The account has been successfully inactivated.',
the_account_has_been_successfully_activated:
'The account has been successfully activated.',
the_account_has_been_successfully_deleted:
'The account has been successfully deleted.',
the_accounts_has_been_successfully_deleted:
'The accounts have been successfully deleted.',
are_sure_to_inactive_this_account:
'Are you sure you want to inactive this account? You will be able to activate it later',
are_sure_to_activate_this_account:
'Are you sure you want to activate this account? You will be able to inactivate it later',
once_delete_this_account_you_will_able_to_restore_it: `Once you delete this account, you won\'t be able to restore it later. Are you sure you want to delete this account?<br /><br />If you're not sure, you can inactivate this account instead.`,
the_journal_has_been_successfully_created: 'The journal #{number} has been successfully created.',
the_journal_has_been_successfully_edited: 'The journal #{number} has been successfully edited.',
the_journal_has_been_successfully_created:
'The journal #{number} has been successfully created.',
the_journal_has_been_successfully_edited:
'The journal #{number} has been successfully edited.',
credit: 'Credit',
debit: 'Debit',
once_delete_this_item_you_will_able_to_restore_it: `Once you delete this item, you won\'t be able to restore the item later. Are you sure you want to delete ?<br /><br />If you're not sure, you can inactivate it instead.`,
the_item_has_been_successfully_deleted: 'The item has been successfully deleted.',
the_item_category_has_been_successfully_created: 'The item category has been successfully created.',
the_item_category_has_been_successfully_edited: 'The item category has been successfully edited.',
once_delete_these_views_you_will_not_able_restore_them: 'Once you delete the custom view, you won\'t be able to restore it later. Are you sure you want to delete this view?',
the_custom_view_has_been_successfully_deleted: 'The custom view has been successfully deleted.',
teammate_invited_to_organization_account: 'Your teammate has been invited to the organization account.',
the_item_has_been_successfully_deleted:
'The item has been successfully deleted.',
the_item_category_has_been_successfully_created:
'The item category has been successfully created.',
the_item_category_has_been_successfully_edited:
'The item category has been successfully edited.',
once_delete_these_views_you_will_not_able_restore_them:
"Once you delete the custom view, you won't be able to restore it later. Are you sure you want to delete this view?",
the_custom_view_has_been_successfully_deleted:
'The custom view has been successfully deleted.',
teammate_invited_to_organization_account:
'Your teammate has been invited to the organization account.',
select_account_type: 'Select account type',
menu:'Menu',
graph:'Graph',
map:'Map',
table:'Table',
nucleus:'Nucleus',
logout:'Logout',
the_expense_has_been_successfully_created: 'The expense has been successfully created.',
select_payment_account:'Select Payment Account',
select_expense_account:'Select Expense Account',
and:'And',
or:'OR',
select_a_comparator:'Select a comparator',
equals:'Equals',
not_equal:'Not Equal',
contain:'Contain',
not_contain:'Not Contain',
cash:'Cash',
accrual:'Accrual',
from:'From',
to:'To',
accounting_basis:'Accounting Basis:',
general:'General',
users:'Users',
currencies:'Currencies',
accountant:'Accountant',
accounts:'Accounts',
homepage:'Homepage',
items_list:'Items List',
new_item:'New Item',
items:'Items',
category_list:'Category List',
financial:'Financial',
accounts_chart:'Accounts Chart',
manual_journal:'Manual Journal',
make_journal:'Make Journal',
exchange_rate:'Exchange Rate',
banking:'Banking',
sales:'Sales',
purchases:'Purchases',
financial_reports:'Financial Reports',
balance_sheet:'Balance Sheet',
trial_balance_sheet:'Trial Balance Sheet',
journal:'Journal',
general_ledger:'General Ledger',
profit_loss_sheet:'Profit Loss Sheet',
expenses:'Expenses',
expenses_list:'Expenses List',
new_expenses:'New Expenses',
preferences:'Preferences',
auditing_system:'Auditing System',
all:'All',
organization:'Organization.',
check_your_email_for_a_link_to_reset: 'Check your email for a link to reset your password.If it doesnt appear within a few minutes, check your spam folder.',
we_couldn_t_find_your_account_with_that_email:'We couldn\'t find your account with that email.',
select_parent_account:'Select Parent Account',
the_exchange_rate_has_been_successfully_edited:'The exchange rate has been successfully edited',
the_exchange_rate_has_been_successfully_created:'The exchange rate has been successfully created',
the_exchange_rate_has_been_successfully_deleted: 'The exchange rate has been successfully deleted.',
the_user_details_has_been_updated:'The user details has been updated',
the_category_has_been_successfully_created: 'The category has been successfully created.',
filters_applied:'filters applied',
the_expense_has_been_successfully_deleted: 'The expense has been successfully deleted.',
select_item_type:'Select Item Type',
service:'Service',
inventory:'Inventory',
non_inventory:'Non-Inventory',
select_category:'Select category',
select_account:'Select Account',
custom_fields:'Custom Fields',
the_currency_has_been_successfully_deleted:'The currency has been successfully deleted',
organization_industry:'Organization Industry',
business_location:'Business Location',
base_currency:'Base Currency',
fiscal_year:'Fiscal Year',
language:'Language',
time_zone:'Time Zone',
date_format:'Date Format',
edit_user:'Edit User',
edit_invite:'Edit Invite',
inactivate_user:'Inactivate User',
delete_user:'Delete User',
full_name:'Full Name',
the_user_has_been_successfully_inactivated: 'The user has been successfully inactivated.',
the_user_has_been_successfully_deleted: 'The user has been successfully deleted.',
customize_report:'Customize Report',
print:'Print',
export:'Export',
accounts_with_zero_balance:'Accounts with Zero Balance',
all_transactions:'All Transactions',
filter_accounts:'Filter Accounts',
calculate_report:'Calculate Report',
total:'Total',
specific_accounts:'Specific Accounts',
trans_num:'Trans. NUM',
journal_sheet:'Journal Sheet',
run_report:'Run Report',
num:'Num.',
acc_code:'Acc. Code',
display_report_columns:'Display report columns',
select_display_columns_by:'Select display columns by...',
credit_and_debit_not_equal:'credit and debit not equal',
the_currency_has_been_successfully_edited:'The currency has been successfully edited',
the_currency_has_been_successfully_created:'The currency has been successfully created',
menu: 'Menu',
graph: 'Graph',
map: 'Map',
table: 'Table',
nucleus: 'Nucleus',
logout: 'Logout',
the_expense_has_been_successfully_created:
'The expense has been successfully created.',
select_payment_account: 'Select Payment Account',
select_expense_account: 'Select Expense Account',
and: 'And',
or: 'OR',
select_a_comparator: 'Select a comparator',
equals: 'Equals',
not_equal: 'Not Equal',
contain: 'Contain',
not_contain: 'Not Contain',
cash: 'Cash',
accrual: 'Accrual',
from: 'From',
to: 'To',
accounting_basis: 'Accounting Basis:',
general: 'General',
users: 'Users',
currencies: 'Currencies',
accountant: 'Accountant',
accounts: 'Accounts',
homepage: 'Homepage',
items_list: 'Items List',
new_item: 'New Item',
items: 'Items',
category_list: 'Category List',
financial: 'Financial',
accounts_chart: 'Accounts Chart',
manual_journal: 'Manual Journal',
make_journal: 'Make Journal',
exchange_rate: 'Exchange Rate',
banking: 'Banking',
sales: 'Sales',
purchases: 'Purchases',
financial_reports: 'Financial Reports',
balance_sheet: 'Balance Sheet',
trial_balance_sheet: 'Trial Balance Sheet',
journal: 'Journal',
general_ledger: 'General Ledger',
profit_loss_sheet: 'Profit Loss Sheet',
expenses: 'Expenses',
expenses_list: 'Expenses List',
new_expenses: 'New Expenses',
preferences: 'Preferences',
auditing_system: 'Auditing System',
all: 'All',
organization: 'Organization.',
check_your_email_for_a_link_to_reset:
'Check your email for a link to reset your password.If it doesnt appear within a few minutes, check your spam folder.',
we_couldn_t_find_your_account_with_that_email:
"We couldn't find your account with that email.",
select_parent_account: 'Select Parent Account',
the_exchange_rate_has_been_successfully_edited:
'The exchange rate has been successfully edited',
the_exchange_rate_has_been_successfully_created:
'The exchange rate has been successfully created',
the_exchange_rate_has_been_successfully_deleted:
'The exchange rate has been successfully deleted.',
the_user_details_has_been_updated: 'The user details has been updated',
the_category_has_been_successfully_created:
'The category has been successfully created.',
filters_applied: 'filters applied',
the_expense_has_been_successfully_deleted:
'The expense has been successfully deleted.',
select_item_type: 'Select Item Type',
service: 'Service',
inventory: 'Inventory',
non_inventory: 'Non-Inventory',
select_category: 'Select category',
select_account: 'Select Account',
custom_fields: 'Custom Fields',
the_currency_has_been_successfully_deleted:
'The currency has been successfully deleted',
organization_industry: 'Organization Industry',
business_location: 'Business Location',
base_currency: 'Base Currency',
fiscal_year: 'Fiscal Year',
language: 'Language',
time_zone: 'Time Zone',
date_format: 'Date Format',
edit_user: 'Edit User',
edit_invite: 'Edit Invite',
inactivate_user: 'Inactivate User',
delete_user: 'Delete User',
full_name: 'Full Name',
the_user_has_been_successfully_inactivated:
'The user has been successfully inactivated.',
the_user_has_been_successfully_deleted:
'The user has been successfully deleted.',
customize_report: 'Customize Report',
print: 'Print',
export: 'Export',
accounts_with_zero_balance: 'Accounts with Zero Balance',
all_transactions: 'All Transactions',
filter_accounts: 'Filter Accounts',
calculate_report: 'Calculate Report',
total: 'Total',
specific_accounts: 'Specific Accounts',
trans_num: 'Trans. NUM',
journal_sheet: 'Journal Sheet',
run_report: 'Run Report',
num: 'Num.',
acc_code: 'Acc. Code',
display_report_columns: 'Display report columns',
select_display_columns_by: 'Select display columns by...',
credit_and_debit_not_equal: 'credit and debit not equal',
the_currency_has_been_successfully_edited:
'The currency has been successfully edited',
the_currency_has_been_successfully_created:
'The currency has been successfully created',
// Name Labels
expense_account_id :'Expense account',
expense_account_id: 'Expense account',
payment_account_id: 'Payment account',
currency_code_: 'Currency code',
publish:'Publish',
exchange_rate_:'Exchange rate',
journal_number_:'Journal number',
publish: 'Publish',
exchange_rate_: 'Exchange rate',
journal_number_: 'Journal number',
first_name_: 'First name',
last_name_:'Last name',
phone_number_:'Phone number',
organization_name_:'Organization name',
confirm_password:'Confirm password',
crediential:'Email or Phone number',
account_type_id:'Account type',
account_name_:'Account name',
currency_name_:'Currency name',
cost_account_id:'Cost account',
sell_account_id:'Sell account',
item_type_:'Item type',
item_name_:'Item name',
organization_industry_:'Organization industry',
base_currency_:'Base currency',
date_format_:'Date format',
category_name_:'Category name',
view_name_:'View name',
the_items_has_been_successfully_deleted: 'The items have been successfully deleted.',
once_delete_these_items_you_will_not_able_restore_them: 'Once you delete these items, you won\'t be able to retrieve them later. Are you sure you want to delete them?',
last_name_: 'Last name',
phone_number_: 'Phone number',
organization_name_: 'Organization name',
confirm_password: 'Confirm password',
crediential: 'Email or Phone number',
account_type_id: 'Account type',
account_name_: 'Account name',
currency_name_: 'Currency name',
cost_account_id: 'Cost account',
sell_account_id: 'Sell account',
item_type_: 'Item type',
item_name_: 'Item name',
organization_industry_: 'Organization industry',
base_currency_: 'Base currency',
date_format_: 'Date format',
category_name_: 'Category name',
view_name_: 'View name',
the_items_has_been_successfully_deleted:
'The items have been successfully deleted.',
once_delete_these_items_you_will_not_able_restore_them:
"Once you delete these items, you won't be able to retrieve them later. Are you sure you want to delete them?",
ops_something_went_wrong: 'Something went wrong! Please try again.',
session_expired: 'Session Expired!',
};