Skip to content

Commit

Permalink
chore: translate statement title to Spanish
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayata Suenaga committed Nov 24, 2023
1 parent 5e10ae8 commit 32f3265
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1671,6 +1671,7 @@ export default {
genericCreateTaskFailureMessage: 'Unexpected error create task, please try again later.',
},
statementPage: {
title: (year, monthName) => `${monthName} ${year} statement`,
generatingPDF: "We're generating your PDF right now. Please come back later!",
},
keyboardShortcutsPage: {
Expand Down
1 change: 1 addition & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1695,6 +1695,7 @@ export default {
genericCreateTaskFailureMessage: 'Error inesperado al crear el tarea, por favor, inténtalo más tarde.',
},
statementPage: {
title: (year, monthName) => `Estado de cuenta de ${monthName} ${year}`,
generatingPDF: 'Estamos generando tu PDF ahora mismo. ¡Por favor, vuelve más tarde!',
},
keyboardShortcutsPage: {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/wallet/WalletStatementPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function WalletStatementPage(props) {
const year = yearMonth.substring(0, 4) || getYear(new Date());
const month = yearMonth.substring(4) || getMonth(new Date());
const monthName = format(new Date(year, month - 1), CONST.DATE.MONTH_FORMAT);
const title = `${monthName} ${year} statement`;
const title = props.translate('statementPage.title', year, monthName);
const url = `${CONFIG.EXPENSIFY.EXPENSIFY_URL}statement.php?period=${yearMonth}`;

return (
Expand Down

0 comments on commit 32f3265

Please sign in to comment.