Skip to content

WEB-913 Add export to pdf translation support for repayment schedule export button#3490

Merged
IOhacker merged 1 commit into
openMF:devfrom
JaySoni1:WEB-913-add-export-to-pdf-translation-support-for-repayment-schedule-export-button
Apr 10, 2026
Merged

WEB-913 Add export to pdf translation support for repayment schedule export button#3490
IOhacker merged 1 commit into
openMF:devfrom
JaySoni1:WEB-913-add-export-to-pdf-translation-support-for-repayment-schedule-export-button

Conversation

@JaySoni1
Copy link
Copy Markdown
Contributor

@JaySoni1 JaySoni1 commented Apr 9, 2026

Changes Made :-

-Update repayment-schedule-tab component to use {{ 'labels.buttons.Export to PDF' | translate }} instead of hardcoded text for multi-language support. .
-Add "Export to PDF" translation key and translations to all 13 language files.

WEB-913

Summary by CodeRabbit

  • New Features
    • The “Export to PDF” button label now uses the app’s translation system so it appears in the user’s selected language.
    • Added localized strings for the Export to PDF label across supported locales (including Czech, German, English, Spanish (CL/MX), French, Italian, Korean, Lithuanian, Latvian, Nepali, Portuguese, and Swahili).

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 9, 2026

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'pre_merge_checks'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 2d9ab7a6-8528-4812-accc-7856b2e5239f

📥 Commits

Reviewing files that changed from the base of the PR and between b047cf6 and 341ee98.

📒 Files selected for processing (14)
  • src/app/loans/loans-view/repayment-schedule-tab/repayment-schedule-tab.component.html
  • src/assets/translations/cs-CS.json
  • src/assets/translations/de-DE.json
  • src/assets/translations/en-US.json
  • src/assets/translations/es-CL.json
  • src/assets/translations/es-MX.json
  • src/assets/translations/fr-FR.json
  • src/assets/translations/it-IT.json
  • src/assets/translations/ko-KO.json
  • src/assets/translations/lt-LT.json
  • src/assets/translations/lv-LV.json
  • src/assets/translations/ne-NE.json
  • src/assets/translations/pt-PT.json
  • src/assets/translations/sw-SW.json
✅ Files skipped from review due to trivial changes (13)
  • src/app/loans/loans-view/repayment-schedule-tab/repayment-schedule-tab.component.html
  • src/assets/translations/ne-NE.json
  • src/assets/translations/es-CL.json
  • src/assets/translations/es-MX.json
  • src/assets/translations/pt-PT.json
  • src/assets/translations/en-US.json
  • src/assets/translations/lt-LT.json
  • src/assets/translations/fr-FR.json
  • src/assets/translations/cs-CS.json
  • src/assets/translations/ko-KO.json
  • src/assets/translations/it-IT.json
  • src/assets/translations/de-DE.json
  • src/assets/translations/lv-LV.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/assets/translations/sw-SW.json

Walkthrough

Replaced hardcoded "Export to PDF" button label in the repayment-schedule-tab template with a translation binding and added the labels.buttons["Export to PDF"] key to 13 locale JSON translation files.

Changes

Cohort / File(s) Summary
Template Update
src/app/loans/loans-view/repayment-schedule-tab/repayment-schedule-tab.component.html
Replaced literal "Export to PDF" button text with `{{ 'labels.buttons.Export to PDF'
Translation Files
src/assets/translations/en-US.json, src/assets/translations/de-DE.json, src/assets/translations/fr-FR.json, src/assets/translations/it-IT.json, src/assets/translations/es-CL.json, src/assets/translations/es-MX.json, src/assets/translations/cs-CS.json, src/assets/translations/ko-KO.json, src/assets/translations/lt-LT.json, src/assets/translations/lv-LV.json, src/assets/translations/ne-NE.json, src/assets/translations/pt-PT.json, src/assets/translations/sw-SW.json
Added labels.buttons["Export to PDF"] translations for English, German, French, Italian, Spanish (CL/MX), Czech, Korean, Lithuanian, Latvian, Nepali, Portuguese, and Swahili. No other keys changed.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested reviewers

  • IOhacker
  • alberto-art3ch
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and specifically describes the main change: adding translation support for the 'Export to PDF' button in the repayment schedule component, which is exactly what the changeset implements.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/assets/translations/cs-CS.json`:
- Line 481: The Czech translation for the "Export to PDF" label is unnatural;
update the value in src/assets/translations/cs-CS.json for the "Export to PDF"
key (currently "Vývozní PDF") to a more natural CTA such as "Exportovat do PDF"
(or the shorter "Export do PDF") so the UI button reads correctly in Czech.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: b34998cc-5c13-4df1-82d1-ed0f18b31a8d

📥 Commits

Reviewing files that changed from the base of the PR and between 62acfd6 and b047cf6.

📒 Files selected for processing (14)
  • src/app/loans/loans-view/repayment-schedule-tab/repayment-schedule-tab.component.html
  • src/assets/translations/cs-CS.json
  • src/assets/translations/de-DE.json
  • src/assets/translations/en-US.json
  • src/assets/translations/es-CL.json
  • src/assets/translations/es-MX.json
  • src/assets/translations/fr-FR.json
  • src/assets/translations/it-IT.json
  • src/assets/translations/ko-KO.json
  • src/assets/translations/lt-LT.json
  • src/assets/translations/lv-LV.json
  • src/assets/translations/ne-NE.json
  • src/assets/translations/pt-PT.json
  • src/assets/translations/sw-SW.json

Comment thread src/assets/translations/cs-CS.json Outdated
@JaySoni1 JaySoni1 force-pushed the WEB-913-add-export-to-pdf-translation-support-for-repayment-schedule-export-button branch from b047cf6 to 341ee98 Compare April 9, 2026 22:18
Copy link
Copy Markdown
Contributor

@IOhacker IOhacker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@IOhacker IOhacker merged commit c1029d0 into openMF:dev Apr 10, 2026
6 checks passed
@JaySoni1
Copy link
Copy Markdown
Contributor Author

@IOhacker Thank You for the review

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