Stirling-PDF/frontend/public/locales
Balázs Szücs 7baf503d60
[V2] feat(split): add split mode options and custom page selection to section split (#5277)
# Description of Changes


This pull request adds a new "Split Mode" feature to the "Split by
Sections" tool, allowing users to customize how pages are split,
including options to exclude the first/last pages or specify custom
pages. The changes include updates to the UI, form data handling,
parameter definitions, and validation logic to support these new
options.

**Split by Sections: New Split Mode Feature**

*UI Enhancements:*
- Added a `Radio.Group` in `SplitSettings.tsx` to let users choose the
split mode (split all, exclude first/last, or custom pages), and a
conditional `TextInput` for custom page numbers when "Custom" is
selected.

*Localization:*
- Updated `translation.toml` with new labels and descriptions for the
split mode options and custom page numbers.

*Parameter Handling:*
- Extended the `SplitParameters` interface to include `splitMode` and
`customPages`, and set their default values.

*Form Submission:*
- Modified `buildSplitFormData` to include the selected split mode and
custom page numbers (if applicable) in the form data sent to the
backend.

*Validation Logic:*
- Updated the validation logic in `useSplitParameters` to require custom
page numbers when the custom split mode is selected.

<img width="363" height="998" alt="image"
src="https://github.com/user-attachments/assets/c9f781a6-cf7e-4f3d-8514-57cfe468e0c8"
/>




<!--
Please provide a summary of the changes, including:

- What was changed
- Why the change was made
- Any challenges encountered

Closes #(issue_number)
-->

---

## Checklist

### General

- [X] I have read the [Contribution
Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md)
- [X] I have read the [Stirling-PDF Developer
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md)
(if applicable)
- [ ] I have read the [How to add new languages to
Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md)
(if applicable)
- [X] I have performed a self-review of my own code
- [X] My changes generate no new warnings

### Documentation

- [ ] I have updated relevant docs on [Stirling-PDF's doc
repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/)
(if functionality has heavily changed)
- [ ] I have read the section [Add New Translation
Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md#add-new-translation-tags)
(for new translation tags only)

### Translations (if applicable)

- [ ] I ran
[`scripts/counter_translation.py`](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/docs/counter_translation.md)

### UI Changes (if applicable)

- [X] Screenshots or videos demonstrating the UI changes are attached
(e.g., as comments or direct attachments in the PR)

### Testing (if applicable)

- [X] I have tested my changes locally. Refer to the [Testing
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md#6-testing)
for more details.

---------

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
2025-12-22 19:28:00 +00:00
..
ar-AR lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
az-AZ lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
bg-BG lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
ca-CA lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
cs-CZ lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
da-DK lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
de-DE Fix German text for sign tool text entry (#5232) 2025-12-12 18:00:40 +00:00
el-GR lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
en-GB [V2] feat(split): add split mode options and custom page selection to section split (#5277) 2025-12-22 19:28:00 +00:00
es-ES lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
eu-ES lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
fa-IR lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
fr-FR lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
ga-IE lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
hi-IN lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
hr-HR lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
hu-HU lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
id-ID lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
it-IT lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
ja-JP lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
ko-KR lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
ml-ML lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
nl-NL Update translation.toml (#5254) 2025-12-17 13:37:47 +00:00
no-NB lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
pl-PL lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
pt-BR lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
pt-PT lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
ro-RO lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
ru-RU lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
sk-SK lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
sl-SI lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
sr-LATN-RS lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
sv-SE lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
th-TH lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
tr-TR lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
uk-UA lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
vi-VN lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
zh-BO lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
zh-CN lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00
zh-TW lang updates plus --include-existing flag (#5212) 2025-12-10 11:41:11 +00:00