mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-22 23:45:02 +00:00
en locales
This commit is contained in:
parent
40ed0f68db
commit
d449ccf624
@ -111,7 +111,7 @@ export function GenericField({ fieldName, joiDefinition }: GenericFieldProps) {
|
|||||||
return (<div>comma_array, joi items are empty or bigger than one, this is not implemented</div>);
|
return (<div>comma_array, joi items are empty or bigger than one, this is not implemented</div>);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "alternatives":
|
case "alternatives": // TODO: Better support this. It is currently used by ScaleContent (working) and SplitByPreset (incompatible, but with that operator it isn't even considered a field so we need a different schema for that)
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<label htmlFor={fieldName}>{flags.label}:</label>
|
<label htmlFor={fieldName}>{flags.label}:</label>
|
||||||
@ -138,5 +138,6 @@ export function GenericField({ fieldName, joiDefinition }: GenericFieldProps) {
|
|||||||
default:
|
default:
|
||||||
console.log(joiDefinition);
|
console.log(joiDefinition);
|
||||||
return (<div>GenericField.tsx: <br/> "{fieldName}": requested type "{joiDefinition.type}" not found. Check console for further info.</div>)
|
return (<div>GenericField.tsx: <br/> "{fieldName}": requested type "{joiDefinition.type}" not found. Check console for further info.</div>)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
10
shared-operations/public/locales/arrangePages/en.json
Normal file
10
shared-operations/public/locales/arrangePages/en.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"friendlyName": "Arrange Pages",
|
||||||
|
"description": "Arrange Pages in a new order",
|
||||||
|
"values": {
|
||||||
|
"arrangementConfig": {
|
||||||
|
"friendlyName": "Arrangement Config",
|
||||||
|
"description": "How to order the pages. See documentation for more info on the possible values."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"friendlyName": "Remove Blank Pages",
|
"friendlyName": "Remove Blank Pages",
|
||||||
"description": "Remove pages without .",
|
"description": "Remove pages without text and images.",
|
||||||
"values": {
|
"values": {
|
||||||
"whiteThreashold": {
|
"whiteThreashold": {
|
||||||
"friendlyName": "Image White Threashold",
|
"friendlyName": "Image White Threashold",
|
||||||
|
10
shared-operations/public/locales/removePages/en.json
Normal file
10
shared-operations/public/locales/removePages/en.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"friendlyName": "Remove Pages",
|
||||||
|
"description": "Remove selected pages.",
|
||||||
|
"values": {
|
||||||
|
"pageIndexes": {
|
||||||
|
"friendlyName": "Page Indexes",
|
||||||
|
"description": "An array of indexes of pages you want to extract."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
10
shared-operations/public/locales/rotatePages/en.json
Normal file
10
shared-operations/public/locales/rotatePages/en.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"friendlyName": "Rotate Pagess",
|
||||||
|
"description": "Rotate selected pages by multiples of 90deg.",
|
||||||
|
"values": {
|
||||||
|
"rotation": {
|
||||||
|
"friendlyName": "Rotation",
|
||||||
|
"description": "Multiples of 90. Can be an array with the same size as the pdf pages or a single number."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
10
shared-operations/public/locales/scaleContent/en.json
Normal file
10
shared-operations/public/locales/scaleContent/en.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"friendlyName": "Scale Content",
|
||||||
|
"description": "Scales the content of a page by a set factor.",
|
||||||
|
"values": {
|
||||||
|
"scaleFactor": {
|
||||||
|
"friendlyName": "Scale Factor",
|
||||||
|
"description": "Can be an array with the same size as the pdf pages or a single number."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
14
shared-operations/public/locales/scalePage/en.json
Normal file
14
shared-operations/public/locales/scalePage/en.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"friendlyName": "Scale Page",
|
||||||
|
"description": "Sets the size of all pdf pages of the given document in pixels.",
|
||||||
|
"values": {
|
||||||
|
"height": {
|
||||||
|
"friendlyName": "Height",
|
||||||
|
"description": "The height of the pdf document in pixels."
|
||||||
|
},
|
||||||
|
"width": {
|
||||||
|
"friendlyName": "Width",
|
||||||
|
"description": "The width of the pdf document in pixels."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
10
shared-operations/public/locales/splitPagesByPreset/en.json
Normal file
10
shared-operations/public/locales/splitPagesByPreset/en.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"friendlyName": "Split Pages By Preset",
|
||||||
|
"description": "Splits the Document when a specific split indicator is detected on a page.",
|
||||||
|
"values": {
|
||||||
|
"pageIndexes": {
|
||||||
|
"friendlyName": "Split Settings",
|
||||||
|
"description": "The type of page that should be used as a split indecator. whiteThreashold is only used when BLANK_PAGE is selected."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
10
shared-operations/public/locales/splitPdfByIndex/en.json
Normal file
10
shared-operations/public/locales/splitPdfByIndex/en.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"friendlyName": "Split PDF by Index",
|
||||||
|
"description": "Splits the document at specific pages.",
|
||||||
|
"values": {
|
||||||
|
"pageIndexes": {
|
||||||
|
"friendlyName": "Page Indexes",
|
||||||
|
"description": "An array of indexes of pages you want to split the document after."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
10
shared-operations/public/locales/updateMetadata/en.json
Normal file
10
shared-operations/public/locales/updateMetadata/en.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"friendlyName": "Update Metadata",
|
||||||
|
"description": "Updates the metadata of a PDF.",
|
||||||
|
"values": {
|
||||||
|
"deleteAll": {
|
||||||
|
"friendlyName": "Delete All",
|
||||||
|
"description": "Delete all metadata instead of overwriting it?"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,17 +1,11 @@
|
|||||||
import { Operator, Progress, oneToN } from ".";
|
import { Operator, Progress, oneToN } from ".";
|
||||||
|
|
||||||
import Joi from "@stirling-tools/joi";
|
|
||||||
import { JoiPDFFileSchema } from "../wrappers/PdfFileJoi";
|
|
||||||
|
|
||||||
import i18next from "i18next";
|
|
||||||
|
|
||||||
import { PdfFile } from "../wrappers/PdfFile";
|
import { PdfFile } from "../wrappers/PdfFile";
|
||||||
|
|
||||||
import { splitPagesByIndex } from "./common/splitPagesByIndex";
|
import { splitPagesByIndex } from "./common/splitPagesByIndex";
|
||||||
import { detectEmptyPages } from "./common/detectEmptyPages";
|
import { detectEmptyPages } from "./common/detectEmptyPages";
|
||||||
import { detectQRCodePages } from "./common/detectQRCodePages";
|
import { detectQRCodePages } from "./common/detectQRCodePages";
|
||||||
|
|
||||||
|
|
||||||
export class SplitPagesByPreset extends Operator {
|
export class SplitPagesByPreset extends Operator {
|
||||||
/** Detect and remove white pages */
|
/** Detect and remove white pages */
|
||||||
async run(input: PdfFile[], progressCallback: (state: Progress) => void): Promise<PdfFile[]> {
|
async run(input: PdfFile[], progressCallback: (state: Progress) => void): Promise<PdfFile[]> {
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
import { PdfFile } from "../wrappers/PdfFile";
|
import { PdfFile } from "../wrappers/PdfFile";
|
||||||
import { Operator, Progress, oneToN } from ".";
|
import { Operator, Progress, oneToN } from ".";
|
||||||
|
|
||||||
import Joi from "@stirling-tools/joi";
|
|
||||||
|
|
||||||
import { splitPagesByIndex } from "./common/splitPagesByIndex";
|
import { splitPagesByIndex } from "./common/splitPagesByIndex";
|
||||||
|
|
||||||
export class SplitPdfByIndex extends Operator {
|
export class SplitPdfByIndex extends Operator {
|
||||||
|
@ -1,12 +1,6 @@
|
|||||||
import { PdfFile } from "../wrappers/PdfFile";
|
import { PdfFile } from "../wrappers/PdfFile";
|
||||||
import { Operator, Progress, oneToOne } from ".";
|
import { Operator, Progress, oneToOne } from ".";
|
||||||
|
|
||||||
import Joi from "@stirling-tools/joi";
|
|
||||||
|
|
||||||
import { JoiPDFFileSchema } from "../wrappers/PdfFileJoi";
|
|
||||||
|
|
||||||
import i18next from "i18next";
|
|
||||||
|
|
||||||
export class UpdateMetadata extends Operator {
|
export class UpdateMetadata extends Operator {
|
||||||
/** PDF extraction, specify pages from one pdf and output them to a new pdf */
|
/** PDF extraction, specify pages from one pdf and output them to a new pdf */
|
||||||
async run(input: PdfFile[], progressCallback: (state: Progress) => void): Promise<PdfFile[]> {
|
async run(input: PdfFile[], progressCallback: (state: Progress) => void): Promise<PdfFile[]> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user