Skip to content

Commit

Permalink
Merge pull request #41060 from Expensify/aldo_fix-autosync
Browse files Browse the repository at this point in the history
Add translations for QBO Sync job
  • Loading branch information
luacmartins committed Apr 29, 2024
2 parents c343552 + b7197a6 commit f421923
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1714,6 +1714,12 @@ const CONST = {
QBO_SYNC_PAYMENTS: 'quickbooksOnlineSyncBillPayments',
QBO_IMPORT_TAX_CODES: 'quickbooksOnlineSyncTaxCodes',
QBO_CHECK_CONNECTION: 'quickbooksOnlineCheckConnection',
QBO_SYNC_TITLE: 'quickbooksOnlineSyncTitle',
QBO_SYNC_LOAD_DATA: 'quickbooksOnlineSyncLoadData',
QBO_SYNC_APPLY_CATEGORIES: 'quickbooksOnlineSyncApplyCategories',
QBO_SYNC_APPLY_CUSTOMERS: 'quickbooksOnlineSyncApplyCustomers',
QBO_SYNC_APPLY_PEOPLE: 'quickbooksOnlineSyncApplyEmployees',
QBO_SYNC_APPLY_CLASSES_LOCATIONS: 'quickbooksOnlineSyncApplyClassesLocations',
JOB_DONE: 'jobDone',
},
},
Expand Down
12 changes: 12 additions & 0 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2221,6 +2221,18 @@ export default {
return 'Importing your QuickBooks Online data';
case 'startingImport':
return 'Importing your QuickBooks Online data';
case 'quickbooksOnlineSyncTitle':
return 'Synchronizing QuickBooks Online data';
case 'quickbooksOnlineSyncLoadData':
return 'Loading data';
case 'quickbooksOnlineSyncApplyCategories':
return 'Updating categories';
case 'quickbooksOnlineSyncApplyCustomers':
return 'Updating Customers/Projects';
case 'quickbooksOnlineSyncApplyEmployees':
return 'Updating people list';
case 'quickbooksOnlineSyncApplyClassesLocations':
return 'Updating report fields';
default: {
return `Translation missing for stage: ${stage}`;
}
Expand Down
12 changes: 12 additions & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2216,6 +2216,18 @@ export default {
return 'Importando datos desde QuickBooks Online';
case 'startingImport':
return 'Importando datos desde QuickBooks Online';
case 'quickbooksOnlineSyncTitle':
return 'Sincronizando datos desde QuickBooks Online';
case 'quickbooksOnlineSyncLoadData':
return 'Cargando datos';
case 'quickbooksOnlineSyncApplyCategories':
return 'Actualizando categorías';
case 'quickbooksOnlineSyncApplyCustomers':
return 'Actualizando Clientes/Proyectos';
case 'quickbooksOnlineSyncApplyEmployees':
return 'Actualizando empleados';
case 'quickbooksOnlineSyncApplyClassesLocations':
return 'Actualizando clases';
default: {
return `Translation missing for stage: ${stage}`;
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/WorkspaceMoreFeaturesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function WorkspaceMoreFeaturesPage({policy, route}: WorkspaceMoreFeaturesPagePro
titleTranslationKey: 'workspace.moreFeatures.taxes.title',
subtitleTranslationKey: 'workspace.moreFeatures.taxes.subtitle',
isActive: (policy?.tax?.trackingEnabled ?? false) || isSyncTaxEnabled,
disabled: isSyncTaxEnabled || policy?.connections?.quickbooksOnline.data.country === CONST.COUNTRY.US,
disabled: isSyncTaxEnabled || policy?.connections?.quickbooksOnline?.data?.country === CONST.COUNTRY.US,
pendingAction: policy?.pendingFields?.tax,
action: (isEnabled: boolean) => {
Policy.enablePolicyTaxes(policy?.id ?? '', isEnabled);
Expand Down

0 comments on commit f421923

Please sign in to comment.