Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"words": [
"--longpress",
"ACCOUNTCODE",
"ACTIONABLEAPPLYAGENTRULE",
"ADDCOMMENT",
"ADFS",
"AMRO",
Expand Down
8 changes: 8 additions & 0 deletions src/CONST/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1565,6 +1565,7 @@ const CONST = {
// OldDot Actions render getMessage from Web-Expensify/lib/Report/Action PHP files via getMessageOfOldDotReportAction in ReportActionsUtils.ts
TYPE: {
ACTIONABLE_ADD_PAYMENT_CARD: 'ACTIONABLEADDPAYMENTCARD',
ACTIONABLE_APPLY_AGENT_RULE: 'ACTIONABLEAPPLYAGENTRULE',
// Concierge message informing the user of a 3DS challenge - custom reportAction type because we want to translate it
ACTIONABLE_CARD_3DS_TRANSACTION_APPROVAL: 'ACTIONABLE_CARD_3DS_TRANSACTION_APPROVAL',
ACTIONABLE_CARD_FRAUD_ALERT: 'ACTIONABLECARDFRAUDALERT',
Expand Down Expand Up @@ -1676,6 +1677,9 @@ const CONST = {
ADD_EMPLOYEE: 'POLICYCHANGELOG_ADD_EMPLOYEE',
ADD_CARD_FEED: 'POLICYCHANGELOG_ADD_CARD_FEED',
ADD_EXPENSIFY_CARD_RULE: 'POLICYCHANGELOG_ADD_EXPENSIFY_CARD_RULE',
ADD_AGENT_RULE: 'POLICYCHANGELOG_ADD_AGENT_RULE',
UPDATE_AGENT_RULE: 'POLICYCHANGELOG_UPDATE_AGENT_RULE',
DELETE_AGENT_RULE: 'POLICYCHANGELOG_DELETE_AGENT_RULE',
ADD_INTEGRATION: 'POLICYCHANGELOG_ADD_INTEGRATION',
ADD_REPORT_FIELD: 'POLICYCHANGELOG_ADD_REPORT_FIELD',
ADD_TAG: 'POLICYCHANGELOG_ADD_TAG',
Expand Down Expand Up @@ -1818,6 +1822,10 @@ const CONST = {
ADMIN: 'CANCEL_REASON_ADMIN',
USER: 'CANCEL_REASON_USER',
},
ACTIONABLE_APPLY_AGENT_RULE_RESOLUTION: {
APPLY: 'apply',
NOTHING: 'nothing',
},
ACTIONABLE_MENTION_WHISPER_RESOLUTION: {
INVITE: 'invited',
INVITE_TO_SUBMIT_EXPENSE: 'inviteToSubmitExpense',
Expand Down
12 changes: 12 additions & 0 deletions src/languages/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7881,6 +7881,12 @@ Fügen Sie weitere Ausgabelimits hinzu, um den Cashflow Ihres Unternehmens zu sc
describeRuleForConcierge: 'Beschreiben Sie Ihre Regel und Concierge erstellt sie',
gotIt: 'Verstanden',
createRule: 'Regel erstellen',
applyOffer: {
message: ({ruleTitle, count}: {ruleTitle: string; count: number}) =>
`hat angeboten, die Agentenregel „${ruleTitle}“ auf ${count} offene ${count === 1 ? 'Ausgabe' : 'Ausgaben'} anzuwenden. Soll sie rückwirkend angewendet werden?`,
applyButtonText: 'Rückwirkend anwenden',
dismissButtonText: 'Nicht anwenden',
},
},
tabs: {
general: 'Allgemein',
Expand Down Expand Up @@ -8680,6 +8686,12 @@ Fügen Sie weitere Ausgabelimits hinzu, um den Cashflow Ihres Unternehmens zu sc
updatedMccGroupCategory: ({mccGroupName, oldCategory, newCategory}: {mccGroupName: string; oldCategory: string; newCategory: string}) =>
`hat die Standardausgabenkategorie für „${mccGroupName}“ in „${newCategory}“ geändert (zuvor „${oldCategory}“)`,
updatedRequireCompanyCards: ({enabled}: {enabled: boolean}) => `${enabled ? 'aktiviert' : 'deaktiviert'} die Anforderung für Firmenkartenkäufe`,
agentRule: {
added: ({title, prompt}: {title: string; prompt: string}) => (title ? `hat die Agentenregel „${title}“ hinzugefügt: ${prompt}` : `hat eine Agentenregel hinzugefügt: ${prompt}`),
updated: ({title, prompt}: {title: string; prompt: string}) =>
title ? `hat die Agentenregel „${title}“ aktualisiert zu: ${prompt}` : `eine Agentenregel aktualisiert zu: ${prompt}`,
deleted: ({title}: {title: string}) => (title ? `hat die Agentenregel „${title}“ entfernt` : 'hat eine Agentenregel entfernt'),
},
expensifyCardRule: {
actionVerb: {block: 'blockiert', allow: 'erlaubt'},
amountOperator: {over: 'über', under: 'unter'},
Expand Down
11 changes: 11 additions & 0 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8202,6 +8202,12 @@ const translations = {
emptySuggestionsTitle: 'No suggestions available',
emptySuggestionsSubtitle: 'Try writing your own rule.',
gotIt: 'Got it',
applyOffer: {
message: ({ruleTitle, count}: {ruleTitle: string; count: number}) =>
`offered to apply the agent rule "${ruleTitle}" to ${count} open ${count === 1 ? 'expense' : 'expenses'}. Want it applied retroactively?`,
applyButtonText: 'Apply retroactively',
dismissButtonText: "Don't apply",
},
},
},
planTypePage: {
Expand Down Expand Up @@ -8467,6 +8473,11 @@ const translations = {
updatedCardFeedLiability: (feedName: string, enabled: boolean) => `${enabled ? 'enabled' : 'disabled'} cardholders to delete card transactions for card feed "${feedName}"`,
updatedCardFeedStatementPeriod: (feedName: string, newValue?: string, previousValue?: string) =>
`changed card feed "${feedName}" statement period end day${newValue ? ` to "${newValue}"` : ''}${previousValue ? ` (previously "${previousValue}")` : ''}`,
agentRule: {
added: ({title, prompt}: {title: string; prompt: string}) => (title ? `added the agent rule "${title}": ${prompt}` : `added an agent rule: ${prompt}`),
updated: ({title, prompt}: {title: string; prompt: string}) => (title ? `updated the agent rule "${title}" to: ${prompt}` : `updated an agent rule to: ${prompt}`),
deleted: ({title}: {title: string}) => (title ? `removed the agent rule "${title}"` : 'removed an agent rule'),
},
expensifyCardRule: {
actionVerb: {
block: 'blocked',
Expand Down
11 changes: 11 additions & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7788,6 +7788,12 @@ El plan Controlar empieza en 9 $ por miembro activo al mes.`,
describeRuleForConcierge: 'Describe tu regla y Concierge la creará',
gotIt: 'Entendido',
createRule: 'Crear regla',
applyOffer: {
message: ({ruleTitle, count}: {ruleTitle: string; count: number}) =>
`ofreció aplicar la regla de agente "${ruleTitle}" a ${count} ${count === 1 ? 'gasto abierto' : 'gastos abiertos'}. ¿Quieres aplicarla retroactivamente?`,
applyButtonText: 'Aplicar retroactivamente',
dismissButtonText: 'No aplicar',
},
},
tabs: {
general: 'General',
Expand Down Expand Up @@ -8160,6 +8166,11 @@ El plan Controlar empieza en 9 $ por miembro activo al mes.`,
`${enabled ? 'habilitó' : 'deshabilitó'} que los titulares de tarjetas eliminen transacciones de la fuente de tarjetas "${feedName}"`,
updatedCardFeedStatementPeriod: (feedName: string, newValue?: string, previousValue?: string) =>
`cambió el día de cierre del período de estado de cuenta de la fuente de tarjetas "${feedName}"${newValue ? ` a "${newValue}"` : ''}${previousValue ? ` (previamente "${previousValue}")` : ''}`,
agentRule: {
added: ({title, prompt}: {title: string; prompt: string}) => (title ? `añadió la regla de agente «${title}»: ${prompt}` : `añadió una regla de agente: ${prompt}`),
updated: ({title, prompt}: {title: string; prompt: string}) => (title ? `actualizó la regla del agente «${title}» a: ${prompt}` : `actualizó una regla de agente a: ${prompt}`),
deleted: ({title}: {title: string}) => (title ? `eliminó la regla de agente «${title}»` : 'eliminó una regla de agente'),
},
expensifyCardRule: {
actionVerb: {block: 'bloqueado', allow: 'permitido'},
amountOperator: {over: 'más de', under: 'debajo'},
Expand Down
12 changes: 12 additions & 0 deletions src/languages/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7909,6 +7909,12 @@ Ajoutez davantage de règles de dépenses pour protéger la trésorerie de l’e
describeRuleForConcierge: 'Décrivez votre règle et Concierge la créera',
gotIt: 'Compris',
createRule: 'Créer une règle',
applyOffer: {
message: ({ruleTitle, count}: {ruleTitle: string; count: number}) =>
`a proposé d’appliquer la règle d’agent « ${ruleTitle} » à ${count} ${count === 1 ? 'dépense ouverte' : 'dépenses ouvertes'}. Voulez-vous l’appliquer rétroactivement ?`,
applyButtonText: 'Appliquer rétroactivement',
dismissButtonText: 'Ne pas appliquer',
},
},
tabs: {
general: 'Général',
Expand Down Expand Up @@ -8714,6 +8720,12 @@ Ajoutez davantage de règles de dépenses pour protéger la trésorerie de l’e
updatedMccGroupCategory: ({mccGroupName, oldCategory, newCategory}: {mccGroupName: string; oldCategory: string; newCategory: string}) =>
`a modifié la catégorie de dépense par défaut pour « ${mccGroupName} » en « ${newCategory} » (auparavant « ${oldCategory} »)`,
updatedRequireCompanyCards: ({enabled}: {enabled: boolean}) => `${enabled ? 'activé' : 'désactivé'} l’exigence d’achats par carte d’entreprise`,
agentRule: {
added: ({title, prompt}: {title: string; prompt: string}) => (title ? `a ajouté la règle d’agent « ${title} » : ${prompt}` : `a ajouté une règle d’agent : ${prompt}`),
updated: ({title, prompt}: {title: string; prompt: string}) =>
title ? `a mis à jour la règle d’agent « ${title} » en : ${prompt}` : `a mis à jour une règle d’agent en : ${prompt}`,
deleted: ({title}: {title: string}) => (title ? `a supprimé la règle d’agent « ${title} »` : 'a supprimé une règle d’agent'),
},
expensifyCardRule: {
actionVerb: {block: 'bloqué', allow: 'autorisé'},
amountOperator: {over: 'terminé', under: 'sous'},
Expand Down
12 changes: 12 additions & 0 deletions src/languages/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7854,6 +7854,12 @@ Aggiungi altre regole di spesa per proteggere il flusso di cassa aziendale.`,
describeRuleForConcierge: 'Descrivi la tua regola e Concierge la creerà',
gotIt: 'Capito',
createRule: 'Crea regola',
applyOffer: {
message: ({ruleTitle, count}: {ruleTitle: string; count: number}) =>
`ha proposto di applicare la regola agente "${ruleTitle}" a ${count} ${count === 1 ? 'spesa aperta' : 'spese aperte'}. Vuoi applicarla retroattivamente?`,
applyButtonText: 'Applica retroattivamente',
dismissButtonText: 'Non applicare',
},
},
tabs: {
general: 'Generale',
Expand Down Expand Up @@ -8653,6 +8659,12 @@ Aggiungi altre regole di spesa per proteggere il flusso di cassa aziendale.`,
updatedMccGroupCategory: ({mccGroupName, oldCategory, newCategory}: {mccGroupName: string; oldCategory: string; newCategory: string}) =>
`ha modificato la categoria di spesa predefinita per "${mccGroupName}" in "${newCategory}" (precedentemente "${oldCategory}")`,
updatedRequireCompanyCards: ({enabled}: {enabled: boolean}) => `${enabled ? 'abilitato' : 'disabilitato'} il requisito per gli acquisti con carta aziendale`,
agentRule: {
added: ({title, prompt}: {title: string; prompt: string}) => (title ? `ha aggiunto la regola dell’agente "${title}": ${prompt}` : `ha aggiunto una regola agente: ${prompt}`),
updated: ({title, prompt}: {title: string; prompt: string}) =>
title ? `ha aggiornato la regola dell’agente "${title}" in: ${prompt}` : `ha aggiornato una regola dell’agente in: ${prompt}`,
deleted: ({title}: {title: string}) => (title ? `ha rimosso la regola agente "${title}"` : 'ha rimosso una regola agente'),
},
expensifyCardRule: {
actionVerb: {block: 'bloccato', allow: 'consentito'},
amountOperator: {over: 'terminato', under: 'sotto'},
Expand Down
12 changes: 12 additions & 0 deletions src/languages/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7758,6 +7758,12 @@ ${reportName}`,
describeRuleForConcierge: 'ルールの内容を入力すると、Concierge が自動作成します',
gotIt: '了解しました',
createRule: 'ルールを作成',
applyOffer: {
message: ({ruleTitle, count}: {ruleTitle: string; count: number}) =>
`エージェントルール「${ruleTitle}」を${count}件の未処理の経費に適用することを提案しました。遡って適用しますか?`,
applyButtonText: '遡って適用',
dismissButtonText: '適用しない',
},
},
tabs: {
general: '一般',
Expand Down Expand Up @@ -8542,6 +8548,12 @@ ${reportName}`,
updatedMccGroupCategory: ({mccGroupName, oldCategory, newCategory}: {mccGroupName: string; oldCategory: string; newCategory: string}) =>
`「${mccGroupName}」のデフォルト支出カテゴリーを「${newCategory}」に変更しました(以前は「${oldCategory}」)`,
updatedRequireCompanyCards: ({enabled}: {enabled: boolean}) => `${enabled ? '有効' : '無効'} の法人カード購入要件`,
agentRule: {
added: ({title, prompt}: {title: string; prompt: string}) => (title ? `エージェントルール「${title}」を追加しました:${prompt}` : `エージェントルールを追加しました:${prompt}`),
updated: ({title, prompt}: {title: string; prompt: string}) =>
title ? `エージェントルール「${title}」を次の内容に更新しました:${prompt}` : `エージェントルールを次の内容に更新しました:${prompt}`,
deleted: ({title}: {title: string}) => (title ? `エージェントルール「${title}」を削除しました` : 'エージェントルールを削除しました'),
},
expensifyCardRule: {
actionVerb: {block: 'ブロック済み', allow: '許可済み'},
amountOperator: {
Expand Down
12 changes: 12 additions & 0 deletions src/languages/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7835,6 +7835,12 @@ er bestedingsregels toe om de kasstroom van het bedrijf te beschermen.`,
describeRuleForConcierge: 'Beschrijf je regel en Concierge bouwt hem voor je',
gotIt: 'Begrepen',
createRule: 'Regel maken',
applyOffer: {
message: ({ruleTitle, count}: {ruleTitle: string; count: number}) =>
`bood aan de agentregel "${ruleTitle}" toe te passen op ${count} openstaande ${count === 1 ? 'uitgave' : 'uitgaven'}. Wil je deze met terugwerkende kracht toepassen?`,
applyButtonText: 'Met terugwerkende kracht toepassen',
dismissButtonText: 'Niet toepassen',
},
},
tabs: {
general: 'Algemeen',
Expand Down Expand Up @@ -8627,6 +8633,12 @@ er bestedingsregels toe om de kasstroom van het bedrijf te beschermen.`,
updatedMccGroupCategory: ({mccGroupName, oldCategory, newCategory}: {mccGroupName: string; oldCategory: string; newCategory: string}) =>
`heeft de standaarduitgavencategorie voor ‘${mccGroupName}’ gewijzigd in ‘${newCategory}’ (voorheen ‘${oldCategory}’)`,
updatedRequireCompanyCards: ({enabled}: {enabled: boolean}) => `vereiste ${enabled ? 'ingeschakeld' : 'uitgeschakeld'} voor bedrijfskaarttransacties`,
agentRule: {
added: ({title, prompt}: {title: string; prompt: string}) => (title ? `heeft de agentregel "${title}" toegevoegd: ${prompt}` : `heeft een agentregel toegevoegd: ${prompt}`),
updated: ({title, prompt}: {title: string; prompt: string}) =>
title ? `heeft de agentregel „${title}” bijgewerkt naar: ${prompt}` : `heeft een agentregel bijgewerkt naar: ${prompt}`,
deleted: ({title}: {title: string}) => (title ? `heeft de agentregel ‘${title}’ verwijderd` : 'heeft een agentregel verwijderd'),
},
expensifyCardRule: {
actionVerb: {block: 'geblokkeerd', allow: 'toegestaan'},
amountOperator: {over: 'over', under: 'onder'},
Expand Down
11 changes: 11 additions & 0 deletions src/languages/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7815,6 +7815,12 @@ Dodaj więcej zasad wydatków, żeby chronić płynność finansową firmy.`,
describeRuleForConcierge: 'Opisz swoją regułę, a Concierge ją utworzy',
gotIt: 'Jasne',
createRule: 'Utwórz regułę',
applyOffer: {
message: ({ruleTitle, count}: {ruleTitle: string; count: number}) =>
`zaproponował zastosowanie reguły agenta „${ruleTitle}” do ${count} otwartych wydatków. Zastosować ją wstecznie?`,
applyButtonText: 'Zastosuj wstecznie',
dismissButtonText: 'Nie stosuj',
},
},
tabs: {
general: 'Ogólne',
Expand Down Expand Up @@ -8607,6 +8613,11 @@ Dodaj więcej zasad wydatków, żeby chronić płynność finansową firmy.`,
updatedMccGroupCategory: ({mccGroupName, oldCategory, newCategory}: {mccGroupName: string; oldCategory: string; newCategory: string}) =>
`zmieniono domyślną kategorię wydatków dla „${mccGroupName}” na „${newCategory}” (poprzednio „${oldCategory}”)`,
updatedRequireCompanyCards: ({enabled}: {enabled: boolean}) => `${enabled ? 'włączone' : 'wyłączone'} wymóg dotyczący zakupów kartą służbową`,
agentRule: {
added: ({title, prompt}: {title: string; prompt: string}) => (title ? `dodał(a) regułę agenta „${title}”: ${prompt}` : `dodano regułę agenta: ${prompt}`),
updated: ({title, prompt}: {title: string; prompt: string}) => (title ? `zaktualizowano regułę agenta „${title}” na: ${prompt}` : `zaktualizowano regułę agenta na: ${prompt}`),
deleted: ({title}: {title: string}) => (title ? `usunął(-ę) regułę agenta „${title}”` : 'usunięto regułę agenta'),
},
expensifyCardRule: {
actionVerb: {block: 'zablokowane', allow: 'dozwolone'},
amountOperator: {over: 'ponad', under: 'pod'},
Expand Down
12 changes: 12 additions & 0 deletions src/languages/pt-BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7832,6 +7832,12 @@ Adicione mais regras de gasto para proteger o fluxo de caixa da empresa.`,
describeRuleForConcierge: 'Descreva sua regra e o Concierge vai criá-la',
gotIt: 'Entendi',
createRule: 'Criar regra',
applyOffer: {
message: ({ruleTitle, count}: {ruleTitle: string; count: number}) =>
`ofereceu aplicar a regra de agente "${ruleTitle}" a ${count} ${count === 1 ? 'despesa aberta' : 'despesas abertas'}. Quer aplicá-la retroativamente?`,
applyButtonText: 'Aplicar retroativamente',
dismissButtonText: 'Não aplicar',
},
},
tabs: {
general: 'Geral',
Expand Down Expand Up @@ -8619,6 +8625,12 @@ Adicione mais regras de gasto para proteger o fluxo de caixa da empresa.`,
updatedMccGroupCategory: ({mccGroupName, oldCategory, newCategory}: {mccGroupName: string; oldCategory: string; newCategory: string}) =>
`alterou a categoria de gasto padrão de "${mccGroupName}" para "${newCategory}" (antes "${oldCategory}")`,
updatedRequireCompanyCards: ({enabled}: {enabled: boolean}) => `${enabled ? 'ativado' : 'desativado'} o requisito de compras com cartão corporativo`,
agentRule: {
added: ({title, prompt}: {title: string; prompt: string}) => (title ? `adicionou a regra de agente "${title}": ${prompt}` : `adicionou uma regra de agente: ${prompt}`),
updated: ({title, prompt}: {title: string; prompt: string}) =>
title ? `atualizou a regra do agente "${title}" para: ${prompt}` : `atualizou uma regra de agente para: ${prompt}`,
deleted: ({title}: {title: string}) => (title ? `removeu a regra de agente "${title}"` : 'removeu uma regra de agente'),
},
expensifyCardRule: {
actionVerb: {block: 'bloqueado', allow: 'permitido'},
amountOperator: {over: 'acima', under: 'abaixo'},
Expand Down
Loading
Loading