Skip to content

Add policy copy change log messages#94189

Draft
shubham1206agra wants to merge 3 commits into
Expensify:mainfrom
shubham1206agra:copy-policy-logs
Draft

Add policy copy change log messages#94189
shubham1206agra wants to merge 3 commits into
Expensify:mainfrom
shubham1206agra:copy-policy-logs

Conversation

@shubham1206agra

Copy link
Copy Markdown
Contributor

Explanation of Change

Fixed Issues

$ #88675

Tests

  • Verify that no errors appear in the JS console

Offline tests

Same as Tests

QA Steps

Same as Tests

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I verified there are no new alerts related to the canBeMissing param for useOnyx
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
      • If any non-english text was added/modified, I used JaimeGPT to get English > Spanish translation. I then posted it in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

@melvin-bot

melvin-bot Bot commented Jun 22, 2026

Copy link
Copy Markdown

Hey, I noticed you changed src/languages/en.ts in a PR from a fork. For security reasons, translations are not generated automatically for PRs from forks.

If you want to automatically generate translations for other locales, an Expensify employee will have to:

  1. Look at the code and make sure there are no malicious changes.
  2. Run the Generate static translations GitHub workflow. If you have write access and the K2 extension, you can simply click: [this button]

Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running:

npx ts-node ./scripts/generateTranslations.ts --help

Typically, you'd want to translate only what you changed by running npx ts-node ./scripts/generateTranslations.ts --compare-ref main

@OSBotify

Copy link
Copy Markdown
Contributor

🦜 Polyglot Parrot! 🦜

Squawk! Looks like you added some shiny new English strings. Allow me to parrot them back to you in other tongues:

View the translation diff
diff --git a/src/languages/de.ts b/src/languages/de.ts
index 36a66b1083b..fa697bb1ff5 100644
--- a/src/languages/de.ts
+++ b/src/languages/de.ts
@@ -8287,6 +8287,25 @@ Fügen Sie weitere Ausgabelimits hinzu, um den Cashflow Ihres Unternehmens zu sc
         customUnitRateDateRangeFrom: (date: string) => `ab dem ${date}`,
         customUnitRateDateRangeUntilEnd: (date: string) => `bis ${date}`,
         customUnitRateDateRangeAllDates: () => `für alle Daten`,
+        policyCopy: {
+            overview: (sourcePolicyName: string) => `Übersicht von ${sourcePolicyName} kopiert`,
+            employees: (sourcePolicyName: string) => `Mitglieder von ${sourcePolicyName} kopiert`,
+            reportFields: {one: `1 Berichtsfeld von ${sourcePolicyName} kopiert`, other: (count: number) => `${count} Berichtsfelder von ${sourcePolicyName} kopiert`},
+            accounting: (sourcePolicyName: string) => `Buchhaltungseinstellungen von ${sourcePolicyName} kopiert`,
+            receiptPartners: (sourcePolicyName: string) => `Einstellungen für Belegpartner von ${sourcePolicyName} kopiert`,
+            hr: (sourcePolicyName: string) => `HR-Einstellungen von ${sourcePolicyName} kopiert`,
+            categories: {one: `1 Kategorie von ${sourcePolicyName} kopiert`, other: (count: number) => `${count} Kategorien von ${sourcePolicyName} kopiert`},
+            tags: {one: `1 Tag von ${sourcePolicyName} kopiert`, other: (count: number) => `${count} Tags von ${sourcePolicyName} kopiert`},
+            taxes: {one: `1 Steuersatz aus ${sourcePolicyName} kopiert`, other: (count: number) => `${count} Steuersätze von ${sourcePolicyName} kopiert`},
+            timeTracking: (sourcePolicyName: string) => `Zeiterfassungseinstellungen von ${sourcePolicyName} kopiert`,
+            workflows: (sourcePolicyName: string) => `Workflows von ${sourcePolicyName} kopiert`,
+            rules: (sourcePolicyName: string) => `Kopierte Regeln von ${sourcePolicyName}`,
+            codingRules: {one: `1 Händlerregel von ${sourcePolicyName} kopiert`, other: (count: number) => `${count} Händlerregeln von ${sourcePolicyName} kopiert`},
+            distanceRates: {one: `1 Entfernungssatz aus ${sourcePolicyName} kopiert`, other: (count: number) => `${count} Entfernungssätze aus ${sourcePolicyName} kopiert`},
+            perDiem: {one: `1 Pauschale von ${sourcePolicyName} kopiert`, other: (count: number) => `${count} Pauschalsätze pro Tag von ${sourcePolicyName} kopiert`},
+            invoices: (sourcePolicyName: string) => `Rechnungseinstellungen von ${sourcePolicyName} kopiert`,
+            travel: (sourcePolicyName: string) => `Reiseeinstellungen von ${sourcePolicyName} kopiert`,
+        },
     },
     roomMembersPage: {
         memberNotFound: 'Mitglied nicht gefunden.',
@@ -9819,7 +9838,6 @@ Hier ist ein *Testbeleg*, um dir zu zeigen, wie es funktioniert:`,
         pdfFailedBody: 'Your file could not be generated. Try again, or reach out to Concierge for help.',
         readyPartialBody: ({count, total}: {count: number; total: number}) =>
             `${count} of ${total} reports exported. If it didn't automatically download, use the button below. See which reports failed in <concierge-link>Concierge</concierge-link>.`,
-
         close: 'Close',
     },
     domain: {
diff --git a/src/languages/es.ts b/src/languages/es.ts
index f85775853ca..2331076f012 100644
--- a/src/languages/es.ts
+++ b/src/languages/es.ts
@@ -8077,6 +8077,25 @@ ${amount} para ${merchant} - ${date}`,
         customUnitRateDateRangeFrom: (date: string) => `desde ${date}`,
         customUnitRateDateRangeUntilEnd: (date: string) => `hasta ${date}`,
         customUnitRateDateRangeAllDates: () => `para todas las fechas`,
+        policyCopy: {
+            overview: (sourcePolicyName: string) => `copió la descripción general de ${sourcePolicyName}`,
+            employees: (sourcePolicyName: string) => `copió miembros de ${sourcePolicyName}`,
+            reportFields: {one: `se copió 1 campo de informe desde ${sourcePolicyName}`, other: (count: number) => `copió ${count} campos de informe de ${sourcePolicyName}`},
+            accounting: (sourcePolicyName: string) => `copió la configuración de contabilidad de ${sourcePolicyName}`,
+            receiptPartners: (sourcePolicyName: string) => `copió la configuración de socios de recibos de ${sourcePolicyName}`,
+            hr: (sourcePolicyName: string) => `copió la configuración de RR. HH. de ${sourcePolicyName}`,
+            categories: {one: `copió 1 categoría de ${sourcePolicyName}`, other: (count: number) => `copió ${count} categorías de ${sourcePolicyName}`},
+            tags: {one: `se copió 1 etiqueta de ${sourcePolicyName}`, other: (count: number) => `copió ${count} etiquetas de ${sourcePolicyName}`},
+            taxes: {one: `se copió 1 tasa de impuestos de ${sourcePolicyName}`, other: (count: number) => `copió ${count} tasas de impuestos de ${sourcePolicyName}`},
+            timeTracking: (sourcePolicyName: string) => `copió la configuración de registro de tiempo de ${sourcePolicyName}`,
+            workflows: (sourcePolicyName: string) => `copió los flujos de trabajo de ${sourcePolicyName}`,
+            rules: (sourcePolicyName: string) => `reglas copiadas de ${sourcePolicyName}`,
+            codingRules: {one: `copió 1 regla de comercio de ${sourcePolicyName}`, other: (count: number) => `copió ${count} reglas de comercio de ${sourcePolicyName}`},
+            distanceRates: {one: `se copió 1 tarifa de distancia de ${sourcePolicyName}`, other: (count: number) => `copió ${count} tarifas por distancia de ${sourcePolicyName}`},
+            perDiem: {one: `copió 1 Per diem Tasa de ${sourcePolicyName}`, other: (count: number) => `copió ${count} tasas de per diem de ${sourcePolicyName}`},
+            invoices: (sourcePolicyName: string) => `copió la configuración de facturas de ${sourcePolicyName}`,
+            travel: (sourcePolicyName: string) => `copió la configuración de viaje de ${sourcePolicyName}`,
+        },
     },
     roomMembersPage: {
         memberNotFound: 'Miembro no encontrado.',
diff --git a/src/languages/fr.ts b/src/languages/fr.ts
index af7a88cf0c8..cb4294787a8 100644
--- a/src/languages/fr.ts
+++ b/src/languages/fr.ts
@@ -8322,6 +8322,25 @@ Ajoutez davantage de règles de dépenses pour protéger la trésorerie de l’e
         customUnitRateDateRangeFrom: (date: string) => `à partir du ${date}`,
         customUnitRateDateRangeUntilEnd: (date: string) => `jusqu’au ${date}`,
         customUnitRateDateRangeAllDates: () => `pour toutes les dates`,
+        policyCopy: {
+            overview: (sourcePolicyName: string) => `aperçu copié depuis ${sourcePolicyName}`,
+            employees: (sourcePolicyName: string) => `a copié les membres depuis ${sourcePolicyName}`,
+            reportFields: {one: `1 champ de note de frais copié depuis ${sourcePolicyName}`, other: (count: number) => `${count} champs de note de frais copiés depuis ${sourcePolicyName}`},
+            accounting: (sourcePolicyName: string) => `paramètres comptables copiés depuis ${sourcePolicyName}`,
+            receiptPartners: (sourcePolicyName: string) => `a copié les paramètres de reçu partenaire depuis ${sourcePolicyName}`,
+            hr: (sourcePolicyName: string) => `paramètres RH copiés depuis ${sourcePolicyName}`,
+            categories: {one: `1 catégorie copiée depuis ${sourcePolicyName}`, other: (count: number) => `${count} catégories copiées depuis ${sourcePolicyName}`},
+            tags: {one: `1 tag copié depuis ${sourcePolicyName}`, other: (count: number) => `${count} tags copiés depuis ${sourcePolicyName}`},
+            taxes: {one: `1 taux de taxe copié depuis ${sourcePolicyName}`, other: (count: number) => `a copié ${count} taux de taxe depuis ${sourcePolicyName}`},
+            timeTracking: (sourcePolicyName: string) => `paramètres de suivi du temps copiés depuis ${sourcePolicyName}`,
+            workflows: (sourcePolicyName: string) => `workflows copiés depuis ${sourcePolicyName}`,
+            rules: (sourcePolicyName: string) => `règles copiées depuis ${sourcePolicyName}`,
+            codingRules: {one: `1 règle de commerçant copiée depuis ${sourcePolicyName}`, other: (count: number) => `a copié ${count} règles de commerçant depuis ${sourcePolicyName}`},
+            distanceRates: {one: `1 taux de distance copié depuis ${sourcePolicyName}`, other: (count: number) => `${count} taux de distance copiés depuis ${sourcePolicyName}`},
+            perDiem: {one: `a copié 1 taux de per diem depuis ${sourcePolicyName}`, other: (count: number) => `a copié ${count} taux journaliers de ${sourcePolicyName}`},
+            invoices: (sourcePolicyName: string) => `paramètres de facturation copiés depuis ${sourcePolicyName}`,
+            travel: (sourcePolicyName: string) => `paramètres de déplacement copiés depuis ${sourcePolicyName}`,
+        },
     },
     roomMembersPage: {
         memberNotFound: 'Membre introuvable.',
@@ -9851,7 +9870,6 @@ Voici un *reçu test* pour vous montrer comment ça fonctionne :`,
         pdfFailedBody: 'Your file could not be generated. Try again, or reach out to Concierge for help.',
         readyPartialBody: ({count, total}: {count: number; total: number}) =>
             `${count} of ${total} reports exported. If it didn't automatically download, use the button below. See which reports failed in <concierge-link>Concierge</concierge-link>.`,
-
         close: 'Close',
     },
     domain: {
diff --git a/src/languages/it.ts b/src/languages/it.ts
index 01e55b12951..b8f19bddcf0 100644
--- a/src/languages/it.ts
+++ b/src/languages/it.ts
@@ -8277,6 +8277,25 @@ Aggiungi altre regole di spesa per proteggere il flusso di cassa aziendale.`,
         customUnitRateDateRangeFrom: (date: string) => `dal ${date}`,
         customUnitRateDateRangeUntilEnd: (date: string) => `fino al ${date}`,
         customUnitRateDateRangeAllDates: () => `per tutte le date`,
+        policyCopy: {
+            overview: (sourcePolicyName: string) => `panoramica copiata da ${sourcePolicyName}`,
+            employees: (sourcePolicyName: string) => `ha copiato i membri da ${sourcePolicyName}`,
+            reportFields: {one: `copiato 1 campo del report da ${sourcePolicyName}`, other: (count: number) => `copiati ${count} campi del report da ${sourcePolicyName}`},
+            accounting: (sourcePolicyName: string) => `impostazioni contabili copiate da ${sourcePolicyName}`,
+            receiptPartners: (sourcePolicyName: string) => `ha copiato le impostazioni del partner di ricevute da ${sourcePolicyName}`,
+            hr: (sourcePolicyName: string) => `impostazioni HR copiate da ${sourcePolicyName}`,
+            categories: {one: `copiata 1 categoria da ${sourcePolicyName}`, other: (count: number) => `copiate ${count} categorie da ${sourcePolicyName}`},
+            tags: {one: `copiato 1 tag da ${sourcePolicyName}`, other: (count: number) => `copiati ${count} tag da ${sourcePolicyName}`},
+            taxes: {one: `copiata 1 aliquota fiscale da ${sourcePolicyName}`, other: (count: number) => `copiate ${count} aliquote fiscali da ${sourcePolicyName}`},
+            timeTracking: (sourcePolicyName: string) => `ha copiato le impostazioni di rilevazione del tempo da ${sourcePolicyName}`,
+            workflows: (sourcePolicyName: string) => `ha copiato i flussi di lavoro da ${sourcePolicyName}`,
+            rules: (sourcePolicyName: string) => `regole copiate da ${sourcePolicyName}`,
+            codingRules: {one: `copiata 1 regola esercente da ${sourcePolicyName}`, other: (count: number) => `copiate ${count} regole esercente da ${sourcePolicyName}`},
+            distanceRates: {one: `copiata 1 tariffa chilometrica da ${sourcePolicyName}`, other: (count: number) => `copiate ${count} tariffe chilometriche da ${sourcePolicyName}`},
+            perDiem: {one: `copiata 1 indennità giornaliera da ${sourcePolicyName}`, other: (count: number) => `copiati ${count} tassi di diaria da ${sourcePolicyName}`},
+            invoices: (sourcePolicyName: string) => `impostazioni fattura copiate da ${sourcePolicyName}`,
+            travel: (sourcePolicyName: string) => `impostazioni di viaggio copiate da ${sourcePolicyName}`,
+        },
     },
     roomMembersPage: {
         memberNotFound: 'Membro non trovato.',
@@ -9807,7 +9826,6 @@ Ecco una *ricevuta di prova* per mostrarti come funziona:`,
         pdfFailedBody: 'Your file could not be generated. Try again, or reach out to Concierge for help.',
         readyPartialBody: ({count, total}: {count: number; total: number}) =>
             `${count} of ${total} reports exported. If it didn't automatically download, use the button below. See which reports failed in <concierge-link>Concierge</concierge-link>.`,
-
         close: 'Close',
     },
     domain: {
diff --git a/src/languages/ja.ts b/src/languages/ja.ts
index 38367d5cf09..5421ca86593 100644
--- a/src/languages/ja.ts
+++ b/src/languages/ja.ts
@@ -8178,6 +8178,25 @@ ${reportName}`,
         customUnitRateDateRangeFrom: (date: string) => `${date} から`,
         customUnitRateDateRangeUntilEnd: (date: string) => `${date}まで`,
         customUnitRateDateRangeAllDates: () => `すべての日付に対して`,
+        policyCopy: {
+            overview: (sourcePolicyName: string) => `${sourcePolicyName} から概要をコピーしました`,
+            employees: (sourcePolicyName: string) => `${sourcePolicyName} からメンバーをコピーしました`,
+            reportFields: {one: `${sourcePolicyName} からレポート項目を 1 件コピーしました`, other: (count: number) => `${sourcePolicyName} からレポート項目を ${count} 件コピーしました`},
+            accounting: (sourcePolicyName: string) => `${sourcePolicyName} から会計設定をコピーしました`,
+            receiptPartners: (sourcePolicyName: string) => `${sourcePolicyName} から領収書パートナー設定をコピーしました`,
+            hr: (sourcePolicyName: string) => `${sourcePolicyName} から人事設定をコピーしました`,
+            categories: {one: `${sourcePolicyName} からカテゴリを 1 件コピーしました`, other: (count: number) => `${sourcePolicyName} から ${count} 件のカテゴリをコピーしました`},
+            tags: {one: `${sourcePolicyName} からタグを 1 件コピーしました`, other: (count: number) => `${sourcePolicyName} から ${count} 個のタグをコピーしました`},
+            taxes: {one: `${sourcePolicyName} から税率を 1 件コピーしました`, other: (count: number) => `${sourcePolicyName} から税率を ${count} 件コピーしました`},
+            timeTracking: (sourcePolicyName: string) => `${sourcePolicyName} からタイムトラッキング設定をコピーしました`,
+            workflows: (sourcePolicyName: string) => `${sourcePolicyName} からワークフローをコピーしました`,
+            rules: (sourcePolicyName: string) => `${sourcePolicyName} からルールをコピーしました`,
+            codingRules: {one: `${sourcePolicyName} から取引先ルールを 1 件コピーしました`, other: (count: number) => `${sourcePolicyName} から ${count} 件の取引先ルールをコピーしました`},
+            distanceRates: {one: `${sourcePolicyName} から距離レートを1件コピーしました`, other: (count: number) => `${sourcePolicyName} から距離レートを ${count} 件コピーしました`},
+            perDiem: {one: `${sourcePolicyName} から日当レートを1件コピーしました`, other: (count: number) => `${sourcePolicyName} から日当レートを ${count} 件コピーしました`},
+            invoices: (sourcePolicyName: string) => `${sourcePolicyName} から請求書の設定をコピーしました`,
+            travel: (sourcePolicyName: string) => `${sourcePolicyName} から出張設定をコピーしました`,
+        },
     },
     roomMembersPage: {
         memberNotFound: 'メンバーが見つかりません。',
@@ -9684,7 +9703,6 @@ ${reportName}`,
         pdfFailedBody: 'Your file could not be generated. Try again, or reach out to Concierge for help.',
         readyPartialBody: ({count, total}: {count: number; total: number}) =>
             `${count} of ${total} reports exported. If it didn't automatically download, use the button below. See which reports failed in <concierge-link>Concierge</concierge-link>.`,
-
         close: 'Close',
     },
     domain: {
diff --git a/src/languages/nl.ts b/src/languages/nl.ts
index fa81b677bb7..631e3859730 100644
--- a/src/languages/nl.ts
+++ b/src/languages/nl.ts
@@ -8244,6 +8244,25 @@ er bestedingsregels toe om de kasstroom van het bedrijf te beschermen.`,
         customUnitRateDateRangeFrom: (date: string) => `vanaf ${date}`,
         customUnitRateDateRangeUntilEnd: (date: string) => `tot ${date}`,
         customUnitRateDateRangeAllDates: () => `voor alle data`,
+        policyCopy: {
+            overview: (sourcePolicyName: string) => `overzicht gekopieerd van ${sourcePolicyName}`,
+            employees: (sourcePolicyName: string) => `leden gekopieerd van ${sourcePolicyName}`,
+            reportFields: {one: `1 rapportveld gekopieerd van ${sourcePolicyName}`, other: (count: number) => `${count} rapportvelden gekopieerd van ${sourcePolicyName}`},
+            accounting: (sourcePolicyName: string) => `boekhoudinstellingen gekopieerd van ${sourcePolicyName}`,
+            receiptPartners: (sourcePolicyName: string) => `instelling bonpartner gekopieerd van ${sourcePolicyName}`,
+            hr: (sourcePolicyName: string) => `HR-instellingen gekopieerd van ${sourcePolicyName}`,
+            categories: {one: `1 categorie gekopieerd van ${sourcePolicyName}`, other: (count: number) => `${count} categorieën gekopieerd van ${sourcePolicyName}`},
+            tags: {one: `1 label gekopieerd van ${sourcePolicyName}`, other: (count: number) => `${count} tags gekopieerd van ${sourcePolicyName}`},
+            taxes: {one: `1 belastingtarief gekopieerd van ${sourcePolicyName}`, other: (count: number) => `heeft ${count} btw-tarieven gekopieerd van ${sourcePolicyName}`},
+            timeTracking: (sourcePolicyName: string) => `tijdregistratie-instellingen gekopieerd van ${sourcePolicyName}`,
+            workflows: (sourcePolicyName: string) => `gekopieerde workflows van ${sourcePolicyName}`,
+            rules: (sourcePolicyName: string) => `regels gekopieerd van ${sourcePolicyName}`,
+            codingRules: {one: `1 leveranciersregel gekopieerd van ${sourcePolicyName}`, other: (count: number) => `heeft ${count} leveranciersregels gekopieerd van ${sourcePolicyName}`},
+            distanceRates: {one: `1 kilometervergoeding gekopieerd van ${sourcePolicyName}`, other: (count: number) => `heeft ${count} kilometertarieven gekopieerd van ${sourcePolicyName}`},
+            perDiem: {one: `1 dagvergoeding gekopieerd uit ${sourcePolicyName}`, other: (count: number) => `${count} dagvergoedingen gekopieerd van ${sourcePolicyName}`},
+            invoices: (sourcePolicyName: string) => `factuurinstellingen gekopieerd van ${sourcePolicyName}`,
+            travel: (sourcePolicyName: string) => `reiskosteninstellingen gekopieerd van ${sourcePolicyName}`,
+        },
     },
     roomMembersPage: {
         memberNotFound: 'Lid niet gevonden.',
@@ -9773,7 +9792,6 @@ Hier is een *proefbon* om je te laten zien hoe het werkt:`,
         pdfFailedBody: 'Your file could not be generated. Try again, or reach out to Concierge for help.',
         readyPartialBody: ({count, total}: {count: number; total: number}) =>
             `${count} of ${total} reports exported. If it didn't automatically download, use the button below. See which reports failed in <concierge-link>Concierge</concierge-link>.`,
-
         close: 'Close',
     },
     domain: {
diff --git a/src/languages/pl.ts b/src/languages/pl.ts
index b76567afc41..f30606c20bf 100644
--- a/src/languages/pl.ts
+++ b/src/languages/pl.ts
@@ -8237,6 +8237,25 @@ Dodaj więcej zasad wydatków, żeby chronić płynność finansową firmy.`,
         customUnitRateDateRangeFrom: (date: string) => `od ${date}`,
         customUnitRateDateRangeUntilEnd: (date: string) => `do ${date}`,
         customUnitRateDateRangeAllDates: () => `dla wszystkich dat`,
+        policyCopy: {
+            overview: (sourcePolicyName: string) => `skopiowano podsumowanie z ${sourcePolicyName}`,
+            employees: (sourcePolicyName: string) => `skopiowano członków z ${sourcePolicyName}`,
+            reportFields: {one: `skopiowano 1 pole raportu z ${sourcePolicyName}`, other: (count: number) => `skopiowano ${count} pola raportu z ${sourcePolicyName}`},
+            accounting: (sourcePolicyName: string) => `skopiowano ustawienia księgowe z ${sourcePolicyName}`,
+            receiptPartners: (sourcePolicyName: string) => `skopiowano ustawienia partnera paragonów z ${sourcePolicyName}`,
+            hr: (sourcePolicyName: string) => `skopiowano ustawienia HR z ${sourcePolicyName}`,
+            categories: {one: `skopiowano 1 kategorię z ${sourcePolicyName}`, other: (count: number) => `skopiowano ${count} kategorie z ${sourcePolicyName}`},
+            tags: {one: `skopiowano 1 znacznik z ${sourcePolicyName}`, other: (count: number) => `skopiowano ${count} tagów z ${sourcePolicyName}`},
+            taxes: {one: `skopiowano 1 stawkę podatku z ${sourcePolicyName}`, other: (count: number) => `skopiowano ${count} stawki podatkowe z ${sourcePolicyName}`},
+            timeTracking: (sourcePolicyName: string) => `skopiowano ustawienia śledzenia czasu z ${sourcePolicyName}`,
+            workflows: (sourcePolicyName: string) => `skopiowano schematy pracy z ${sourcePolicyName}`,
+            rules: (sourcePolicyName: string) => `skopiowano zasady z ${sourcePolicyName}`,
+            codingRules: {one: `skopiowano 1 regułę sprzedawcy z ${sourcePolicyName}`, other: (count: number) => `skopiowano ${count} reguł sprzedawcy z ${sourcePolicyName}`},
+            distanceRates: {one: `skopiowano 1 stawkę za dystans z ${sourcePolicyName}`, other: (count: number) => `skopiowano ${count} stawki za przejazd z ${sourcePolicyName}`},
+            perDiem: {one: `skopiowano 1 stawkę ryczałtową z ${sourcePolicyName}`, other: (count: number) => `skopiowano ${count} stawki diet z ${sourcePolicyName}`},
+            invoices: (sourcePolicyName: string) => `skopiowano ustawienia faktur z ${sourcePolicyName}`,
+            travel: (sourcePolicyName: string) => `skopiowano ustawienia podróży z ${sourcePolicyName}`,
+        },
     },
     roomMembersPage: {
         memberNotFound: 'Nie znaleziono członka.',
@@ -9758,7 +9777,6 @@ Oto *paragon testowy*, żeby pokazać Ci, jak to działa:`,
         pdfFailedBody: 'Your file could not be generated. Try again, or reach out to Concierge for help.',
         readyPartialBody: ({count, total}: {count: number; total: number}) =>
             `${count} of ${total} reports exported. If it didn't automatically download, use the button below. See which reports failed in <concierge-link>Concierge</concierge-link>.`,
-
         close: 'Close',
     },
     domain: {
diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts
index 2eff5a16621..78d81749383 100644
--- a/src/languages/pt-BR.ts
+++ b/src/languages/pt-BR.ts
@@ -8235,6 +8235,25 @@ Adicione mais regras de gasto para proteger o fluxo de caixa da empresa.`,
         customUnitRateDateRangeFrom: (date: string) => `de ${date}`,
         customUnitRateDateRangeUntilEnd: (date: string) => `até ${date}`,
         customUnitRateDateRangeAllDates: () => `para todas as datas`,
+        policyCopy: {
+            overview: (sourcePolicyName: string) => `visão geral copiada de ${sourcePolicyName}`,
+            employees: (sourcePolicyName: string) => `copiou membros de ${sourcePolicyName}`,
+            reportFields: {one: `copiou 1 campo de relatório de ${sourcePolicyName}`, other: (count: number) => `copiou ${count} campos de relatório de ${sourcePolicyName}`},
+            accounting: (sourcePolicyName: string) => `configurações de contabilidade copiadas de ${sourcePolicyName}`,
+            receiptPartners: (sourcePolicyName: string) => `configurações de parceiro de recibos copiadas de ${sourcePolicyName}`,
+            hr: (sourcePolicyName: string) => `copiou as configurações de RH de ${sourcePolicyName}`,
+            categories: {one: `copiou 1 categoria de ${sourcePolicyName}`, other: (count: number) => `copiou ${count} categorias de ${sourcePolicyName}`},
+            tags: {one: `copiou 1 etiqueta de ${sourcePolicyName}`, other: (count: number) => `copiou ${count} tags de ${sourcePolicyName}`},
+            taxes: {one: `copiou 1 alíquota de imposto de ${sourcePolicyName}`, other: (count: number) => `copiou ${count} taxas de imposto de ${sourcePolicyName}`},
+            timeTracking: (sourcePolicyName: string) => `copiou as configurações de controle de horas de ${sourcePolicyName}`,
+            workflows: (sourcePolicyName: string) => `fluxos de trabalho copiados de ${sourcePolicyName}`,
+            rules: (sourcePolicyName: string) => `regras copiadas de ${sourcePolicyName}`,
+            codingRules: {one: `copiou 1 regra de comerciante de ${sourcePolicyName}`, other: (count: number) => `copiou ${count} regras de comerciante de ${sourcePolicyName}`},
+            distanceRates: {one: `copiou 1 taxa de distância de ${sourcePolicyName}`, other: (count: number) => `copiou ${count} taxas de distância de ${sourcePolicyName}`},
+            perDiem: {one: `copiou 1 tarifa de diária de ${sourcePolicyName}`, other: (count: number) => `copiou ${count} taxas de diária de ${sourcePolicyName}`},
+            invoices: (sourcePolicyName: string) => `configurações de fatura copiadas de ${sourcePolicyName}`,
+            travel: (sourcePolicyName: string) => `configurações de viagem copiadas de ${sourcePolicyName}`,
+        },
     },
     roomMembersPage: {
         memberNotFound: 'Membro não encontrado.',
@@ -9762,7 +9781,6 @@ Aqui está um *comprovante de teste* para mostrar como funciona:`,
         pdfFailedBody: 'Your file could not be generated. Try again, or reach out to Concierge for help.',
         readyPartialBody: ({count, total}: {count: number; total: number}) =>
             `${count} of ${total} reports exported. If it didn't automatically download, use the button below. See which reports failed in <concierge-link>Concierge</concierge-link>.`,
-
         close: 'Close',
     },
     domain: {
diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts
index d16ae4fc4a4..071ff70e5fd 100644
--- a/src/languages/zh-hans.ts
+++ b/src/languages/zh-hans.ts
@@ -8016,6 +8016,25 @@ ${reportName}`,
         customUnitRateDateRangeFrom: (date: string) => `自 ${date} 起`,
         customUnitRateDateRangeUntilEnd: (date: string) => `直到 ${date}`,
         customUnitRateDateRangeAllDates: () => `适用于所有日期`,
+        policyCopy: {
+            overview: (sourcePolicyName: string) => `已从 ${sourcePolicyName} 复制概览`,
+            employees: (sourcePolicyName: string) => `已从 ${sourcePolicyName} 复制成员`,
+            reportFields: {one: `已从 ${sourcePolicyName} 复制 1 个报表字段`, other: (count: number) => `已从 ${sourcePolicyName} 复制了 ${count} 个报表字段`},
+            accounting: (sourcePolicyName: string) => `已从 ${sourcePolicyName} 复制会计设置`,
+            receiptPartners: (sourcePolicyName: string) => `已从 ${sourcePolicyName} 复制收据合作方设置`,
+            hr: (sourcePolicyName: string) => `已从 ${sourcePolicyName} 复制人力资源设置`,
+            categories: {one: `已从 ${sourcePolicyName} 复制 1 个类别`, other: (count: number) => `已从 ${sourcePolicyName} 复制了 ${count} 个类别`},
+            tags: {one: `已从 ${sourcePolicyName} 复制 1 个标签`, other: (count: number) => `已从 ${sourcePolicyName} 复制了 ${count} 个标签`},
+            taxes: {one: `已从 ${sourcePolicyName} 复制 1 个税率`, other: (count: number) => `已从 ${sourcePolicyName} 复制了 ${count} 个税率`},
+            timeTracking: (sourcePolicyName: string) => `已从 ${sourcePolicyName} 复制时间跟踪设置`,
+            workflows: (sourcePolicyName: string) => `已从 ${sourcePolicyName} 复制工作流`,
+            rules: (sourcePolicyName: string) => `已从 ${sourcePolicyName} 复制规则`,
+            codingRules: {one: `已从 ${sourcePolicyName} 复制 1 条商家规则`, other: (count: number) => `已从 ${sourcePolicyName} 复制 ${count} 条商户规则`},
+            distanceRates: {one: `已从 ${sourcePolicyName} 复制 1 个里程费率`, other: (count: number) => `已从 ${sourcePolicyName} 复制了 ${count} 个里程费率`},
+            perDiem: {one: `已从 ${sourcePolicyName} 复制了 1 个每日补贴标准`, other: (count: number) => `已从${sourcePolicyName}复制了${count}个每日津贴标准`},
+            invoices: (sourcePolicyName: string) => `已从 ${sourcePolicyName} 复制发票设置`,
+            travel: (sourcePolicyName: string) => `已从 ${sourcePolicyName} 复制出差设置`,
+        },
     },
     roomMembersPage: {
         memberNotFound: '未找到成员。',
@@ -9500,7 +9519,6 @@ ${reportName}`,
         pdfFailedBody: 'Your file could not be generated. Try again, or reach out to Concierge for help.',
         readyPartialBody: ({count, total}: {count: number; total: number}) =>
             `${count} of ${total} reports exported. If it didn't automatically download, use the button below. See which reports failed in <concierge-link>Concierge</concierge-link>.`,
-
         close: 'Close',
     },
     domain: {

Note

You can apply these changes to your branch by copying the patch to your clipboard, then running pbpaste | git apply 😉

View workflow run

@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.

Files with missing lines Coverage Δ
src/CONST/index.ts 93.84% <ø> (ø)
src/libs/ReportActionsUtils.ts 77.69% <100.00%> (+4.49%) ⬆️
src/libs/ReportUtils.ts 85.41% <100.00%> (+12.53%) ⬆️
...x/report/actionContents/PolicyChangeLogContent.tsx 100.00% <100.00%> (+8.82%) ⬆️
src/libs/OptionsListUtils/index.ts 86.13% <50.00%> (+1.13%) ⬆️
src/libs/SidebarUtils.ts 80.35% <50.00%> (-0.10%) ⬇️
...es/inbox/report/ContextMenu/ContextMenuActions.tsx 44.39% <50.00%> (+25.50%) ⬆️
... and 237 files with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants