mirror of
https://github.com/papra-hq/papra.git
synced 2025-12-17 12:15:22 -06:00
Compare commits
54 Commits
@papra/doc
...
@papra/app
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ce21981a9 | ||
|
|
3401cfbfdc | ||
|
|
26015666de | ||
|
|
09e3bc5e15 | ||
|
|
1711ef866d | ||
|
|
1d23f40894 | ||
|
|
40a1f91b67 | ||
|
|
47b69b15f4 | ||
|
|
a188af1f88 | ||
|
|
f28d8245bf | ||
|
|
aad36f3252 | ||
|
|
21a5ccce6d | ||
|
|
42bc3c6698 | ||
|
|
a9f474dc2d | ||
|
|
ed5a93cb47 | ||
|
|
52df988c02 | ||
|
|
73b8d08076 | ||
|
|
9b2a4b2ae9 | ||
|
|
2a8b88e48a | ||
|
|
be1b70a26a | ||
|
|
1755849483 | ||
|
|
b3693fd9c9 | ||
|
|
2149b50270 | ||
|
|
0b276ee0d5 | ||
|
|
56fb9ec2c4 | ||
|
|
6cedc30716 | ||
|
|
f1e1b4037b | ||
|
|
205c6cfd46 | ||
|
|
c54a71d2c5 | ||
|
|
62b7f0382c | ||
|
|
57c6a26657 | ||
|
|
b8c2bd70e3 | ||
|
|
0c2cf698d1 | ||
|
|
585c53cd9d | ||
|
|
f035458e16 | ||
|
|
556fd8b167 | ||
|
|
81e85295ba | ||
|
|
1c574b8305 | ||
|
|
ff830c234a | ||
|
|
451564f354 | ||
|
|
ecd6af45c8 | ||
|
|
f37c7dd8f7 | ||
|
|
a7fbf21a9f | ||
|
|
f97e5f863e | ||
|
|
8dcd6bc5ed | ||
|
|
87cb325369 | ||
|
|
e1743954d2 | ||
|
|
44b5b9fd5a | ||
|
|
68c5a3e2b7 | ||
|
|
684138c3fd | ||
|
|
0aa3241712 | ||
|
|
ad6358195e | ||
|
|
0e99669206 | ||
|
|
a91d98fb44 |
41
.github/workflows/ci-packages-lecture.yaml
vendored
Normal file
41
.github/workflows/ci-packages-lecture.yaml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: CI - Lecture
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
ci-packages-lecture:
|
||||
name: CI - Lecture
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: packages/lecture
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm i
|
||||
|
||||
- name: Run linters
|
||||
run: pnpm lint
|
||||
|
||||
- name: Type check
|
||||
run: pnpm typecheck
|
||||
|
||||
- name: Run unit test
|
||||
run: pnpm test
|
||||
|
||||
- name: Build the app
|
||||
run: pnpm build
|
||||
@@ -84,7 +84,15 @@ We recommend running the app locally for development. Follow these steps:
|
||||
pnpm install
|
||||
```
|
||||
|
||||
3. Start the development server for the backend:
|
||||
3. Build the monorepo packages:
|
||||
|
||||
As the apps rely on internal packages, you need to build them first.
|
||||
|
||||
```bash
|
||||
pnpm build:packages
|
||||
```
|
||||
|
||||
4. Start the development server for the backend:
|
||||
|
||||
```bash
|
||||
cd apps/papra-server
|
||||
@@ -94,7 +102,7 @@ We recommend running the app locally for development. Follow these steps:
|
||||
pnpm dev
|
||||
```
|
||||
|
||||
4. Start the frontend:
|
||||
5. Start the frontend:
|
||||
|
||||
```bash
|
||||
cd apps/papra-client
|
||||
@@ -102,7 +110,7 @@ We recommend running the app locally for development. Follow these steps:
|
||||
pnpm dev
|
||||
```
|
||||
|
||||
5. Open your browser and navigate to `http://localhost:3000`.
|
||||
6. Open your browser and navigate to `http://localhost:3000`.
|
||||
|
||||
### Testing
|
||||
|
||||
|
||||
15
README.md
15
README.md
@@ -39,12 +39,9 @@ A live demo of the platform is available at [demo.papra.app](https://demo.papra.
|
||||
|
||||
## Project Status
|
||||
|
||||
Papra is currently in **beta**. The core functionality is stable and usable, but you may encounter occasional bugs or limitations. The project is actively developed, with new features being added regularly.
|
||||
Papra is under active development, the core functionalities are stable and usable. With lots of features and improvements added regularly.
|
||||
|
||||
- ✅ Core document management features are stable
|
||||
- ✅ Self-hosting is fully supported
|
||||
- 🚧 Some advanced features are still in development
|
||||
- 📝 Feedback and bug reports are highly appreciated
|
||||
Feedback and bug reports are highly appreciated to help us improve the platform.
|
||||
|
||||
## Features
|
||||
|
||||
@@ -63,11 +60,17 @@ Papra is currently in **beta**. The core functionality is stable and usable, but
|
||||
- **Folder ingestion**: Automatically import documents from a folder.
|
||||
- **CLI**: Manage your documents from the command line.
|
||||
- **API, SDK and webhooks**: Build your own applications on top of Papra.
|
||||
- *In progress:* **i18n**: Support for multiple languages.
|
||||
- **i18n**: Support for multiple languages.
|
||||
- *Coming soon:* **Document sharing**: Share documents with others.
|
||||
- *Coming soon:* **Document requests**: Generate upload links for people to add documents.
|
||||
- *Coming maybe one day:* **Mobile app**: Access and upload documents on the go.
|
||||
- *Coming maybe one day:* **Desktop app**: Access and upload documents from your computer.
|
||||
- *Coming maybe one day:* **Browser extension**: Upload documents from your browser.
|
||||
- *Coming maybe one day:* **AI**: Use AI to help you manage or tag your documents.
|
||||
|
||||
## Sponsors
|
||||
|
||||
Papra is a free and open-source project, but it is not free to run and develop. If you want to support the project, you can become a sponsor on [GitHub Sponsors](https://github.com/sponsors/corentinth) or [Buy me a coffee](https://buymeacoffee.com/cthmsst). If you are a company, you can also contact me to discuss a sponsorship.
|
||||
|
||||
## Self-hosting
|
||||
|
||||
|
||||
@@ -1,5 +1,33 @@
|
||||
# @papra/docs
|
||||
|
||||
## 0.5.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#405](https://github.com/papra-hq/papra/pull/405) [`3401cfb`](https://github.com/papra-hq/papra/commit/3401cfbfdc7e280d2f0f3166ceddcbf55486f574) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Introduce APP_BASE_URL to mutualize server and client base url
|
||||
|
||||
- [#379](https://github.com/papra-hq/papra/pull/379) [`6cedc30`](https://github.com/papra-hq/papra/commit/6cedc30716e320946f79a0a9fd8d3b26e834f4db) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Updated dependencies
|
||||
|
||||
- [#390](https://github.com/papra-hq/papra/pull/390) [`42bc3c6`](https://github.com/papra-hq/papra/commit/42bc3c669840eb778d251dcfb0dd96b45bf6e277) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Added API endpoints documentation
|
||||
|
||||
- [#402](https://github.com/papra-hq/papra/pull/402) [`1d23f40`](https://github.com/papra-hq/papra/commit/1d23f4089479387d5b87dbcf6d3819f5ee14d580) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Fix invalid domain in json schema urls
|
||||
|
||||
## 0.5.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#357](https://github.com/papra-hq/papra/pull/357) [`585c53c`](https://github.com/papra-hq/papra/commit/585c53cd9d0d7dbd517dbb1adddfd9e7b70f9fe5) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Added a /llms.txt on main website
|
||||
|
||||
## 0.5.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#337](https://github.com/papra-hq/papra/pull/337) [`1c574b8`](https://github.com/papra-hq/papra/commit/1c574b8305eb7bde4f1b75ac38a610ca0120a613) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Added troubleshooting page
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#337](https://github.com/papra-hq/papra/pull/337) [`1c574b8`](https://github.com/papra-hq/papra/commit/1c574b8305eb7bde4f1b75ac38a610ca0120a613) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Added `docker compose up` command in dc generator
|
||||
|
||||
## 0.4.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"name": "@papra/docs",
|
||||
"type": "module",
|
||||
"version": "0.4.2",
|
||||
"version": "0.5.2",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@10.9.0",
|
||||
"packageManager": "pnpm@10.12.3",
|
||||
"description": "Papra documentation website",
|
||||
"author": "Corentin Thomasset <corentinth@proton.me> (https://corentin.tech)",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
|
||||
BIN
apps/docs/src/assets/api-key-creation-1.png
Normal file
BIN
apps/docs/src/assets/api-key-creation-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 47 KiB |
BIN
apps/docs/src/assets/api-key-creation-2.png
Normal file
BIN
apps/docs/src/assets/api-key-creation-2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
@@ -1,5 +1,7 @@
|
||||
import type { ConfigDefinition, ConfigDefinitionElement } from 'figue';
|
||||
import { isArray, isEmpty, isNil } from 'lodash-es';
|
||||
import { marked } from 'marked';
|
||||
|
||||
import { configDefinition } from '../../papra-server/src/modules/config/config';
|
||||
|
||||
function walk(configDefinition: ConfigDefinition, path: string[] = []): (ConfigDefinitionElement & { path: string[] })[] {
|
||||
@@ -45,7 +47,7 @@ const rows = configDetails
|
||||
});
|
||||
|
||||
const mdSections = rows.map(({ documentation, env, path, defaultValue }) => `
|
||||
### ${env}
|
||||
### ${env}
|
||||
${documentation}
|
||||
|
||||
- Path: \`${path.join('.')}\`
|
||||
@@ -85,4 +87,18 @@ const fullDotEnv = rows.map(({ env, defaultValue, documentation }) => {
|
||||
].join('\n');
|
||||
}).join('\n\n');
|
||||
|
||||
export { fullDotEnv, mdSections };
|
||||
// Dirty hack to add the same anchors to the headings as the ones generated by Starlight
|
||||
const renderer = new marked.Renderer();
|
||||
renderer.heading = function ({ text, depth }) {
|
||||
const slug = text.toLowerCase().replace(/\W+/g, '-');
|
||||
return `
|
||||
<div class="sl-heading-wrapper level-h${depth}">
|
||||
<h${depth} id="${slug}">${text}</h${depth}>
|
||||
<a class="sl-anchor-link" href="#${slug}"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24"><path fill="currentcolor" d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z"></path></svg></span><span class="sr-only">Section titled “Configuration files”</span></a>
|
||||
</div>
|
||||
`.trim().replace(/\n/g, '');
|
||||
};
|
||||
|
||||
const sectionsHtml = marked.parse(mdSections, { renderer });
|
||||
|
||||
export { fullDotEnv, mdSections, sectionsHtml };
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: Using Docker Compose
|
||||
slug: self-hosting/using-docker-compose
|
||||
description: Self-host Papra using Docker Compose.
|
||||
---
|
||||
|
||||
import { Steps } from '@astrojs/starlight/components';
|
||||
|
||||
@@ -1,17 +1,29 @@
|
||||
---
|
||||
title: Configuration
|
||||
slug: self-hosting/configuration
|
||||
|
||||
description: Configure your self-hosted Papra instance.
|
||||
---
|
||||
|
||||
import { mdSections, fullDotEnv } from '../../../config.data.ts';
|
||||
import { marked } from 'marked';
|
||||
import { sectionsHtml, fullDotEnv } from '../../../config.data.ts';
|
||||
import { Tabs, TabItem } from '@astrojs/starlight/components';
|
||||
import { Aside } from '@astrojs/starlight/components';
|
||||
import { Code } from '@astrojs/starlight/components';
|
||||
|
||||
Configuring your self hosted Papra allows you to customize the application to better suit your environment and requirements. This guide covers the key environment variables you can set to control various aspects of the application, including port settings, security options, and storage configurations.
|
||||
|
||||
## Complete .env
|
||||
|
||||
Here is the full configuration file that you can use to configure Papra. The variables values are the default values.
|
||||
|
||||
<Code code={fullDotEnv} language="env" title=".env" />
|
||||
|
||||
## Configuration variables
|
||||
|
||||
Here is the complete list of configuration variables that you can use to configure Papra. You can set these variables in the `.env` file or pass them as environment variables when running the Docker container.
|
||||
|
||||
<Fragment set:html={sectionsHtml} />
|
||||
|
||||
|
||||
## Configuration files
|
||||
|
||||
You can configure Papra using standard environment variables or use some configuration files.
|
||||
@@ -42,7 +54,7 @@ Example of configuration files:
|
||||
<TabItem label="papra.config.json">
|
||||
```json
|
||||
{
|
||||
"$schema": "https://docs.papra.com/papra-config-schema.json",
|
||||
"$schema": "https://docs.papra.app/papra-config-schema.json",
|
||||
"server": {
|
||||
"baseUrl": "https://papra.example.com"
|
||||
},
|
||||
@@ -61,7 +73,7 @@ Example of configuration files:
|
||||
|
||||
```json
|
||||
{
|
||||
"$schema": "https://docs.papra.com/papra-config-schema.json",
|
||||
"$schema": "https://docs.papra.app/papra-config-schema.json",
|
||||
// ...
|
||||
}
|
||||
```
|
||||
@@ -72,17 +84,4 @@ Example of configuration files:
|
||||
</Tabs>
|
||||
|
||||
|
||||
You'll find the complete list of configuration variables with their environment variables equivalents and path for files in the next section.
|
||||
|
||||
## Complete .env
|
||||
|
||||
Here is the full configuration file that you can use to configure Papra. The variables values are the default values.
|
||||
|
||||
<Code code={fullDotEnv} language="env" title=".env" />
|
||||
|
||||
## Configuration variables
|
||||
|
||||
Here is the complete list of configuration variables that you can use to configure Papra. You can set these variables in the `.env` file or pass them as environment variables when running the Docker container.
|
||||
|
||||
<Fragment set:html={marked.parse(mdSections)} />
|
||||
|
||||
You'll find the complete list of configuration variables with their environment variables equivalents and path for files in the previous section.
|
||||
@@ -0,0 +1,28 @@
|
||||
---
|
||||
title: Troubleshooting
|
||||
description: Troubleshooting guide for Papra
|
||||
slug: resources/troubleshooting
|
||||
---
|
||||
|
||||
You can find here some common issues and how to fix them. If you encounter an issue that is not listed here, please [open an issue](https://github.com/papra-hq/papra/issues/new/choose) or [join our Discord](https://papra.app/discord).
|
||||
|
||||
## Failed to ensure that the database directory exists
|
||||
|
||||
Upon starting the server or a script, you may encounter this error
|
||||
|
||||
```
|
||||
Failed to ensure that the database directory exists, error while creating the directory
|
||||
Error: EACCES: permission denied, mkdir './app-data/db'
|
||||
|
||||
```
|
||||
|
||||
Before accessing the DB sqlite file, the server will try to ensure that the database directory exists, and if it doesn't, it try will create it. But in case of insufficient permissions, it will fail.
|
||||
|
||||
To fix this, you can either:
|
||||
|
||||
- Create the directory manually `mkdir -p <your-app-data-dir>/db`
|
||||
- Ensure that the directory is owned by the user running the container
|
||||
- Run the server as root (not recommended)
|
||||
|
||||
|
||||
|
||||
210
apps/docs/src/content/docs/04-resources/03-api-endpoints.mdx
Normal file
210
apps/docs/src/content/docs/04-resources/03-api-endpoints.mdx
Normal file
@@ -0,0 +1,210 @@
|
||||
---
|
||||
title: API Endpoints
|
||||
description: The list and details of all the API endpoints available in Papra.
|
||||
slug: resources/api-endpoints
|
||||
---
|
||||
|
||||
## Authentication
|
||||
|
||||
The public API uses a bearer token for authentication. You can get a token by logging to your Papra account and creating an API token.
|
||||
|
||||
<details>
|
||||
|
||||
<summary>How to create an API token</summary>
|
||||
|
||||

|
||||

|
||||
|
||||
</details>
|
||||
|
||||
|
||||
## Endpoints
|
||||
|
||||
### Create a document
|
||||
|
||||
**POST** `/api/organizations/:organizationId/documents`
|
||||
|
||||
Create a new document in the organization.
|
||||
|
||||
- Required API key permissions: `documents:create`
|
||||
- Body (form-data)
|
||||
- `file`: The file to upload.
|
||||
- `ocrLanguages`: (optional) The languages to use for OCR.
|
||||
- Response (JSON)
|
||||
- `document`: The created document.
|
||||
|
||||
### List documents
|
||||
|
||||
**GET** `/api/organizations/:organizationId/documents`
|
||||
|
||||
List all documents in the organization.
|
||||
|
||||
- Required API key permissions: `documents:read`
|
||||
- Query parameters
|
||||
- `pageIndex`: (optional, default: 0) The page index to start from.
|
||||
- `pageSize`: (optional, default: 100) The number of documents to return.
|
||||
- `tags`: (optional) The tags IDs to filter by.
|
||||
- Response (JSON)
|
||||
- `documents`: The list of documents.
|
||||
- `documentsCount`: The total number of documents.
|
||||
|
||||
### List deleted documents (trash)
|
||||
|
||||
**GET** `/api/organizations/:organizationId/documents/deleted`
|
||||
|
||||
List all deleted documents (in trash) in the organization.
|
||||
|
||||
- Required API key permissions: `documents:read`
|
||||
- Query parameters
|
||||
- `pageIndex`: (optional, default: 0) The page index to start from.
|
||||
- `pageSize`: (optional, default: 100) The number of documents to return.
|
||||
- Response (JSON)
|
||||
- `documents`: The list of deleted documents.
|
||||
- `documentsCount`: The total number of deleted documents.
|
||||
|
||||
### Get a document
|
||||
|
||||
**GET** `/api/organizations/:organizationId/documents/:documentId`
|
||||
|
||||
Get a document by its ID.
|
||||
|
||||
- Required API key permissions: `documents:read`
|
||||
- Response (JSON)
|
||||
- `document`: The document.
|
||||
|
||||
### Delete a document
|
||||
|
||||
**DELETE** `/api/organizations/:organizationId/documents/:documentId`
|
||||
|
||||
Delete a document by its ID.
|
||||
|
||||
- Required API key permissions: `documents:delete`
|
||||
- Response: empty (204 status code)
|
||||
|
||||
### Get a document file
|
||||
|
||||
**GET** `/api/organizations/:organizationId/documents/:documentId/file`
|
||||
|
||||
Get a document file content by its ID.
|
||||
|
||||
- Required API key permissions: `documents:read`
|
||||
- Response: The document file stream.
|
||||
|
||||
### Search documents
|
||||
|
||||
**GET** `/api/organizations/:organizationId/documents/search`
|
||||
|
||||
Search documents in the organization by name or content.
|
||||
|
||||
- Required API key permissions: `documents:read`
|
||||
- Query parameters
|
||||
- `searchQuery`: The search query.
|
||||
- `pageIndex`: (optional, default: 0) The page index to start from.
|
||||
- `pageSize`: (optional, default: 100) The number of documents to return.
|
||||
- Response (JSON)
|
||||
- `documents`: The list of documents.
|
||||
|
||||
### Get organization documents statistics
|
||||
|
||||
**GET** `/api/organizations/:organizationId/documents/statistics`
|
||||
|
||||
Get the statistics (number of documents and total size) of the documents in the organization.
|
||||
|
||||
- Required API key permissions: `documents:read`
|
||||
- Response (JSON)
|
||||
- `organizationStats`: The organization documents statistics.
|
||||
- `documentsCount`: The total number of documents.
|
||||
- `documentsSize`: The total size of the documents.
|
||||
|
||||
### Update a document
|
||||
|
||||
**PATCH** `/api/organizations/:organizationId/documents/:documentId`
|
||||
|
||||
Change the name or content (for search purposes) of a document.
|
||||
|
||||
- Required API key permissions: `documents:update`
|
||||
- Body (form-data)
|
||||
- `name`: (optional) The document name.
|
||||
- `content`: (optional) The document content.
|
||||
- Response (JSON)
|
||||
- `document`: The updated document.
|
||||
|
||||
### Get document activity
|
||||
|
||||
**GET** `/api/organizations/:organizationId/documents/:documentId/activity`
|
||||
|
||||
Get the activity log of a document.
|
||||
|
||||
- Required API key permissions: `documents:read`
|
||||
- Query parameters
|
||||
- `pageIndex`: (optional, default: 0) The page index to start from.
|
||||
- `pageSize`: (optional, default: 100) The number of documents to return.
|
||||
- Response (JSON)
|
||||
- `activities`: The list of activities.
|
||||
|
||||
### Create a tag
|
||||
|
||||
**POST** `/api/organizations/:organizationId/tags`
|
||||
|
||||
Create a new tag in the organization.
|
||||
|
||||
- Required API key permissions: `tags:create`
|
||||
- Body (form-data)
|
||||
- `name`: The tag name.
|
||||
- `color`: The tag color in hex format (e.g. `#000000`).
|
||||
- `description`: (optional) The tag description.
|
||||
- Response (JSON)
|
||||
- `tag`: The created tag.
|
||||
|
||||
### List tags
|
||||
|
||||
**GET** `/api/organizations/:organizationId/tags`
|
||||
|
||||
List all tags in the organization.
|
||||
|
||||
- Required API key permissions: `tags:read`
|
||||
- Response (JSON)
|
||||
- `tags`: The list of tags.
|
||||
|
||||
### Update a tag
|
||||
|
||||
**PUT** `/api/organizations/:organizationId/tags/:tagId`
|
||||
|
||||
Change the name, color or description of a tag.
|
||||
|
||||
- Required API key permissions: `tags:update`
|
||||
- Body
|
||||
- `name`: (optional) The tag name.
|
||||
- `color`: (optional) The tag color in hex format (e.g. `#000000`).
|
||||
- `description`: (optional) The tag description.
|
||||
- Response (JSON)
|
||||
- `tag`: The updated tag.
|
||||
|
||||
### Delete a tag
|
||||
|
||||
**DELETE** `/api/organizations/:organizationId/tags/:tagId`
|
||||
|
||||
Delete a tag by its ID.
|
||||
|
||||
- Required API key permissions: `tags:delete`
|
||||
- Response: empty (204 status code)
|
||||
|
||||
### Add a tag to a document
|
||||
|
||||
**POST** `/api/organizations/:organizationId/documents/:documentId/tags`
|
||||
|
||||
Associate a tag to a document.
|
||||
|
||||
- Required API key permissions: `tags:read` and `documents:update`
|
||||
- Body
|
||||
- `tagId`: The tag ID.
|
||||
- Response: empty (204 status code)
|
||||
|
||||
### Remove a tag from a document
|
||||
|
||||
**DELETE** `/api/organizations/:organizationId/documents/:documentId/tags/:tagId`
|
||||
|
||||
Remove a tag from a document.
|
||||
|
||||
- Required API key permissions: `tags:read` and `documents:update`
|
||||
- Response: empty (204 status code)
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Papra documentation
|
||||
description: Papra documentation.
|
||||
description: Documentation for Papra, the minimalistic document archiving platform.
|
||||
hero:
|
||||
title: Papra Docs
|
||||
tagline: Documentation for Papra, the minimalistic document archiving platform.
|
||||
@@ -55,7 +55,7 @@ In today's digital world, managing countless important documents efficiently and
|
||||
- **Folder ingestion**: Automatically import documents from a folder.
|
||||
- **API, SDK and webhooks**: Build your own applications on top of Papra.
|
||||
- **CLI**: Manage your documents from the command line.
|
||||
- *In progress:* **i18n**: Support for multiple languages.
|
||||
- **i18n**: Support for multiple languages.
|
||||
- *Coming soon:* **Document sharing**: Share documents with others.
|
||||
- *Coming soon:* **Document requests**: Generate upload links for people to add documents.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { StarlightUserConfig } from '@astrojs/starlight/types';
|
||||
|
||||
export const sidebar: StarlightUserConfig['sidebar'] = [
|
||||
export const sidebar = [
|
||||
{
|
||||
label: 'Getting Started',
|
||||
items: [
|
||||
@@ -40,6 +40,10 @@ export const sidebar: StarlightUserConfig['sidebar'] = [
|
||||
{
|
||||
label: 'Resources',
|
||||
items: [
|
||||
{
|
||||
label: 'Troubleshooting',
|
||||
slug: 'resources/troubleshooting',
|
||||
},
|
||||
{
|
||||
label: 'CLI Documentation',
|
||||
slug: 'resources/cli',
|
||||
@@ -51,6 +55,10 @@ export const sidebar: StarlightUserConfig['sidebar'] = [
|
||||
target: '_blank',
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'API Endpoints',
|
||||
slug: 'resources/api-endpoints',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
] satisfies StarlightUserConfig['sidebar'];
|
||||
|
||||
@@ -16,14 +16,14 @@ services:
|
||||
- 1221:1221
|
||||
environment:
|
||||
- AUTH_SECRET=change-me
|
||||
- CLIENT_BASE_URL=http://localhost:1221
|
||||
- SERVER_BASE_URL=http://localhost:1221
|
||||
- APP_BASE_URL=http://localhost:1221
|
||||
volumes:
|
||||
- ./app-data:/app/app-data
|
||||
user: 1000:1000
|
||||
`.trim();
|
||||
|
||||
const dcHtml = await codeToHtml(defaultDockerCompose, { theme: 'vitesse-black', lang: 'yaml' });
|
||||
const defaultCommand = `mkdir -p ./app-data/{db,documents} && docker compose up -d`;
|
||||
---
|
||||
|
||||
|
||||
@@ -145,9 +145,12 @@ const dcHtml = await codeToHtml(defaultDockerCompose, { theme: 'vitesse-black',
|
||||
|
||||
<div id="docker-compose-output" class="mt-12" set:html={dcHtml} />
|
||||
|
||||
<pre id="command-output" class="bg-card p-4 rounded-md text-muted-foreground text-sm font-mono overflow-x-auto">{defaultCommand}</pre>
|
||||
|
||||
<div class="flex items-center gap-2 mt-4">
|
||||
<button class="btn bg-muted mt-0" id="download-button">Download docker-compose.yml</button>
|
||||
<button class="btn bg-muted mt-0" id="copy-button">Copy to clipboard</button>
|
||||
<button class="btn bg-muted mt-0" id="copy-button">Copy docker compose to clipboard</button>
|
||||
<button class="btn bg-muted mt-0" id="copy-command-button">Copy command</button>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -178,6 +181,8 @@ const owlrelayWebhookUrlInput = document.getElementById('intake-email-owlrelay-w
|
||||
const cfEmailDomainInput = document.getElementById('intake-email-cf-email-domain') as HTMLInputElement;
|
||||
const webhookSecretInput = document.getElementById('intake-email-webhook-secret') as HTMLInputElement;
|
||||
const refreshWebhookSecretButton = document.getElementById('refresh-webhook-secret');
|
||||
const commandOutput = document.getElementById('command-output');
|
||||
const copyCommandButton = document.getElementById('copy-command-button');
|
||||
|
||||
// Track whether the app base URL has been customized by the user
|
||||
let isAppBaseUrlCustomized = false;
|
||||
@@ -275,19 +280,14 @@ function getDockerComposeYml() {
|
||||
const intakeEmailEnabled = intakeEmailEnabledSelect.value === 'true';
|
||||
const intakeDriver = intakeDriverSelect.value;
|
||||
const webhookSecret = webhookSecretInput.value;
|
||||
const appBaseUrl = appBaseUrlInput.value.trim();
|
||||
const appBaseUrl = appBaseUrlInput.value.trim() || `http://localhost:${port}`;
|
||||
|
||||
const version = isRootless ? 'latest' : 'latest-root';
|
||||
const fullImage = `${image}:${version}`;
|
||||
|
||||
// Determine base URLs
|
||||
const clientBaseUrl = appBaseUrl || `http://localhost:${port}`;
|
||||
const serverBaseUrl = appBaseUrl || `http://localhost:${port}`;
|
||||
|
||||
const environment = [
|
||||
`AUTH_SECRET=${authSecret}`,
|
||||
`CLIENT_BASE_URL=${clientBaseUrl}`,
|
||||
`SERVER_BASE_URL=${serverBaseUrl}`,
|
||||
`APP_BASE_URL=${appBaseUrl}`,
|
||||
isIngestionEnabled && 'INGESTION_FOLDER_IS_ENABLED=true',
|
||||
intakeEmailEnabled && 'INTAKE_EMAILS_IS_ENABLED=true',
|
||||
intakeEmailEnabled && `INTAKE_EMAILS_DRIVER=${intakeDriver}`,
|
||||
@@ -321,14 +321,31 @@ function getDockerComposeYml() {
|
||||
return stringify(dc);
|
||||
}
|
||||
|
||||
function getStartCommand() {
|
||||
const volumePath = volumePathInput.value;
|
||||
const volumePathNormalized = volumePath.replace(/\/$/, '');
|
||||
const volumeWithSubdirs = `${volumePathNormalized}/{db,documents}`;
|
||||
|
||||
const mkdirCommand = `mkdir -p ${volumeWithSubdirs}`;
|
||||
|
||||
const dockerCommand = 'docker compose up -d';
|
||||
|
||||
return `${mkdirCommand} && ${dockerCommand}`;
|
||||
}
|
||||
|
||||
async function updateDockerCompose() {
|
||||
const dockerCompose = getDockerComposeYml();
|
||||
const command = getStartCommand();
|
||||
|
||||
const html = await codeToHtml(dockerCompose, { theme: 'vitesse-black', lang: 'yaml' });
|
||||
|
||||
if (dockerComposeOutput) {
|
||||
dockerComposeOutput.innerHTML = html;
|
||||
}
|
||||
|
||||
if (commandOutput) {
|
||||
commandOutput.textContent = command;
|
||||
}
|
||||
}
|
||||
|
||||
function handleCopy() {
|
||||
@@ -420,6 +437,22 @@ function handleRefreshWebhookSecret() {
|
||||
updateDockerCompose();
|
||||
}
|
||||
|
||||
function handleCopyCommand() {
|
||||
const command = getStartCommand();
|
||||
|
||||
copyToClipboard(command);
|
||||
|
||||
if (copyCommandButton) {
|
||||
copyCommandButton.textContent = 'Copied!';
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
if (copyCommandButton) {
|
||||
copyCommandButton.textContent = 'Copy command';
|
||||
}
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
// Add event listeners
|
||||
portInput.addEventListener('input', handlePortChange);
|
||||
sourceSelect.addEventListener('change', updateDockerCompose);
|
||||
@@ -440,6 +473,7 @@ owlrelayWebhookUrlInput.addEventListener('input', handleWebhookUrlChange);
|
||||
cfEmailDomainInput.addEventListener('input', updateDockerCompose);
|
||||
webhookSecretInput.addEventListener('input', updateDockerCompose);
|
||||
refreshWebhookSecretButton?.addEventListener('click', handleRefreshWebhookSecret);
|
||||
copyCommandButton?.addEventListener('click', handleCopyCommand);
|
||||
|
||||
authSecretInput.value = getRandomString();
|
||||
|
||||
|
||||
28
apps/docs/src/pages/docs-navigation.json.ts
Normal file
28
apps/docs/src/pages/docs-navigation.json.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import type { APIRoute } from 'astro';
|
||||
import { getCollection } from 'astro:content';
|
||||
import { sidebar } from '../content/navigation';
|
||||
|
||||
export const GET: APIRoute = async ({ site }) => {
|
||||
const docs = await getCollection('docs');
|
||||
|
||||
const sections = sidebar.map((section) => {
|
||||
return {
|
||||
label: section.label,
|
||||
items: section
|
||||
.items
|
||||
.filter(item => item.slug !== undefined || (item.link && !item.link.startsWith('http')))
|
||||
.map((item) => {
|
||||
const slug = item.slug ?? item.link?.replace(/^\//, '');
|
||||
|
||||
return {
|
||||
label: item.label,
|
||||
slug,
|
||||
url: new URL(slug, site).toString(),
|
||||
description: docs.find(doc => (doc.id === slug || (slug === '' && doc.id === 'index')))?.data.description,
|
||||
};
|
||||
}),
|
||||
};
|
||||
});
|
||||
|
||||
return new Response(JSON.stringify(sections));
|
||||
};
|
||||
@@ -1,5 +1,49 @@
|
||||
# @papra/app-client
|
||||
|
||||
## 0.6.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#377](https://github.com/papra-hq/papra/pull/377) [`205c6cf`](https://github.com/papra-hq/papra/commit/205c6cfd461fa0020a93753571f886726ddfdb57) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Improve file preview for text-like files (.env, yaml, extension-less text files,...)
|
||||
|
||||
- [#393](https://github.com/papra-hq/papra/pull/393) [`aad36f3`](https://github.com/papra-hq/papra/commit/aad36f325296548019148bc4e32782fe562fd95b) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Fix weird centering in document page for long filenames
|
||||
|
||||
- [#394](https://github.com/papra-hq/papra/pull/394) [`f28d824`](https://github.com/papra-hq/papra/commit/f28d8245bf385d7be3b3b8ee449c3fdc88fa375c) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Added the possibility to disable login via email, to support sso-only auth
|
||||
|
||||
- [#405](https://github.com/papra-hq/papra/pull/405) [`3401cfb`](https://github.com/papra-hq/papra/commit/3401cfbfdc7e280d2f0f3166ceddcbf55486f574) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Introduce APP_BASE_URL to mutualize server and client base url
|
||||
|
||||
- [#346](https://github.com/papra-hq/papra/pull/346) [`c54a71d`](https://github.com/papra-hq/papra/commit/c54a71d2c5998abde8ec78741b8c2e561203a045) Thanks [@blstmo](https://github.com/blstmo)! - Fixes 400 error when submitting tags with uppercase hex colour codes.
|
||||
|
||||
- [#408](https://github.com/papra-hq/papra/pull/408) [`09e3bc5`](https://github.com/papra-hq/papra/commit/09e3bc5e151594bdbcb1f9df1b869a78e583af3f) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Added Romanian (ro) translation
|
||||
|
||||
- [#383](https://github.com/papra-hq/papra/pull/383) [`0b276ee`](https://github.com/papra-hq/papra/commit/0b276ee0d5e936fffc1f8284c654a8ada0efbafb) Thanks [@LMArantes](https://github.com/LMArantes)! - Added Brazilian Portuguese (pt-BR) language support
|
||||
|
||||
- [#399](https://github.com/papra-hq/papra/pull/399) [`47b69b1`](https://github.com/papra-hq/papra/commit/47b69b15f4f711e47421fc21a3ac447824d67642) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Fix back to organization link in organization settings
|
||||
|
||||
- [#403](https://github.com/papra-hq/papra/pull/403) [`1711ef8`](https://github.com/papra-hq/papra/commit/1711ef866d0071a804484b3e163a5e2ccbcec8fd) Thanks [@Icikowski](https://github.com/Icikowski)! - Added Polish (pl) language support
|
||||
|
||||
- [#379](https://github.com/papra-hq/papra/pull/379) [`6cedc30`](https://github.com/papra-hq/papra/commit/6cedc30716e320946f79a0a9fd8d3b26e834f4db) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Updated dependencies
|
||||
|
||||
- [#411](https://github.com/papra-hq/papra/pull/411) [`2601566`](https://github.com/papra-hq/papra/commit/26015666de197827a65a5bebf376921bbfcc3ab8) Thanks [@4DRIAN0RTIZ](https://github.com/4DRIAN0RTIZ)! - Added Spanish (es) translation
|
||||
|
||||
- [#391](https://github.com/papra-hq/papra/pull/391) [`40a1f91`](https://github.com/papra-hq/papra/commit/40a1f91b67d92e135d13dfcd41e5fd3532c30ca5) Thanks [@itsjuoum](https://github.com/itsjuoum)! - Added European Portuguese (pt) translation
|
||||
|
||||
- [#378](https://github.com/papra-hq/papra/pull/378) [`f1e1b40`](https://github.com/papra-hq/papra/commit/f1e1b4037b31ff5de1fd228b8390dd4d97a8bda8) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Added tag color swatches and picker
|
||||
|
||||
## 0.6.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#357](https://github.com/papra-hq/papra/pull/357) [`585c53c`](https://github.com/papra-hq/papra/commit/585c53cd9d0d7dbd517dbb1adddfd9e7b70f9fe5) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Added a /llms.txt on main website
|
||||
|
||||
- [#359](https://github.com/papra-hq/papra/pull/359) [`0c2cf69`](https://github.com/papra-hq/papra/commit/0c2cf698d1a9e9a3cea023920b10cfcd5d83be14) Thanks [@Mavv3006](https://github.com/Mavv3006)! - Add German translation
|
||||
|
||||
## 0.6.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#333](https://github.com/papra-hq/papra/pull/333) [`ff830c2`](https://github.com/papra-hq/papra/commit/ff830c234a02ddb4cbc480cf77ef49b8de35fbae) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Fixed version release link
|
||||
|
||||
## 0.6.1
|
||||
|
||||
## 0.6.0
|
||||
|
||||
@@ -5,6 +5,11 @@ export default antfu({
|
||||
semi: true,
|
||||
},
|
||||
|
||||
ignores: [
|
||||
// Generated file
|
||||
'src/modules/i18n/locales.types.ts',
|
||||
],
|
||||
|
||||
rules: {
|
||||
// To allow export on top of files
|
||||
'ts/no-use-before-define': ['error', { allowNamedExports: true, functions: false }],
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"name": "@papra/app-client",
|
||||
"type": "module",
|
||||
"version": "0.6.1",
|
||||
"version": "0.6.4",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@10.9.0",
|
||||
"packageManager": "pnpm@10.12.3",
|
||||
"description": "Papra frontend client",
|
||||
"author": "Corentin Thomasset <corentinth@proton.me> (https://corentin.tech)",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
@@ -31,13 +31,13 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@corentinth/chisels": "^1.3.1",
|
||||
"@kobalte/core": "^0.13.9",
|
||||
"@kobalte/core": "^0.13.10",
|
||||
"@kobalte/utils": "^0.9.1",
|
||||
"@modular-forms/solid": "^0.25.1",
|
||||
"@pdfslick/solid": "^2.3.0",
|
||||
"@solid-primitives/storage": "^4.3.2",
|
||||
"@solidjs/router": "^0.14.10",
|
||||
"@tanstack/solid-query": "^5.77.2",
|
||||
"@tanstack/solid-query": "^5.81.2",
|
||||
"@tanstack/solid-table": "^8.21.3",
|
||||
"@unocss/reset": "^0.64.1",
|
||||
"better-auth": "catalog:",
|
||||
@@ -47,7 +47,7 @@
|
||||
"date-fns": "^4.1.0",
|
||||
"lodash-es": "^4.17.21",
|
||||
"ofetch": "^1.4.1",
|
||||
"posthog-js": "^1.246.0",
|
||||
"posthog-js": "^1.255.1",
|
||||
"radix3": "^1.1.2",
|
||||
"solid-js": "^1.9.7",
|
||||
"solid-sonner": "^0.2.8",
|
||||
@@ -59,18 +59,18 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "catalog:",
|
||||
"@iconify-json/tabler": "^1.2.18",
|
||||
"@playwright/test": "^1.52.0",
|
||||
"@iconify-json/tabler": "^1.2.19",
|
||||
"@playwright/test": "^1.53.1",
|
||||
"@types/lodash-es": "^4.17.12",
|
||||
"@types/node": "catalog:",
|
||||
"eslint": "catalog:",
|
||||
"jsdom": "^25.0.1",
|
||||
"tinyglobby": "^0.2.14",
|
||||
"tsx": "^4.19.4",
|
||||
"tsx": "^4.20.3",
|
||||
"typescript": "catalog:",
|
||||
"unocss": "0.65.0-beta.2",
|
||||
"vite": "^5.4.19",
|
||||
"vite-plugin-solid": "^2.11.6",
|
||||
"vite-plugin-solid": "^2.11.7",
|
||||
"vitest": "catalog:",
|
||||
"yaml": "^2.8.0"
|
||||
}
|
||||
|
||||
565
apps/papra-client/src/locales/de.yml
Normal file
565
apps/papra-client/src/locales/de.yml
Normal file
@@ -0,0 +1,565 @@
|
||||
# Authentication
|
||||
|
||||
auth.request-password-reset.title: Passwort zurücksetzen
|
||||
auth.request-password-reset.description: Geben Sie Ihre E-Mail-Adresse ein, um Ihr Passwort zurückzusetzen.
|
||||
auth.request-password-reset.requested: Wenn ein Konto mit dieser E-Mail-Adresse existiert, haben wir Ihnen eine E-Mail zum Zurücksetzen Ihres Passworts gesendet.
|
||||
auth.request-password-reset.back-to-login: Zurück zum Login
|
||||
auth.request-password-reset.form.email.label: E-Mail
|
||||
auth.request-password-reset.form.email.placeholder: 'Beispiel: ada@papra.app'
|
||||
auth.request-password-reset.form.email.required: Bitte geben Sie Ihre E-Mail-Adresse ein
|
||||
auth.request-password-reset.form.email.invalid: Diese E-Mail-Adresse ist ungültig
|
||||
auth.request-password-reset.form.submit: Passwort zurücksetzen anfordern
|
||||
|
||||
auth.reset-password.title: Passwort zurücksetzen
|
||||
auth.reset-password.description: Geben Sie Ihr neues Passwort ein, um Ihr Passwort zurückzusetzen.
|
||||
auth.reset-password.reset: Ihr Passwort wurde zurückgesetzt.
|
||||
auth.reset-password.back-to-login: Zurück zum Login
|
||||
auth.reset-password.form.new-password.label: Neues Passwort
|
||||
auth.reset-password.form.new-password.placeholder: 'Beispiel: **********'
|
||||
auth.reset-password.form.new-password.required: Bitte geben Sie Ihr neues Passwort ein
|
||||
auth.reset-password.form.new-password.min-length: Das Passwort muss mindestens {{ minLength }} Zeichen lang sein
|
||||
auth.reset-password.form.new-password.max-length: Das Passwort muss weniger als {{ maxLength }} Zeichen lang sein
|
||||
auth.reset-password.form.submit: Passwort zurücksetzen
|
||||
|
||||
auth.email-provider.open: '{{ provider }} öffnen'
|
||||
|
||||
auth.login.title: Bei Papra anmelden
|
||||
auth.login.description: Geben Sie Ihre E-Mail-Adresse ein oder verwenden Sie die soziale Anmeldung, um auf Ihr Papra-Konto zuzugreifen.
|
||||
auth.login.login-with-provider: Mit {{ provider }} anmelden
|
||||
auth.login.no-account: Sie haben noch kein Konto?
|
||||
auth.login.register: Registrieren
|
||||
auth.login.form.email.label: E-Mail
|
||||
auth.login.form.email.placeholder: 'Beispiel: ada@papra.app'
|
||||
auth.login.form.email.required: Bitte geben Sie Ihre E-Mail-Adresse ein
|
||||
auth.login.form.email.invalid: Diese E-Mail-Adresse ist ungültig
|
||||
auth.login.form.password.label: Passwort
|
||||
auth.login.form.password.placeholder: Passwort festlegen
|
||||
auth.login.form.password.required: Bitte geben Sie Ihr Passwort ein
|
||||
auth.login.form.remember-me.label: Angemeldet bleiben
|
||||
auth.login.form.forgot-password.label: Passwort vergessen?
|
||||
auth.login.form.submit: Anmelden
|
||||
|
||||
auth.register.title: Bei Papra registrieren
|
||||
auth.register.description: Erstellen Sie ein Konto, um Papra zu nutzen.
|
||||
auth.register.register-with-email: Mit E-Mail registrieren
|
||||
auth.register.register-with-provider: Mit {{ provider }} registrieren
|
||||
auth.register.providers.google: Google
|
||||
auth.register.providers.github: GitHub
|
||||
auth.register.have-account: Sie haben bereits ein Konto?
|
||||
auth.register.login: Anmelden
|
||||
auth.register.registration-disabled.title: Registrierung ist deaktiviert
|
||||
auth.register.registration-disabled.description: Die Erstellung neuer Konten ist auf dieser Papra-Instanz derzeit deaktiviert. Nur Benutzer mit bestehenden Konten können sich anmelden. Wenn Sie dies für einen Fehler halten, wenden Sie sich bitte an den Administrator dieser Instanz.
|
||||
auth.register.form.email.label: E-Mail
|
||||
auth.register.form.email.placeholder: 'Beispiel: ada@papra.app'
|
||||
auth.register.form.email.required: Bitte geben Sie Ihre E-Mail-Adresse ein
|
||||
auth.register.form.email.invalid: Diese E-Mail-Adresse ist ungültig
|
||||
auth.register.form.password.label: Passwort
|
||||
auth.register.form.password.placeholder: Passwort festlegen
|
||||
auth.register.form.password.required: Bitte geben Sie Ihr Passwort ein
|
||||
auth.register.form.password.min-length: Das Passwort muss mindestens {{ minLength }} Zeichen lang sein
|
||||
auth.register.form.password.max-length: Das Passwort muss weniger als {{ maxLength }} Zeichen lang sein
|
||||
auth.register.form.name.label: Name
|
||||
auth.register.form.name.placeholder: 'Beispiel: Ada Lovelace'
|
||||
auth.register.form.name.required: Bitte geben Sie Ihren Namen ein
|
||||
auth.register.form.name.max-length: Der Name muss weniger als {{ maxLength }} Zeichen lang sein
|
||||
auth.register.form.submit: Registrieren
|
||||
|
||||
auth.email-validation-required.title: E-Mail verifizieren
|
||||
auth.email-validation-required.description: Eine Verifizierungs-E-Mail wurde an Ihre E-Mail-Adresse gesendet. Bitte verifizieren Sie Ihre E-Mail-Adresse, indem Sie auf den Link in der E-Mail klicken.
|
||||
|
||||
auth.legal-links.description: Indem Sie fortfahren, bestätigen Sie, dass Sie die {{ terms }} und die {{ privacy }} verstanden haben und ihnen zustimmen.
|
||||
auth.legal-links.terms: Nutzungsbedingungen
|
||||
auth.legal-links.privacy: Datenschutzrichtlinie
|
||||
|
||||
auth.no-auth-provider.title: Kein Authentifizierungsanbieter
|
||||
auth.no-auth-provider.description: Es gibt keine Authentifizierungsanbieter auf dieser Papra-Instanz. Bitte kontaktieren Sie den Administrator dieser Instanz, um sie zu aktivieren.
|
||||
|
||||
# User settings
|
||||
|
||||
user.settings.title: Benutzereinstellungen
|
||||
user.settings.description: Verwalten Sie hier Ihre Kontoeinstellungen.
|
||||
|
||||
user.settings.email.title: E-Mail-Adresse
|
||||
user.settings.email.description: Ihre E-Mail-Adresse kann nicht geändert werden.
|
||||
user.settings.email.label: E-Mail-Adresse
|
||||
|
||||
user.settings.name.title: Vollständiger Name
|
||||
user.settings.name.description: Ihr vollständiger Name wird anderen Organisationsmitgliedern angezeigt.
|
||||
user.settings.name.label: Vollständiger Name
|
||||
user.settings.name.placeholder: Z.B. Max Mustermann
|
||||
user.settings.name.update: Namen aktualisieren
|
||||
user.settings.name.updated: Ihr vollständiger Name wurde aktualisiert
|
||||
|
||||
user.settings.logout.title: Abmelden
|
||||
user.settings.logout.description: Melden Sie sich von Ihrem Konto ab. Sie können sich später wieder anmelden.
|
||||
user.settings.logout.button: Abmelden
|
||||
|
||||
# Organizations
|
||||
|
||||
organizations.list.title: Ihre Organisationen
|
||||
organizations.list.description: Organisationen sind eine Möglichkeit, Ihre Dokumente zu gruppieren und den Zugriff darauf zu verwalten. Sie können mehrere Organisationen erstellen und Ihre Teammitglieder zur Zusammenarbeit einladen.
|
||||
organizations.list.create-new: Neue Organisation erstellen
|
||||
|
||||
organizations.details.no-documents.title: Keine Dokumente
|
||||
organizations.details.no-documents.description: Es sind noch keine Dokumente in dieser Organisation vorhanden. Beginnen Sie mit dem Hochladen von Dokumenten.
|
||||
organizations.details.upload-documents: Dokumente hochladen
|
||||
organizations.details.documents-count: Dokumente insgesamt
|
||||
organizations.details.total-size: Gesamtgröße
|
||||
organizations.details.latest-documents: Neueste importierte Dokumente
|
||||
|
||||
organizations.create.title: Eine neue Organisation erstellen
|
||||
organizations.create.description: Ihre Dokumente werden nach Organisation gruppiert. Sie können mehrere Organisationen erstellen, um Ihre Dokumente zu trennen, z.B. für persönliche und geschäftliche Dokumente.
|
||||
organizations.create.back: Zurück
|
||||
organizations.create.error.max-count-reached: Sie haben die maximale Anzahl an Organisationen erreicht, die Sie erstellen können. Wenn Sie weitere erstellen möchten, kontaktieren Sie bitte den Support.
|
||||
organizations.create.form.name.label: Name der Organisation
|
||||
organizations.create.form.name.placeholder: Z.B. Acme Inc.
|
||||
organizations.create.form.name.required: Bitte geben Sie einen Organisationsnamen ein
|
||||
organizations.create.form.submit: Organisation erstellen
|
||||
organizations.create.success: Organisation erfolgreich erstellt
|
||||
|
||||
organizations.create-first.title: Erstellen Sie Ihre Organisation
|
||||
organizations.create-first.description: Ihre Dokumente werden nach Organisation gruppiert. Sie können mehrere Organisationen erstellen, um Ihre Dokumente zu trennen, z.B. für persönliche und geschäftliche Dokumente.
|
||||
organizations.create-first.default-name: Meine Organisation
|
||||
organizations.create-first.user-name: Organisation von "{{ name }}"
|
||||
|
||||
organization.settings.title: Organisationseinstellungen
|
||||
organization.settings.page.title: Organisationseinstellungen
|
||||
organization.settings.page.description: Verwalten Sie hier Ihre Organisationseinstellungen.
|
||||
organization.settings.name.title: Name der Organisation
|
||||
organization.settings.name.update: Namen aktualisieren
|
||||
organization.settings.name.placeholder: Z.B. Acme Inc.
|
||||
organization.settings.name.updated: Organisationsname aktualisiert
|
||||
organization.settings.subscription.title: Abonnement
|
||||
organization.settings.subscription.description: Verwalten Sie Ihre Abrechnung, Rechnungen und Zahlungsmethoden.
|
||||
organization.settings.subscription.manage: Abonnement verwalten
|
||||
organization.settings.subscription.error: Kundenportal-URL konnte nicht abgerufen werden
|
||||
organization.settings.delete.title: Organisation löschen
|
||||
organization.settings.delete.description: Das Löschen dieser Organisation entfernt dauerhaft alle damit verbundenen Daten.
|
||||
organization.settings.delete.confirm.title: Organisation löschen
|
||||
organization.settings.delete.confirm.message: Sind Sie sicher, dass Sie diese Organisation löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden und alle mit dieser Organisation verbundenen Daten werden dauerhaft entfernt.
|
||||
organization.settings.delete.confirm.confirm-button: Organisation löschen
|
||||
organization.settings.delete.confirm.cancel-button: Abbrechen
|
||||
organization.settings.delete.success: Organisation gelöscht
|
||||
|
||||
organizations.members.title: Mitglieder
|
||||
organizations.members.description: Verwalten Sie Ihre Organisationsmitglieder
|
||||
organizations.members.invite-member: Mitglied einladen
|
||||
organizations.members.invite-member-disabled-tooltip: Nur Administratoren oder Eigentümer können Mitglieder in die Organisation einladen
|
||||
organizations.members.remove-from-organization: Aus Organisation entfernen
|
||||
organizations.members.role: Rolle
|
||||
organizations.members.roles.owner: Eigentümer
|
||||
organizations.members.roles.admin: Administrator
|
||||
organizations.members.roles.member: Mitglied
|
||||
organizations.members.delete.confirm.title: Mitglied entfernen
|
||||
organizations.members.delete.confirm.message: Sind Sie sicher, dass Sie dieses Mitglied aus der Organisation entfernen möchten?
|
||||
organizations.members.delete.confirm.confirm-button: Entfernen
|
||||
organizations.members.delete.confirm.cancel-button: Abbrechen
|
||||
organizations.members.delete.success: Mitglied aus Organisation entfernt
|
||||
organizations.members.update-role.success: Mitgliederrolle aktualisiert
|
||||
organizations.members.table.headers.name: Name
|
||||
organizations.members.table.headers.email: E-Mail
|
||||
organizations.members.table.headers.role: Rolle
|
||||
organizations.members.table.headers.created: Erstellt
|
||||
organizations.members.table.headers.actions: Aktionen
|
||||
|
||||
organizations.invite-member.title: Mitglied einladen
|
||||
organizations.invite-member.description: Laden Sie ein Mitglied in Ihre Organisation ein
|
||||
organizations.invite-member.form.email.label: E-Mail
|
||||
organizations.invite-member.form.email.placeholder: 'Beispiel: ada@papra.app'
|
||||
organizations.invite-member.form.email.required: Bitte geben Sie eine gültige E-Mail-Adresse ein
|
||||
organizations.invite-member.form.role.label: Rolle
|
||||
organizations.invite-member.form.submit: In Organisation einladen
|
||||
organizations.invite-member.success.message: Mitglied eingeladen
|
||||
organizations.invite-member.success.description: Die E-Mail wurde in die Organisation eingeladen.
|
||||
organizations.invite-member.error.message: Mitglied konnte nicht eingeladen werden
|
||||
|
||||
organizations.invitations.title: Einladungen
|
||||
organizations.invitations.description: Verwalten Sie Ihre Organisationseinladungen
|
||||
organizations.invitations.list.cta: Mitglied einladen
|
||||
organizations.invitations.list.empty.title: Keine ausstehenden Einladungen
|
||||
organizations.invitations.list.empty.description: Sie wurden noch nicht zu Organisationen eingeladen.
|
||||
organizations.invitations.status.pending: Ausstehend
|
||||
organizations.invitations.status.accepted: Angenommen
|
||||
organizations.invitations.status.rejected: Abgelehnt
|
||||
organizations.invitations.status.expired: Abgelaufen
|
||||
organizations.invitations.status.cancelled: Abgebrochen
|
||||
organizations.invitations.resend: Einladung erneut senden
|
||||
organizations.invitations.cancel.title: Einladung abbrechen
|
||||
organizations.invitations.cancel.description: Sind Sie sicher, dass Sie diese Einladung abbrechen möchten?
|
||||
organizations.invitations.cancel.confirm: Einladung abbrechen
|
||||
organizations.invitations.cancel.cancel: Abbrechen
|
||||
organizations.invitations.resend.title: Einladung erneut senden
|
||||
organizations.invitations.resend.description: Sind Sie sicher, dass Sie diese Einladung erneut senden möchten? Dadurch wird eine neue E-Mail an den Empfänger gesendet.
|
||||
organizations.invitations.resend.confirm: Einladung erneut senden
|
||||
organizations.invitations.resend.cancel: Abbrechen
|
||||
|
||||
invitations.list.title: Einladungen
|
||||
invitations.list.description: Verwalten Sie Ihre Organisationseinladungen
|
||||
invitations.list.empty.title: Keine ausstehenden Einladungen
|
||||
invitations.list.empty.description: Sie wurden noch nicht zu Organisationen eingeladen.
|
||||
invitations.list.headers.organization: Organisation
|
||||
invitations.list.headers.status: Status
|
||||
invitations.list.headers.created: Erstellt
|
||||
invitations.list.headers.actions: Aktionen
|
||||
invitations.list.actions.accept: Annehmen
|
||||
invitations.list.actions.reject: Ablehnen
|
||||
invitations.list.actions.accept.success.message: Einladung angenommen
|
||||
invitations.list.actions.accept.success.description: Die Einladung wurde angenommen.
|
||||
invitations.list.actions.reject.success.message: Einladung abgelehnt
|
||||
invitations.list.actions.reject.success.description: Die Einladung wurde abgelehnt.
|
||||
|
||||
# Documents
|
||||
|
||||
documents.list.title: Dokumente
|
||||
documents.list.no-documents.title: Keine Dokumente
|
||||
documents.list.no-documents.description: Es sind noch keine Dokumente in dieser Organisation vorhanden. Beginnen Sie mit dem Hochladen von Dokumenten.
|
||||
documents.list.no-results: Keine Dokumente gefunden
|
||||
|
||||
documents.tabs.info: Info
|
||||
documents.tabs.content: Inhalt
|
||||
documents.tabs.activity: Aktivität
|
||||
documents.deleted.message: Dieses Dokument wurde gelöscht und wird in {{ days }} Tagen dauerhaft entfernt.
|
||||
documents.actions.download: Herunterladen
|
||||
documents.actions.open-in-new-tab: In neuem Tab öffnen
|
||||
documents.actions.restore: Wiederherstellen
|
||||
documents.actions.delete: Löschen
|
||||
documents.actions.edit: Bearbeiten
|
||||
documents.actions.cancel: Abbrechen
|
||||
documents.actions.save: Speichern
|
||||
documents.actions.saving: Speichern...
|
||||
documents.content.alert: Der Inhalt des Dokuments wird beim Hochladen automatisch aus dem Dokument extrahiert. Er wird nur für Such- und Indexierungszwecke verwendet.
|
||||
documents.info.id: ID
|
||||
documents.info.name: Name
|
||||
documents.info.type: Typ
|
||||
documents.info.size: Größe
|
||||
documents.info.created-at: Erstellt am
|
||||
documents.info.updated-at: Aktualisiert am
|
||||
documents.info.never: Nie
|
||||
|
||||
documents.rename.title: Dokument umbenennen
|
||||
documents.rename.form.name.label: Name
|
||||
documents.rename.form.name.placeholder: 'Beispiel: Rechnung 2024'
|
||||
documents.rename.form.name.required: Bitte geben Sie einen Namen für das Dokument ein
|
||||
documents.rename.form.name.max-length: Der Name muss weniger als 255 Zeichen lang sein
|
||||
documents.rename.form.submit: Dokument umbenennen
|
||||
documents.rename.success: Dokument erfolgreich umbenannt
|
||||
documents.rename.cancel: Abbrechen
|
||||
|
||||
import-documents.title.error: '{{ count }} Dokumente fehlgeschlagen'
|
||||
import-documents.title.success: '{{ count }} Dokumente importiert'
|
||||
import-documents.title.pending: '{{ count }} / {{ total }} Dokumente importiert'
|
||||
import-documents.title.none: Dokumente importieren
|
||||
import-documents.no-import-in-progress: Kein Dokumentimport im Gange
|
||||
|
||||
documents.deleted.title: Gelöschte Dokumente
|
||||
documents.deleted.empty.title: Keine gelöschten Dokumente
|
||||
documents.deleted.empty.description: Sie haben keine gelöschten Dokumente. Gelöschte Dokumente werden für {{ days }} Tage in den Papierkorb verschoben.
|
||||
documents.deleted.retention-notice: Alle gelöschten Dokumente werden für {{ days }} Tage im Papierkorb gespeichert. Nach Ablauf dieser Frist werden die Dokumente dauerhaft gelöscht und Sie können sie nicht wiederherstellen.
|
||||
documents.deleted.deleted-at: Gelöscht
|
||||
documents.deleted.restoring: Wiederherstellen...
|
||||
documents.deleted.deleting: Löschen...
|
||||
|
||||
documents.preview.unknown-file-type: Kein Vorschau verfügbar für diesen Dateityp
|
||||
documents.preview.binary-file: Dies scheint eine Binärdatei zu sein und kann nicht als Text angezeigt werden
|
||||
|
||||
trash.delete-all.button: Alles löschen
|
||||
trash.delete-all.confirm.title: Alle Dokumente dauerhaft löschen?
|
||||
trash.delete-all.confirm.description: Sind Sie sicher, dass Sie alle Dokumente aus dem Papierkorb dauerhaft löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.
|
||||
trash.delete-all.confirm.label: Löschen
|
||||
trash.delete-all.confirm.cancel: Abbrechen
|
||||
trash.delete.button: Löschen
|
||||
trash.delete.confirm.title: Dokument dauerhaft löschen?
|
||||
trash.delete.confirm.description: Sind Sie sicher, dass Sie dieses Dokument dauerhaft aus dem Papierkorb löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.
|
||||
trash.delete.confirm.label: Löschen
|
||||
trash.delete.confirm.cancel: Abbrechen
|
||||
trash.deleted.success.title: Dokument gelöscht
|
||||
trash.deleted.success.description: Das Dokument wurde dauerhaft gelöscht.
|
||||
|
||||
activity.document.created: Das Dokument wurde erstellt
|
||||
activity.document.updated.single: Das Feld {{ field }} wurde aktualisiert
|
||||
activity.document.updated.multiple: Die Felder {{ fields }} wurden aktualisiert
|
||||
activity.document.updated: Das Dokument wurde aktualisiert
|
||||
activity.document.deleted: Das Dokument wurde gelöscht
|
||||
activity.document.restored: Das Dokument wurde wiederhergestellt
|
||||
activity.document.tagged: Tag {{ tag }} wurde hinzugefügt
|
||||
activity.document.untagged: Tag {{ tag }} wurde entfernt
|
||||
|
||||
activity.document.user.name: von {{ name }}
|
||||
|
||||
activity.load-more: Mehr laden
|
||||
activity.no-more-activities: Keine weiteren Aktivitäten für dieses Dokument
|
||||
|
||||
# Tags
|
||||
|
||||
tags.no-tags.title: Noch keine Tags
|
||||
tags.no-tags.description: Diese Organisation hat noch keine Tags. Tags werden zur Kategorisierung von Dokumenten verwendet. Sie können Ihren Dokumenten Tags hinzufügen, um sie leichter zu finden und zu organisieren.
|
||||
tags.no-tags.create-tag: Tag erstellen
|
||||
|
||||
tags.title: Dokumenten-Tags
|
||||
tags.description: Tags werden zur Kategorisierung von Dokumenten verwendet. Sie können Ihren Dokumenten Tags hinzufügen, um sie leichter zu finden und zu organisieren.
|
||||
tags.create: Tag erstellen
|
||||
tags.update: Tag aktualisieren
|
||||
tags.delete: Tag löschen
|
||||
tags.delete.confirm.title: Tag löschen
|
||||
tags.delete.confirm.message: Sind Sie sicher, dass Sie diesen Tag löschen möchten? Das Löschen eines Tags entfernt ihn von allen Dokumenten.
|
||||
tags.delete.confirm.confirm-button: Löschen
|
||||
tags.delete.confirm.cancel-button: Abbrechen
|
||||
tags.delete.success: Tag erfolgreich gelöscht
|
||||
tags.create.success: Tag "{{ name }}" erfolgreich erstellt.
|
||||
tags.update.success: Tag "{{ name }}" erfolgreich aktualisiert.
|
||||
tags.form.name.label: Name
|
||||
tags.form.name.placeholder: Z.B. Verträge
|
||||
tags.form.name.required: Bitte geben Sie einen Tag-Namen ein
|
||||
tags.form.name.max-length: Tag-Name muss weniger als 64 Zeichen lang sein
|
||||
tags.form.color.label: Farbe
|
||||
tags.form.color.required: Bitte geben Sie eine Farbe ein
|
||||
tags.form.color.invalid: Die Hex-Farbe ist falsch formatiert.
|
||||
tags.form.description.label: Beschreibung
|
||||
tags.form.description.optional: (optional)
|
||||
tags.form.description.placeholder: Z.B. Alle von der Firma unterzeichneten Verträge
|
||||
tags.form.description.max-length: Beschreibung muss weniger als 256 Zeichen lang sein
|
||||
tags.form.no-description: Keine Beschreibung
|
||||
tags.table.headers.tag: Tag
|
||||
tags.table.headers.description: Beschreibung
|
||||
tags.table.headers.documents: Dokumente
|
||||
tags.table.headers.created: Erstellt
|
||||
tags.table.headers.actions: Aktionen
|
||||
|
||||
# Tagging rules
|
||||
|
||||
tagging-rules.field.name: Dokumentenname
|
||||
tagging-rules.field.content: Dokumenteninhalt
|
||||
tagging-rules.operator.equals: ist gleich
|
||||
tagging-rules.operator.not-equals: ist nicht gleich
|
||||
tagging-rules.operator.contains: enthält
|
||||
tagging-rules.operator.not-contains: enthält nicht
|
||||
tagging-rules.operator.starts-with: beginnt mit
|
||||
tagging-rules.operator.ends-with: endet mit
|
||||
tagging-rules.list.title: Tagging-Regeln
|
||||
tagging-rules.list.description: Verwalten Sie die Tagging-Regeln Ihrer Organisation, um Dokumente automatisch basierend auf von Ihnen definierten Bedingungen zu taggen.
|
||||
tagging-rules.list.demo-warning: 'Hinweis: Da dies eine Demo-Umgebung (ohne Server) ist, werden Tagging-Regeln nicht auf neu hinzugefügte Dokumente angewendet.'
|
||||
tagging-rules.list.no-tagging-rules.title: Keine Tagging-Regeln
|
||||
tagging-rules.list.no-tagging-rules.description: Erstellen Sie eine Tagging-Regel, um Ihre hinzugefügten Dokumente automatisch basierend auf von Ihnen definierten Bedingungen zu taggen.
|
||||
tagging-rules.list.no-tagging-rules.create-tagging-rule: Tagging-Regel erstellen
|
||||
tagging-rules.list.card.no-conditions: Keine Bedingungen
|
||||
tagging-rules.list.card.one-condition: 1 Bedingung
|
||||
tagging-rules.list.card.conditions: '{{ count }} Bedingungen'
|
||||
tagging-rules.list.card.delete: Regel löschen
|
||||
tagging-rules.list.card.edit: Regel bearbeiten
|
||||
tagging-rules.create.title: Tagging-Regel erstellen
|
||||
tagging-rules.create.success: Tagging-Regel erfolgreich erstellt
|
||||
tagging-rules.create.error: Tagging-Regel konnte nicht erstellt werden
|
||||
tagging-rules.create.submit: Regel erstellen
|
||||
tagging-rules.form.name.label: Name
|
||||
tagging-rules.form.name.placeholder: 'Beispiel: Rechnungen taggen'
|
||||
tagging-rules.form.name.min-length: Bitte geben Sie einen Namen für die Regel ein
|
||||
tagging-rules.form.name.max-length: Der Name muss weniger als 64 Zeichen lang sein
|
||||
tagging-rules.form.description.label: Beschreibung
|
||||
tagging-rules.form.description.placeholder: "Beispiel: Dokumente mit 'Rechnung' im Namen taggen"
|
||||
tagging-rules.form.description.max-length: Die Beschreibung muss weniger als 256 Zeichen lang sein
|
||||
tagging-rules.form.conditions.label: Bedingungen
|
||||
tagging-rules.form.conditions.description: Definieren Sie die Bedingungen, die erfüllt sein müssen, damit die Regel angewendet wird. Alle Bedingungen müssen erfüllt sein, damit die Regel angewendet wird.
|
||||
tagging-rules.form.conditions.add-condition: Bedingung hinzufügen
|
||||
tagging-rules.form.conditions.no-conditions.title: Keine Bedingungen
|
||||
tagging-rules.form.conditions.no-conditions.description: Sie haben dieser Regel keine Bedingungen hinzugefügt. Diese Regel wendet ihre Tags auf alle Dokumente an.
|
||||
tagging-rules.form.conditions.no-conditions.confirm: Regel ohne Bedingungen anwenden
|
||||
tagging-rules.form.conditions.no-conditions.cancel: Abbrechen
|
||||
tagging-rules.form.conditions.value.placeholder: 'Beispiel: Rechnung'
|
||||
tagging-rules.form.conditions.value.min-length: Bitte geben Sie einen Wert für die Bedingung ein
|
||||
tagging-rules.form.tags.label: Tags
|
||||
tagging-rules.form.tags.description: Wählen Sie die Tags aus, die auf die hinzugefügten Dokumente angewendet werden sollen, die den Bedingungen entsprechen
|
||||
tagging-rules.form.tags.min-length: Es ist mindestens ein anzuwendender Tag erforderlich
|
||||
tagging-rules.form.tags.add-tag: Tag erstellen
|
||||
tagging-rules.form.submit: Regel erstellen
|
||||
tagging-rules.update.title: Tagging-Regel aktualisieren
|
||||
tagging-rules.update.error: Tagging-Regel konnte nicht aktualisiert werden
|
||||
tagging-rules.update.submit: Regel aktualisieren
|
||||
tagging-rules.update.cancel: Abbrechen
|
||||
|
||||
# Intake emails
|
||||
|
||||
intake-emails.title: E-Mail-Eingang
|
||||
intake-emails.description: E-Mail-Eingangsadressen werden verwendet, um E-Mails automatisch in Papra aufzunehmen. Leiten Sie einfach E-Mails an die Eingangsadresse weiter und deren Anhänge werden zu den Dokumenten Ihrer Organisation hinzugefügt.
|
||||
intake-emails.disabled.title: E-Mail-Eingang ist deaktiviert
|
||||
intake-emails.disabled.description: E-Mail-Eingang ist auf dieser Instanz deaktiviert. Bitte kontaktieren Sie Ihren Administrator, um ihn zu aktivieren. Weitere Informationen finden Sie in der {{ documentation }}.
|
||||
intake-emails.disabled.documentation: Dokumentation
|
||||
intake-emails.info: Es werden nur aktivierte E-Mails aus zulässigen Ursprüngen verarbeitet. Sie können eine E-Mail-Eingangsadresse jederzeit aktivieren oder deaktivieren.
|
||||
intake-emails.empty.title: Keine E-Mail-Eingänge
|
||||
intake-emails.empty.description: Generieren Sie eine Eingangsadresse, um E-Mail-Anhänge einfach aufzunehmen.
|
||||
intake-emails.empty.generate: E-Mail-Eingang generieren
|
||||
intake-emails.count: '{{ count }} Eingangse-Mail{{ plural }} für diese Organisation'
|
||||
intake-emails.new: Neue Eingangse-Mail
|
||||
intake-emails.disabled-label: (Deaktiviert)
|
||||
intake-emails.no-origins: Keine zulässigen E-Mail-Ursprünge
|
||||
intake-emails.allowed-origins: Zulässig von {{ count }} Adresse{{ plural }}
|
||||
intake-emails.actions.enable: Aktivieren
|
||||
intake-emails.actions.disable: Deaktivieren
|
||||
intake-emails.actions.manage-origins: Ursprungsadressen verwalten
|
||||
intake-emails.actions.delete: Löschen
|
||||
intake-emails.delete.confirm.title: Eingangse-Mail löschen?
|
||||
intake-emails.delete.confirm.message: Sind Sie sicher, dass Sie diese Eingangse-Mail löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.
|
||||
intake-emails.delete.confirm.confirm-button: Eingangse-Mail löschen
|
||||
intake-emails.delete.confirm.cancel-button: Abbrechen
|
||||
intake-emails.delete.success: Eingangse-Mail gelöscht
|
||||
intake-emails.create.success: Eingangse-Mail erstellt
|
||||
intake-emails.update.success.enabled: Eingangse-Mail aktiviert
|
||||
intake-emails.update.success.disabled: Eingangse-Mail deaktiviert
|
||||
intake-emails.allowed-origins.title: Zulässige Ursprünge
|
||||
intake-emails.allowed-origins.description: Es werden nur E-Mails, die an {{ email }} von diesen Ursprüngen gesendet werden, verarbeitet. Wenn keine Ursprünge angegeben sind, werden alle E-Mails verworfen.
|
||||
intake-emails.allowed-origins.add.label: Zulässige Ursprungs-E-Mail hinzufügen
|
||||
intake-emails.allowed-origins.add.placeholder: Z.B. ada@papra.app
|
||||
intake-emails.allowed-origins.add.button: Hinzufügen
|
||||
intake-emails.allowed-origins.add.error.exists: Diese E-Mail ist bereits in den zulässigen Ursprüngen für diese Eingangse-Mail vorhanden
|
||||
|
||||
# API keys
|
||||
|
||||
api-keys.permissions.documents.title: Dokumente
|
||||
api-keys.permissions.documents.documents:create: Dokumente erstellen
|
||||
api-keys.permissions.documents.documents:read: Dokumente lesen
|
||||
api-keys.permissions.documents.documents:update: Dokumente aktualisieren
|
||||
api-keys.permissions.documents.documents:delete: Dokumente löschen
|
||||
api-keys.permissions.tags.title: Tags
|
||||
api-keys.permissions.tags.tags:create: Tags erstellen
|
||||
api-keys.permissions.tags.tags:read: Tags lesen
|
||||
api-keys.permissions.tags.tags:update: Tags aktualisieren
|
||||
api-keys.permissions.tags.tags:delete: Tags löschen
|
||||
api-keys.create.title: API-Schlüssel erstellen
|
||||
api-keys.create.description: Erstellen Sie einen neuen API-Schlüssel, um auf die Papra API zuzugreifen.
|
||||
api-keys.create.success: Der API-Schlüssel wurde erfolgreich erstellt.
|
||||
api-keys.create.back: Zurück zu den API-Schlüsseln
|
||||
api-keys.create.form.name.label: Name
|
||||
api-keys.create.form.name.placeholder: 'Beispiel: Mein API-Schlüssel'
|
||||
api-keys.create.form.name.required: Bitte geben Sie einen Namen für den API-Schlüssel ein
|
||||
api-keys.create.form.permissions.label: Berechtigungen
|
||||
api-keys.create.form.permissions.required: Bitte wählen Sie mindestens eine Berechtigung aus
|
||||
api-keys.create.form.submit: API-Schlüssel erstellen
|
||||
api-keys.create.created.title: API-Schlüssel erstellt
|
||||
api-keys.create.created.description: Der API-Schlüssel wurde erfolgreich erstellt. Speichern Sie ihn an einem sicheren Ort, da er nicht erneut angezeigt wird.
|
||||
api-keys.list.title: API-Schlüssel
|
||||
api-keys.list.description: Verwalten Sie hier Ihre API-Schlüssel.
|
||||
api-keys.list.create: API-Schlüssel erstellen
|
||||
api-keys.list.empty.title: Keine API-Schlüssel
|
||||
api-keys.list.empty.description: Erstellen Sie einen API-Schlüssel, um auf die Papra API zuzugreifen.
|
||||
api-keys.list.card.last-used: Zuletzt verwendet
|
||||
api-keys.list.card.never: Nie
|
||||
api-keys.list.card.created: Erstellt
|
||||
api-keys.delete.success: Der API-Schlüssel wurde erfolgreich gelöscht
|
||||
api-keys.delete.confirm.title: API-Schlüssel löschen
|
||||
api-keys.delete.confirm.message: Sind Sie sicher, dass Sie diesen API-Schlüssel löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.
|
||||
api-keys.delete.confirm.confirm-button: Löschen
|
||||
api-keys.delete.confirm.cancel-button: Abbrechen
|
||||
|
||||
# Webhooks
|
||||
|
||||
webhooks.list.title: Webhooks
|
||||
webhooks.list.description: Verwalten Sie Ihre Organisations-Webhooks
|
||||
webhooks.list.empty.title: Keine Webhooks
|
||||
webhooks.list.empty.description: Erstellen Sie Ihren ersten Webhook, um Ereignisse zu empfangen
|
||||
webhooks.list.create: Webhook erstellen
|
||||
webhooks.list.card.last-triggered: Zuletzt ausgelöst
|
||||
webhooks.list.card.never: Nie
|
||||
webhooks.list.card.created: Erstellt
|
||||
webhooks.create.title: Webhook erstellen
|
||||
webhooks.create.description: Erstellen Sie einen neuen Webhook, um Ereignisse zu empfangen
|
||||
webhooks.create.success: Webhook erfolgreich erstellt
|
||||
webhooks.create.back: Zurück
|
||||
webhooks.create.form.submit: Webhook erstellen
|
||||
webhooks.create.form.name.label: Webhook-Name
|
||||
webhooks.create.form.name.placeholder: Webhook-Namen eingeben
|
||||
webhooks.create.form.name.required: Name ist erforderlich
|
||||
webhooks.create.form.url.label: Webhook-URL
|
||||
webhooks.create.form.url.placeholder: Webhook-URL eingeben
|
||||
webhooks.create.form.url.required: URL ist erforderlich
|
||||
webhooks.create.form.url.invalid: URL ist ungültig
|
||||
webhooks.create.form.secret.label: Geheimnis
|
||||
webhooks.create.form.secret.placeholder: Webhook-Geheimnis eingeben
|
||||
webhooks.create.form.events.label: Ereignisse
|
||||
webhooks.create.form.events.required: Mindestens ein Ereignis ist erforderlich
|
||||
webhooks.update.title: Webhook bearbeiten
|
||||
webhooks.update.description: Aktualisieren Sie Ihre Webhook-Details
|
||||
webhooks.update.success: Webhook erfolgreich aktualisiert
|
||||
webhooks.update.submit: Webhook aktualisieren
|
||||
webhooks.update.cancel: Abbrechen
|
||||
webhooks.update.form.secret.placeholder: Neues Geheimnis eingeben
|
||||
webhooks.update.form.secret.placeholder-redacted: '[Geheimnis geschwärzt]'
|
||||
webhooks.update.form.rotate-secret.button: Geheimnis rotieren
|
||||
webhooks.delete.success: Webhook erfolgreich gelöscht
|
||||
webhooks.delete.confirm.title: Webhook löschen
|
||||
webhooks.delete.confirm.message: Sind Sie sicher, dass Sie diesen Webhook löschen möchten?
|
||||
webhooks.delete.confirm.confirm-button: Löschen
|
||||
webhooks.delete.confirm.cancel-button: Abbrechen
|
||||
|
||||
webhooks.events.documents.document:created.description: Dokument erstellt
|
||||
webhooks.events.documents.document:deleted.description: Dokument gelöscht
|
||||
|
||||
# Navigation
|
||||
|
||||
layout.menu.home: Startseite
|
||||
layout.menu.documents: Dokumente
|
||||
layout.menu.tags: Tags
|
||||
layout.menu.tagging-rules: Tagging-Regeln
|
||||
layout.menu.deleted-documents: Gelöschte Dokumente
|
||||
layout.menu.organization-settings: Einstellungen
|
||||
layout.menu.api-keys: API-Schlüssel
|
||||
layout.menu.settings: Einstellungen
|
||||
layout.menu.account: Konto
|
||||
layout.menu.general-settings: Allgemeine Einstellungen
|
||||
layout.menu.intake-emails: E-Mail-Eingang
|
||||
layout.menu.webhooks: Webhooks
|
||||
layout.menu.members: Mitglieder
|
||||
layout.menu.invitations: Einladungen
|
||||
|
||||
layout.theme.light: Heller Modus
|
||||
layout.theme.dark: Dunkler Modus
|
||||
layout.theme.system: Systemmodus
|
||||
|
||||
layout.search.placeholder: Suchen...
|
||||
layout.menu.import-document: Dokument importieren
|
||||
|
||||
user-menu.account-settings: Kontoeinstellungen
|
||||
user-menu.api-keys: API-Schlüssel
|
||||
user-menu.invitations: Einladungen
|
||||
user-menu.language: Sprache
|
||||
user-menu.logout: Abmelden
|
||||
|
||||
# Command palette
|
||||
|
||||
command-palette.search.placeholder: Befehle oder Dokumente suchen
|
||||
command-palette.no-results: Keine Ergebnisse gefunden
|
||||
command-palette.sections.documents: Dokumente
|
||||
command-palette.sections.theme: Thema
|
||||
|
||||
# API errors
|
||||
|
||||
api-errors.document.already_exists: Das Dokument existiert bereits
|
||||
api-errors.document.file_too_big: Die Dokumentdatei ist zu groß
|
||||
api-errors.intake_email.limit_reached: Die maximale Anzahl an Eingangse-Mails für diese Organisation wurde erreicht. Bitte aktualisieren Sie Ihren Plan, um weitere Eingangse-Mails zu erstellen.
|
||||
api-errors.user.max_organization_count_reached: Sie haben die maximale Anzahl an Organisationen erreicht, die Sie erstellen können. Wenn Sie weitere erstellen möchten, kontaktieren Sie bitte den Support.
|
||||
api-errors.default: Beim Verarbeiten Ihrer Anfrage ist ein Fehler aufgetreten.
|
||||
api-errors.organization.invitation_already_exists: Eine Einladung für diese E-Mail existiert bereits in dieser Organisation.
|
||||
api-errors.user.already_in_organization: Dieser Benutzer ist bereits in dieser Organisation.
|
||||
api-errors.user.organization_invitation_limit_reached: Die maximale Anzahl an Einladungen für heute wurde erreicht. Bitte versuchen Sie es morgen erneut.
|
||||
api-errors.demo.not_available: Diese Funktion ist in der Demo nicht verfügbar
|
||||
api-errors.tags.already_exists: Ein Tag mit diesem Namen existiert bereits für diese Organisation
|
||||
|
||||
# Not found
|
||||
|
||||
not-found.title: 404 - Seite nicht gefunden
|
||||
not-found.description: Entschuldigung, die gesuchte Seite scheint nicht zu existieren. Bitte überprüfen Sie die URL und versuchen Sie es erneut.
|
||||
not-found.back-to-home: Zurück zur Startseite
|
||||
|
||||
# Demo
|
||||
|
||||
demo.popup.description: Dies ist eine Demo-Umgebung, alle Daten werden im lokalen Speicher Ihres Browsers gespeichert.
|
||||
demo.popup.discord: Treten Sie dem {{ discordLink }} bei, um Support zu erhalten, Funktionen vorzuschlagen oder einfach nur zu chatten.
|
||||
demo.popup.discord-link-label: Discord-Server
|
||||
demo.popup.reset: Demo-Daten zurücksetzen
|
||||
demo.popup.hide: Ausblenden
|
||||
|
||||
# Color picker
|
||||
|
||||
color-picker.hue: Farbton
|
||||
color-picker.saturation: Sättigung
|
||||
color-picker.lightness: Helligkeit
|
||||
color-picker.select-color: Farbe auswählen
|
||||
color-picker.select-a-color: Eine Farbe auswählen
|
||||
@@ -71,6 +71,9 @@ auth.legal-links.description: By continuing, you acknowledge that you understand
|
||||
auth.legal-links.terms: Terms of Service
|
||||
auth.legal-links.privacy: Privacy Policy
|
||||
|
||||
auth.no-auth-provider.title: No authentication provider
|
||||
auth.no-auth-provider.description: There are no authentication providers enabled on this instance of Papra. Please contact the administrator of this instance to enable them.
|
||||
|
||||
# User settings
|
||||
|
||||
user.settings.title: User settings
|
||||
@@ -256,6 +259,9 @@ documents.deleted.deleted-at: Deleted
|
||||
documents.deleted.restoring: Restoring...
|
||||
documents.deleted.deleting: Deleting...
|
||||
|
||||
documents.preview.unknown-file-type: No preview available for this file type
|
||||
documents.preview.binary-file: This appears to be a binary file and cannot be displayed as text
|
||||
|
||||
trash.delete-all.button: Delete all
|
||||
trash.delete-all.confirm.title: Permanently delete all documents?
|
||||
trash.delete-all.confirm.description: Are you sure you want to permanently delete all documents from the trash? This action cannot be undone.
|
||||
@@ -306,7 +312,6 @@ tags.form.name.placeholder: Eg. Contracts
|
||||
tags.form.name.required: Please enter a tag name
|
||||
tags.form.name.max-length: Tag name must be less than 64 characters
|
||||
tags.form.color.label: Color
|
||||
tags.form.color.placeholder: 'Eg. #FF0000'
|
||||
tags.form.color.required: Please enter a color
|
||||
tags.form.color.invalid: The hex color is badly formatted.
|
||||
tags.form.description.label: Description
|
||||
@@ -550,3 +555,11 @@ demo.popup.discord: Join the {{ discordLink }} to get support, propose features
|
||||
demo.popup.discord-link-label: Discord server
|
||||
demo.popup.reset: Reset demo data
|
||||
demo.popup.hide: Hide
|
||||
|
||||
# Color picker
|
||||
|
||||
color-picker.hue: Hue
|
||||
color-picker.saturation: Saturation
|
||||
color-picker.lightness: Lightness
|
||||
color-picker.select-color: Select color
|
||||
color-picker.select-a-color: Select a color
|
||||
|
||||
565
apps/papra-client/src/locales/es.yml
Normal file
565
apps/papra-client/src/locales/es.yml
Normal file
@@ -0,0 +1,565 @@
|
||||
# Authentication
|
||||
|
||||
auth.request-password-reset.title: Restablece tu contraseña
|
||||
auth.request-password-reset.description: Ingresa tu correo electrónico para restablecer tu contraseña.
|
||||
auth.request-password-reset.requested: Si existe una cuenta para este correo electrónico, te enviaremos un correo para restablecer tu contraseña.
|
||||
auth.request-password-reset.back-to-login: Volver al inicio de sesión
|
||||
auth.request-password-reset.form.email.label: Correo electrónico
|
||||
auth.request-password-reset.form.email.placeholder: 'Ejemplo: ada@papra.app'
|
||||
auth.request-password-reset.form.email.required: Por favor, ingresa tu correo electrónico
|
||||
auth.request-password-reset.form.email.invalid: Esta dirección de correo electrónico no es válida
|
||||
auth.request-password-reset.form.submit: Solicitar restablecimiento de contraseña
|
||||
|
||||
auth.reset-password.title: Restablece tu contraseña
|
||||
auth.reset-password.description: Ingresa tu nueva contraseña para restablecerla.
|
||||
auth.reset-password.reset: Tu contraseña ha sido restablecida.
|
||||
auth.reset-password.back-to-login: Volver al inicio de sesión
|
||||
auth.reset-password.form.new-password.label: Nueva contraseña
|
||||
auth.reset-password.form.new-password.placeholder: 'Ejemplo: **********'
|
||||
auth.reset-password.form.new-password.required: Por favor, ingresa tu nueva contraseña
|
||||
auth.reset-password.form.new-password.min-length: La contraseña debe tener al menos {{ minLength }} caracteres
|
||||
auth.reset-password.form.new-password.max-length: La contraseña debe tener menos de {{ maxLength }} caracteres
|
||||
auth.reset-password.form.submit: Restablecer contraseña
|
||||
|
||||
auth.email-provider.open: Abrir {{ provider }}
|
||||
|
||||
auth.login.title: Inicia sesión en Papra
|
||||
auth.login.description: Ingresa tu correo electrónico o usa un inicio de sesión social para acceder a tu cuenta de Papra.
|
||||
auth.login.login-with-provider: Iniciar sesión con {{ provider }}
|
||||
auth.login.no-account: ¿No tienes una cuenta?
|
||||
auth.login.register: Registrarse
|
||||
auth.login.form.email.label: Correo electrónico
|
||||
auth.login.form.email.placeholder: 'Ejemplo: ada@papra.app'
|
||||
auth.login.form.email.required: Por favor, ingresa tu correo electrónico
|
||||
auth.login.form.email.invalid: Esta dirección de correo electrónico no es válida
|
||||
auth.login.form.password.label: Contraseña
|
||||
auth.login.form.password.placeholder: Establece una contraseña
|
||||
auth.login.form.password.required: Por favor, ingresa tu contraseña
|
||||
auth.login.form.remember-me.label: Recordarme
|
||||
auth.login.form.forgot-password.label: ¿Olvidaste tu contraseña?
|
||||
auth.login.form.submit: Iniciar sesión
|
||||
|
||||
auth.register.title: Regístrate en Papra
|
||||
auth.register.description: Crea una cuenta para comenzar a usar Papra.
|
||||
auth.register.register-with-email: Registrarse con correo electrónico
|
||||
auth.register.register-with-provider: Registrarse con {{ provider }}
|
||||
auth.register.providers.google: Google
|
||||
auth.register.providers.github: GitHub
|
||||
auth.register.have-account: ¿Ya tienes una cuenta?
|
||||
auth.register.login: Iniciar sesión
|
||||
auth.register.registration-disabled.title: El registro está deshabilitado
|
||||
auth.register.registration-disabled.description: La creación de nuevas cuentas está deshabilitada actualmente en esta instancia de Papra. Solo los usuarios con cuentas existentes pueden iniciar sesión. Si crees que esto es un error, contacta al administrador de esta instancia.
|
||||
auth.register.form.email.label: Correo electrónico
|
||||
auth.register.form.email.placeholder: 'Ejemplo: ada@papra.app'
|
||||
auth.register.form.email.required: Por favor, ingresa tu correo electrónico
|
||||
auth.register.form.email.invalid: Esta dirección de correo electrónico no es válida
|
||||
auth.register.form.password.label: Contraseña
|
||||
auth.register.form.password.placeholder: Establece una contraseña
|
||||
auth.register.form.password.required: Por favor, ingresa tu contraseña
|
||||
auth.register.form.password.min-length: La contraseña debe tener al menos {{ minLength }} caracteres
|
||||
auth.register.form.password.max-length: La contraseña debe tener menos de {{ maxLength }} caracteres
|
||||
auth.register.form.name.label: Nombre
|
||||
auth.register.form.name.placeholder: 'Ejemplo: Ada Lovelace'
|
||||
auth.register.form.name.required: Por favor, ingresa tu nombre
|
||||
auth.register.form.name.max-length: El nombre debe tener menos de {{ maxLength }} caracteres
|
||||
auth.register.form.submit: Registrarse
|
||||
|
||||
auth.email-validation-required.title: Verifica tu correo electrónico
|
||||
auth.email-validation-required.description: Se ha enviado un correo de verificación a tu dirección de correo electrónico. Por favor, verifica tu correo haciendo clic en el enlace del correo.
|
||||
|
||||
auth.legal-links.description: Al continuar, reconoces que entiendes y aceptas los {{ terms }} y la {{ privacy }}.
|
||||
auth.legal-links.terms: Términos de servicio
|
||||
auth.legal-links.privacy: Política de privacidad
|
||||
|
||||
auth.no-auth-provider.title: No hay proveedor de autenticación
|
||||
auth.no-auth-provider.description: No hay proveedores de autenticación habilitados en esta instancia de Papra. Por favor, contacta al administrador de esta instancia para habilitarlos.
|
||||
|
||||
# User settings
|
||||
|
||||
user.settings.title: Configuración de usuario
|
||||
user.settings.description: Administra aquí la configuración de tu cuenta.
|
||||
|
||||
user.settings.email.title: Dirección de correo electrónico
|
||||
user.settings.email.description: Tu dirección de correo electrónico no puede ser cambiada.
|
||||
user.settings.email.label: Correo electrónico
|
||||
|
||||
user.settings.name.title: Nombre completo
|
||||
user.settings.name.description: Tu nombre completo se muestra a otros miembros de la organización.
|
||||
user.settings.name.label: Nombre completo
|
||||
user.settings.name.placeholder: Ej. John Doe
|
||||
user.settings.name.update: Actualizar nombre
|
||||
user.settings.name.updated: Tu nombre completo ha sido actualizado
|
||||
|
||||
user.settings.logout.title: Cerrar sesión
|
||||
user.settings.logout.description: Cierra la sesión de tu cuenta. Puedes iniciar sesión nuevamente más tarde.
|
||||
user.settings.logout.button: Cerrar sesión
|
||||
|
||||
# Organizations
|
||||
|
||||
organizations.list.title: Tus organizaciones
|
||||
organizations.list.description: Las organizaciones son una manera de agrupar tus documentos y gestionar el acceso a ellos. Puedes crear varias organizaciones e invitar a tus compañeros para colaborar.
|
||||
organizations.list.create-new: Crear nueva organización
|
||||
|
||||
organizations.details.no-documents.title: Sin documentos
|
||||
organizations.details.no-documents.description: Aún no hay documentos en esta organización. Comienza subiendo algunos documentos.
|
||||
organizations.details.upload-documents: Subir documentos
|
||||
organizations.details.documents-count: documentos en total
|
||||
organizations.details.total-size: tamaño total
|
||||
organizations.details.latest-documents: Últimos documentos importados
|
||||
|
||||
organizations.create.title: Crear una nueva organización
|
||||
organizations.create.description: Tus documentos se agruparán por organización. Puedes crear varias organizaciones para separar tus documentos, por ejemplo, para documentos personales y de trabajo.
|
||||
organizations.create.back: Volver
|
||||
organizations.create.error.max-count-reached: Has alcanzado el número máximo de organizaciones que puedes crear, si necesitas crear más, contacta al soporte.
|
||||
organizations.create.form.name.label: Nombre de la organización
|
||||
organizations.create.form.name.placeholder: Ej. Acme Inc.
|
||||
organizations.create.form.name.required: Por favor, ingresa un nombre para la organización
|
||||
organizations.create.form.submit: Crear organización
|
||||
organizations.create.success: Organización creada exitosamente
|
||||
|
||||
organizations.create-first.title: Crea tu organización
|
||||
organizations.create-first.description: Tus documentos se agruparán por organización. Puedes crear varias organizaciones para separar tus documentos, por ejemplo, para documentos personales y de trabajo.
|
||||
organizations.create-first.default-name: Mi organización
|
||||
organizations.create-first.user-name: Organización de {{ name }}
|
||||
|
||||
organization.settings.title: Configuración de la organización
|
||||
organization.settings.page.title: Configuración de la organización
|
||||
organization.settings.page.description: Administra la configuración de tu organización aquí.
|
||||
organization.settings.name.title: Nombre de la organización
|
||||
organization.settings.name.update: Actualizar nombre
|
||||
organization.settings.name.placeholder: Ej. Acme Inc.
|
||||
organization.settings.name.updated: Nombre de la organización actualizado
|
||||
organization.settings.subscription.title: Suscripción
|
||||
organization.settings.subscription.description: Administra tu facturación, facturas y métodos de pago.
|
||||
organization.settings.subscription.manage: Gestionar suscripción
|
||||
organization.settings.subscription.error: Error al obtener la URL del portal del cliente
|
||||
organization.settings.delete.title: Eliminar organización
|
||||
organization.settings.delete.description: Eliminar esta organización eliminará permanentemente todos los datos asociados a ella.
|
||||
organization.settings.delete.confirm.title: Eliminar organización
|
||||
organization.settings.delete.confirm.message: ¿Estás seguro de que deseas eliminar esta organización? Esta acción no se puede deshacer, y todos los datos asociados se eliminarán permanentemente.
|
||||
organization.settings.delete.confirm.confirm-button: Eliminar organización
|
||||
organization.settings.delete.confirm.cancel-button: Cancelar
|
||||
organization.settings.delete.success: Organización eliminada
|
||||
|
||||
organizations.members.title: Miembros
|
||||
organizations.members.description: Administra los miembros de tu organización
|
||||
organizations.members.invite-member: Invitar miembro
|
||||
organizations.members.invite-member-disabled-tooltip: Solo los administradores o propietarios pueden invitar miembros a la organización
|
||||
organizations.members.remove-from-organization: Eliminar de la organización
|
||||
organizations.members.role: Rol
|
||||
organizations.members.roles.owner: Propietario
|
||||
organizations.members.roles.admin: Administrador
|
||||
organizations.members.roles.member: Miembro
|
||||
organizations.members.delete.confirm.title: Eliminar miembro
|
||||
organizations.members.delete.confirm.message: ¿Estás seguro de que deseas eliminar a este miembro de la organización?
|
||||
organizations.members.delete.confirm.confirm-button: Eliminar
|
||||
organizations.members.delete.confirm.cancel-button: Cancelar
|
||||
organizations.members.delete.success: Miembro eliminado de la organización
|
||||
organizations.members.update-role.success: Rol del miembro actualizado
|
||||
organizations.members.table.headers.name: Nombre
|
||||
organizations.members.table.headers.email: Correo electrónico
|
||||
organizations.members.table.headers.role: Rol
|
||||
organizations.members.table.headers.created: Creado
|
||||
organizations.members.table.headers.actions: Acciones
|
||||
|
||||
organizations.invite-member.title: Invitar miembro
|
||||
organizations.invite-member.description: Invita a un miembro a tu organización
|
||||
organizations.invite-member.form.email.label: Correo electrónico
|
||||
organizations.invite-member.form.email.placeholder: 'Ejemplo: ada@papra.app'
|
||||
organizations.invite-member.form.email.required: Por favor, ingresa un correo electrónico válido
|
||||
organizations.invite-member.form.role.label: Rol
|
||||
organizations.invite-member.form.submit: Invitar a la organización
|
||||
organizations.invite-member.success.message: Miembro invitado
|
||||
organizations.invite-member.success.description: El correo ha sido invitado a la organización.
|
||||
organizations.invite-member.error.message: Error al invitar al miembro
|
||||
|
||||
organizations.invitations.title: Invitaciones
|
||||
organizations.invitations.description: Administra las invitaciones de tu organización
|
||||
organizations.invitations.list.cta: Invitar miembro
|
||||
organizations.invitations.list.empty.title: No hay invitaciones pendientes
|
||||
organizations.invitations.list.empty.description: Aún no te han invitado a ninguna organización.
|
||||
organizations.invitations.status.pending: Pendiente
|
||||
organizations.invitations.status.accepted: Aceptada
|
||||
organizations.invitations.status.rejected: Rechazada
|
||||
organizations.invitations.status.expired: Expirada
|
||||
organizations.invitations.status.cancelled: Cancelada
|
||||
organizations.invitations.resend: Reenviar invitación
|
||||
organizations.invitations.cancel.title: Cancelar invitación
|
||||
organizations.invitations.cancel.description: ¿Estás seguro de que deseas cancelar esta invitación?
|
||||
organizations.invitations.cancel.confirm: Cancelar invitación
|
||||
organizations.invitations.cancel.cancel: Cancelar
|
||||
organizations.invitations.resend.title: Reenviar invitación
|
||||
organizations.invitations.resend.description: ¿Estás seguro de que deseas reenviar esta invitación? Esto enviará un nuevo correo al destinatario.
|
||||
organizations.invitations.resend.confirm: Reenviar invitación
|
||||
organizations.invitations.resend.cancel: Cancelar
|
||||
|
||||
invitations.list.title: Invitaciones
|
||||
invitations.list.description: Administra las invitaciones de tu organización
|
||||
invitations.list.empty.title: No hay invitaciones pendientes
|
||||
invitations.list.empty.description: Aún no te han invitado a ninguna organización.
|
||||
invitations.list.headers.organization: Organización
|
||||
invitations.list.headers.status: Estado
|
||||
invitations.list.headers.created: Creado
|
||||
invitations.list.headers.actions: Acciones
|
||||
invitations.list.actions.accept: Aceptar
|
||||
invitations.list.actions.reject: Rechazar
|
||||
invitations.list.actions.accept.success.message: Invitación aceptada
|
||||
invitations.list.actions.accept.success.description: La invitación ha sido aceptada.
|
||||
invitations.list.actions.reject.success.message: Invitación rechazada
|
||||
invitations.list.actions.reject.success.description: La invitación ha sido rechazada.
|
||||
|
||||
# Documents
|
||||
|
||||
documents.list.title: Documentos
|
||||
documents.list.no-documents.title: Sin documentos
|
||||
documents.list.no-documents.description: Aún no hay documentos en esta organización. Comienza subiendo algunos documentos.
|
||||
documents.list.no-results: No se encontraron documentos
|
||||
|
||||
documents.tabs.info: Información
|
||||
documents.tabs.content: Contenido
|
||||
documents.tabs.activity: Actividad
|
||||
documents.deleted.message: Este documento ha sido eliminado y será borrado permanentemente en {{ days }} días.
|
||||
documents.actions.download: Descargar
|
||||
documents.actions.open-in-new-tab: Abrir en una nueva pestaña
|
||||
documents.actions.restore: Restaurar
|
||||
documents.actions.delete: Eliminar
|
||||
documents.actions.edit: Editar
|
||||
documents.actions.cancel: Cancelar
|
||||
documents.actions.save: Guardar
|
||||
documents.actions.saving: Guardando...
|
||||
documents.content.alert: El contenido del documento se extrae automáticamente al subirlo. Solo se utiliza para búsqueda e indexación.
|
||||
documents.info.id: ID
|
||||
documents.info.name: Nombre
|
||||
documents.info.type: Tipo
|
||||
documents.info.size: Tamaño
|
||||
documents.info.created-at: Creado el
|
||||
documents.info.updated-at: Actualizado el
|
||||
documents.info.never: Nunca
|
||||
|
||||
documents.rename.title: Renombrar documento
|
||||
documents.rename.form.name.label: Nombre
|
||||
documents.rename.form.name.placeholder: 'Ejemplo: Factura 2024'
|
||||
documents.rename.form.name.required: Por favor, ingresa un nombre para el documento
|
||||
documents.rename.form.name.max-length: El nombre debe tener menos de 255 caracteres
|
||||
documents.rename.form.submit: Renombrar documento
|
||||
documents.rename.success: Documento renombrado exitosamente
|
||||
documents.rename.cancel: Cancelar
|
||||
|
||||
import-documents.title.error: '{{ count }} documentos fallidos'
|
||||
import-documents.title.success: '{{ count }} documentos importados'
|
||||
import-documents.title.pending: '{{ count }} / {{ total }} documentos importados'
|
||||
import-documents.title.none: Importar documentos
|
||||
import-documents.no-import-in-progress: No hay importación de documentos en curso
|
||||
|
||||
documents.deleted.title: Documentos eliminados
|
||||
documents.deleted.empty.title: No hay documentos eliminados
|
||||
documents.deleted.empty.description: No tienes documentos eliminados. Los documentos eliminados se moverán a la papelera durante {{ days }} días.
|
||||
documents.deleted.retention-notice: Todos los documentos eliminados se almacenan en la papelera durante {{ days }} días. Pasado este tiempo, los documentos serán eliminados permanentemente y no podrás restaurarlos.
|
||||
documents.deleted.deleted-at: Eliminado
|
||||
documents.deleted.restoring: Restaurando...
|
||||
documents.deleted.deleting: Eliminando...
|
||||
|
||||
documents.preview.unknown-file-type: No hay vista previa disponible para este tipo de archivo
|
||||
documents.preview.binary-file: Este parece ser un archivo binario y no puede mostrarse como texto
|
||||
|
||||
trash.delete-all.button: Eliminar todo
|
||||
trash.delete-all.confirm.title: ¿Eliminar permanentemente todos los documentos?
|
||||
trash.delete-all.confirm.description: ¿Estás seguro de que deseas eliminar permanentemente todos los documentos de la papelera? Esta acción no se puede deshacer.
|
||||
trash.delete-all.confirm.label: Eliminar
|
||||
trash.delete-all.confirm.cancel: Cancelar
|
||||
trash.delete.button: Eliminar
|
||||
trash.delete.confirm.title: ¿Eliminar permanentemente el documento?
|
||||
trash.delete.confirm.description: ¿Estás seguro de que deseas eliminar permanentemente este documento de la papelera? Esta acción no se puede deshacer.
|
||||
trash.delete.confirm.label: Eliminar
|
||||
trash.delete.confirm.cancel: Cancelar
|
||||
trash.deleted.success.title: Documento eliminado
|
||||
trash.deleted.success.description: El documento ha sido eliminado permanentemente.
|
||||
|
||||
activity.document.created: El documento ha sido creado
|
||||
activity.document.updated.single: El campo {{ field }} ha sido actualizado
|
||||
activity.document.updated.multiple: Los campos {{ fields }} han sido actualizados
|
||||
activity.document.updated: El documento ha sido actualizado
|
||||
activity.document.deleted: El documento ha sido eliminado
|
||||
activity.document.restored: El documento ha sido restaurado
|
||||
activity.document.tagged: La etiqueta {{ tag }} ha sido añadida
|
||||
activity.document.untagged: La etiqueta {{ tag }} ha sido eliminada
|
||||
|
||||
activity.document.user.name: por {{ name }}
|
||||
|
||||
activity.load-more: Cargar más
|
||||
activity.no-more-activities: No hay más actividades para este documento
|
||||
|
||||
# Tags
|
||||
|
||||
tags.no-tags.title: Aún no hay etiquetas
|
||||
tags.no-tags.description: Esta organización no tiene etiquetas aún. Las etiquetas se utilizan para categorizar documentos. Puedes añadir etiquetas a tus documentos para que sean más fáciles de encontrar y organizar.
|
||||
tags.no-tags.create-tag: Crear etiqueta
|
||||
|
||||
tags.title: Etiquetas de documentos
|
||||
tags.description: Las etiquetas se utilizan para categorizar documentos. Puedes añadir etiquetas a tus documentos para que sean más fáciles de encontrar y organizar.
|
||||
tags.create: Crear etiqueta
|
||||
tags.update: Actualizar etiqueta
|
||||
tags.delete: Eliminar etiqueta
|
||||
tags.delete.confirm.title: Eliminar etiqueta
|
||||
tags.delete.confirm.message: ¿Estás seguro de que deseas eliminar esta etiqueta? Eliminar una etiqueta la quitará de todos los documentos.
|
||||
tags.delete.confirm.confirm-button: Eliminar
|
||||
tags.delete.confirm.cancel-button: Cancelar
|
||||
tags.delete.success: Etiqueta eliminada exitosamente
|
||||
tags.create.success: Etiqueta "{{ name }}" creada exitosamente.
|
||||
tags.update.success: Etiqueta "{{ name }}" actualizada exitosamente.
|
||||
tags.form.name.label: Nombre
|
||||
tags.form.name.placeholder: Ej. Contratos
|
||||
tags.form.name.required: Por favor, ingresa un nombre para la etiqueta
|
||||
tags.form.name.max-length: El nombre de la etiqueta debe tener menos de 64 caracteres
|
||||
tags.form.color.label: Color
|
||||
tags.form.color.required: Por favor, ingresa un color
|
||||
tags.form.color.invalid: El color hexadecimal tiene un formato incorrecto.
|
||||
tags.form.description.label: Descripción
|
||||
tags.form.description.optional: (opcional)
|
||||
tags.form.description.placeholder: Ej. Todos los contratos firmados por la empresa
|
||||
tags.form.description.max-length: La descripción debe tener menos de 256 caracteres
|
||||
tags.form.no-description: Sin descripción
|
||||
tags.table.headers.tag: Etiqueta
|
||||
tags.table.headers.description: Descripción
|
||||
tags.table.headers.documents: Documentos
|
||||
tags.table.headers.created: Creado
|
||||
tags.table.headers.actions: Acciones
|
||||
|
||||
# Tagging rules
|
||||
|
||||
tagging-rules.field.name: nombre del documento
|
||||
tagging-rules.field.content: contenido del documento
|
||||
tagging-rules.operator.equals: es igual a
|
||||
tagging-rules.operator.not-equals: no es igual a
|
||||
tagging-rules.operator.contains: contiene
|
||||
tagging-rules.operator.not-contains: no contiene
|
||||
tagging-rules.operator.starts-with: comienza con
|
||||
tagging-rules.operator.ends-with: termina con
|
||||
tagging-rules.list.title: Reglas de etiquetado
|
||||
tagging-rules.list.description: Administra las reglas de etiquetado de tu organización, para etiquetar documentos automáticamente según las condiciones que definas.
|
||||
tagging-rules.list.demo-warning: 'Nota: Como este es un entorno de demostración (sin servidor), las reglas de etiquetado no se aplicarán a los nuevos documentos añadidos.'
|
||||
tagging-rules.list.no-tagging-rules.title: No hay reglas de etiquetado
|
||||
tagging-rules.list.no-tagging-rules.description: Crea una regla de etiquetado para etiquetar automáticamente tus documentos añadidos según las condiciones que definas.
|
||||
tagging-rules.list.no-tagging-rules.create-tagging-rule: Crear regla de etiquetado
|
||||
tagging-rules.list.card.no-conditions: Sin condiciones
|
||||
tagging-rules.list.card.one-condition: 1 condición
|
||||
tagging-rules.list.card.conditions: '{{ count }} condiciones'
|
||||
tagging-rules.list.card.delete: Eliminar regla
|
||||
tagging-rules.list.card.edit: Editar regla
|
||||
tagging-rules.create.title: Crear regla de etiquetado
|
||||
tagging-rules.create.success: Regla de etiquetado creada exitosamente
|
||||
tagging-rules.create.error: Error al crear la regla de etiquetado
|
||||
tagging-rules.create.submit: Crear regla
|
||||
tagging-rules.form.name.label: Nombre
|
||||
tagging-rules.form.name.placeholder: 'Ejemplo: Etiquetar facturas'
|
||||
tagging-rules.form.name.min-length: Por favor, ingresa un nombre para la regla
|
||||
tagging-rules.form.name.max-length: El nombre debe tener menos de 64 caracteres
|
||||
tagging-rules.form.description.label: Descripción
|
||||
tagging-rules.form.description.placeholder: "Ejemplo: Etiquetar documentos con 'factura' en el nombre"
|
||||
tagging-rules.form.description.max-length: La descripción debe tener menos de 256 caracteres
|
||||
tagging-rules.form.conditions.label: Condiciones
|
||||
tagging-rules.form.conditions.description: Define las condiciones que deben cumplirse para que la regla se aplique. Todas las condiciones deben cumplirse.
|
||||
tagging-rules.form.conditions.add-condition: Añadir condición
|
||||
tagging-rules.form.conditions.no-conditions.title: Sin condiciones
|
||||
tagging-rules.form.conditions.no-conditions.description: No añadiste ninguna condición a esta regla. Esta regla aplicará sus etiquetas a todos los documentos.
|
||||
tagging-rules.form.conditions.no-conditions.confirm: Aplicar regla sin condiciones
|
||||
tagging-rules.form.conditions.no-conditions.cancel: Cancelar
|
||||
tagging-rules.form.conditions.value.placeholder: 'Ejemplo: factura'
|
||||
tagging-rules.form.conditions.value.min-length: Por favor, ingresa un valor para la condición
|
||||
tagging-rules.form.tags.label: Etiquetas
|
||||
tagging-rules.form.tags.description: Selecciona las etiquetas a aplicar a los documentos añadidos que cumplan las condiciones
|
||||
tagging-rules.form.tags.min-length: Se requiere al menos una etiqueta para aplicar
|
||||
tagging-rules.form.tags.add-tag: Crear etiqueta
|
||||
tagging-rules.form.submit: Crear regla
|
||||
tagging-rules.update.title: Actualizar regla de etiquetado
|
||||
tagging-rules.update.error: Error al actualizar la regla de etiquetado
|
||||
tagging-rules.update.submit: Actualizar regla
|
||||
tagging-rules.update.cancel: Cancelar
|
||||
|
||||
# Intake emails
|
||||
|
||||
intake-emails.title: Correos de ingreso
|
||||
intake-emails.description: Las direcciones de correo de ingreso se usan para ingresar automáticamente correos en Papra. Solo reenvía correos a la dirección de ingreso y sus archivos adjuntos se agregarán a los documentos de tu organización.
|
||||
intake-emails.disabled.title: Correos de ingreso deshabilitados
|
||||
intake-emails.disabled.description: Los correos de ingreso están deshabilitados en esta instancia. Contacta a tu administrador para habilitarlos. Consulta la {{ documentation }} para más información.
|
||||
intake-emails.disabled.documentation: documentación
|
||||
intake-emails.info: Solo los correos de ingreso habilitados desde orígenes permitidos serán procesados. Puedes habilitar o deshabilitar un correo de ingreso en cualquier momento.
|
||||
intake-emails.empty.title: Sin correos de ingreso
|
||||
intake-emails.empty.description: Genera una dirección de ingreso para añadir fácilmente archivos adjuntos de correos.
|
||||
intake-emails.empty.generate: Generar correo de ingreso
|
||||
intake-emails.count: '{{ count }} correo{{ plural }} de ingreso para esta organización'
|
||||
intake-emails.new: Nuevo correo de ingreso
|
||||
intake-emails.disabled-label: (Deshabilitado)
|
||||
intake-emails.no-origins: Sin orígenes de correo permitidos
|
||||
intake-emails.allowed-origins: Permitido desde {{ count }} dirección{{ plural }}
|
||||
intake-emails.actions.enable: Habilitar
|
||||
intake-emails.actions.disable: Deshabilitar
|
||||
intake-emails.actions.manage-origins: Gestionar direcciones de origen
|
||||
intake-emails.actions.delete: Eliminar
|
||||
intake-emails.delete.confirm.title: ¿Eliminar correo de ingreso?
|
||||
intake-emails.delete.confirm.message: ¿Estás seguro de que deseas eliminar este correo de ingreso? Esta acción no se puede deshacer.
|
||||
intake-emails.delete.confirm.confirm-button: Eliminar correo de ingreso
|
||||
intake-emails.delete.confirm.cancel-button: Cancelar
|
||||
intake-emails.delete.success: Correo de ingreso eliminado
|
||||
intake-emails.create.success: Correo de ingreso creado
|
||||
intake-emails.update.success.enabled: Correo de ingreso habilitado
|
||||
intake-emails.update.success.disabled: Correo de ingreso deshabilitado
|
||||
intake-emails.allowed-origins.title: Orígenes permitidos
|
||||
intake-emails.allowed-origins.description: Solo los correos enviados a {{ email }} desde estos orígenes serán procesados. Si no se especifican orígenes, todos los correos serán descartados.
|
||||
intake-emails.allowed-origins.add.label: Añadir dirección de correo permitida
|
||||
intake-emails.allowed-origins.add.placeholder: Ej. ada@papra.app
|
||||
intake-emails.allowed-origins.add.button: Añadir
|
||||
intake-emails.allowed-origins.add.error.exists: Este correo ya está en los orígenes permitidos para este correo de ingreso
|
||||
|
||||
# API keys
|
||||
|
||||
api-keys.permissions.documents.title: Documentos
|
||||
api-keys.permissions.documents.documents:create: Crear documentos
|
||||
api-keys.permissions.documents.documents:read: Leer documentos
|
||||
api-keys.permissions.documents.documents:update: Actualizar documentos
|
||||
api-keys.permissions.documents.documents:delete: Eliminar documentos
|
||||
api-keys.permissions.tags.title: Etiquetas
|
||||
api-keys.permissions.tags.tags:create: Crear etiquetas
|
||||
api-keys.permissions.tags.tags:read: Leer etiquetas
|
||||
api-keys.permissions.tags.tags:update: Actualizar etiquetas
|
||||
api-keys.permissions.tags.tags:delete: Eliminar etiquetas
|
||||
api-keys.create.title: Crear clave API
|
||||
api-keys.create.description: Crea una nueva clave API para acceder a la API de Papra.
|
||||
api-keys.create.success: La clave API ha sido creada exitosamente.
|
||||
api-keys.create.back: Volver a claves API
|
||||
api-keys.create.form.name.label: Nombre
|
||||
api-keys.create.form.name.placeholder: 'Ejemplo: Mi clave API'
|
||||
api-keys.create.form.name.required: Por favor, ingresa un nombre para la clave API
|
||||
api-keys.create.form.permissions.label: Permisos
|
||||
api-keys.create.form.permissions.required: Por favor, selecciona al menos un permiso
|
||||
api-keys.create.form.submit: Crear clave API
|
||||
api-keys.create.created.title: Clave API creada
|
||||
api-keys.create.created.description: La clave API ha sido creada exitosamente. Guárdala en un lugar seguro ya que no se mostrará nuevamente.
|
||||
api-keys.list.title: Claves API
|
||||
api-keys.list.description: Administra tus claves API aquí.
|
||||
api-keys.list.create: Crear clave API
|
||||
api-keys.list.empty.title: Sin claves API
|
||||
api-keys.list.empty.description: Crea una clave API para acceder a la API de Papra.
|
||||
api-keys.list.card.last-used: Último uso
|
||||
api-keys.list.card.never: Nunca
|
||||
api-keys.list.card.created: Creado
|
||||
api-keys.delete.success: La clave API ha sido eliminada exitosamente
|
||||
api-keys.delete.confirm.title: Eliminar clave API
|
||||
api-keys.delete.confirm.message: ¿Estás seguro de que deseas eliminar esta clave API? Esta acción no se puede deshacer.
|
||||
api-keys.delete.confirm.confirm-button: Eliminar
|
||||
api-keys.delete.confirm.cancel-button: Cancelar
|
||||
|
||||
# Webhooks
|
||||
|
||||
webhooks.list.title: Webhooks
|
||||
webhooks.list.description: Administra los webhooks de tu organización
|
||||
webhooks.list.empty.title: Sin webhooks
|
||||
webhooks.list.empty.description: Crea tu primer webhook para empezar a recibir eventos
|
||||
webhooks.list.create: Crear webhook
|
||||
webhooks.list.card.last-triggered: Última activación
|
||||
webhooks.list.card.never: Nunca
|
||||
webhooks.list.card.created: Creado
|
||||
webhooks.create.title: Crear webhook
|
||||
webhooks.create.description: Crea un nuevo webhook para recibir eventos
|
||||
webhooks.create.success: Webhook creado exitosamente
|
||||
webhooks.create.back: Volver
|
||||
webhooks.create.form.submit: Crear webhook
|
||||
webhooks.create.form.name.label: Nombre del webhook
|
||||
webhooks.create.form.name.placeholder: Ingresa el nombre del webhook
|
||||
webhooks.create.form.name.required: El nombre es obligatorio
|
||||
webhooks.create.form.url.label: URL del webhook
|
||||
webhooks.create.form.url.placeholder: Ingresa la URL del webhook
|
||||
webhooks.create.form.url.required: La URL es obligatoria
|
||||
webhooks.create.form.url.invalid: La URL no es válida
|
||||
webhooks.create.form.secret.label: Secreto
|
||||
webhooks.create.form.secret.placeholder: Ingresa el secreto del webhook
|
||||
webhooks.create.form.events.label: Eventos
|
||||
webhooks.create.form.events.required: Se requiere al menos un evento
|
||||
webhooks.update.title: Editar webhook
|
||||
webhooks.update.description: Actualiza los detalles de tu webhook
|
||||
webhooks.update.success: Webhook actualizado exitosamente
|
||||
webhooks.update.submit: Actualizar webhook
|
||||
webhooks.update.cancel: Cancelar
|
||||
webhooks.update.form.secret.placeholder: Ingresa un nuevo secreto
|
||||
webhooks.update.form.secret.placeholder-redacted: '[Secreto oculto]'
|
||||
webhooks.update.form.rotate-secret.button: Rotar secreto
|
||||
webhooks.delete.success: Webhook eliminado exitosamente
|
||||
webhooks.delete.confirm.title: Eliminar webhook
|
||||
webhooks.delete.confirm.message: ¿Estás seguro de que deseas eliminar este webhook?
|
||||
webhooks.delete.confirm.confirm-button: Eliminar
|
||||
webhooks.delete.confirm.cancel-button: Cancelar
|
||||
|
||||
webhooks.events.documents.document:created.description: Documento creado
|
||||
webhooks.events.documents.document:deleted.description: Documento eliminado
|
||||
|
||||
# Navigation
|
||||
|
||||
layout.menu.home: Inicio
|
||||
layout.menu.documents: Documentos
|
||||
layout.menu.tags: Etiquetas
|
||||
layout.menu.tagging-rules: Reglas de etiquetado
|
||||
layout.menu.deleted-documents: Documentos eliminados
|
||||
layout.menu.organization-settings: Configuración
|
||||
layout.menu.api-keys: Claves API
|
||||
layout.menu.settings: Ajustes
|
||||
layout.menu.account: Cuenta
|
||||
layout.menu.general-settings: Ajustes generales
|
||||
layout.menu.intake-emails: Correos de ingreso
|
||||
layout.menu.webhooks: Webhooks
|
||||
layout.menu.members: Miembros
|
||||
layout.menu.invitations: Invitaciones
|
||||
|
||||
layout.theme.light: Modo claro
|
||||
layout.theme.dark: Modo oscuro
|
||||
layout.theme.system: Modo del sistema
|
||||
|
||||
layout.search.placeholder: Buscar...
|
||||
layout.menu.import-document: Importar un documento
|
||||
|
||||
user-menu.account-settings: Ajustes de cuenta
|
||||
user-menu.api-keys: Claves API
|
||||
user-menu.invitations: Invitaciones
|
||||
user-menu.language: Idioma
|
||||
user-menu.logout: Cerrar sesión
|
||||
|
||||
# Command palette
|
||||
|
||||
command-palette.search.placeholder: Buscar comandos o documentos
|
||||
command-palette.no-results: No se encontraron resultados
|
||||
command-palette.sections.documents: Documentos
|
||||
command-palette.sections.theme: Tema
|
||||
|
||||
# API errors
|
||||
|
||||
api-errors.document.already_exists: El documento ya existe
|
||||
api-errors.document.file_too_big: El archivo del documento es demasiado grande
|
||||
api-errors.intake_email.limit_reached: Se ha alcanzado el número máximo de correos de ingreso para esta organización. Por favor, mejora tu plan para crear más correos de ingreso.
|
||||
api-errors.user.max_organization_count_reached: Has alcanzado el número máximo de organizaciones que puedes crear, si necesitas crear más, contacta al soporte.
|
||||
api-errors.default: Ocurrió un error al procesar tu solicitud.
|
||||
api-errors.organization.invitation_already_exists: Ya existe una invitación para este correo electrónico en esta organización.
|
||||
api-errors.user.already_in_organization: Este usuario ya está en esta organización.
|
||||
api-errors.user.organization_invitation_limit_reached: Se ha alcanzado el número máximo de invitaciones para hoy. Por favor, inténtalo de nuevo mañana.
|
||||
api-errors.demo.not_available: Esta función no está disponible en la demostración
|
||||
api-errors.tags.already_exists: Ya existe una etiqueta con este nombre en esta organización
|
||||
|
||||
# Not found
|
||||
|
||||
not-found.title: 404 - No encontrado
|
||||
not-found.description: Lo sentimos, la página que buscas no parece existir. Por favor, verifica la URL e inténtalo de nuevo.
|
||||
not-found.back-to-home: Volver al inicio
|
||||
|
||||
# Demo
|
||||
|
||||
demo.popup.description: Este es un entorno de demostración, todos los datos se guardan en el almacenamiento local de tu navegador.
|
||||
demo.popup.discord: Únete a {{ discordLink }} para obtener soporte, proponer funciones o simplemente chatear.
|
||||
demo.popup.discord-link-label: Servidor de Discord
|
||||
demo.popup.reset: Restablecer datos de la demo
|
||||
demo.popup.hide: Ocultar
|
||||
|
||||
# Color picker
|
||||
|
||||
color-picker.hue: Matiz
|
||||
color-picker.saturation: Saturación
|
||||
color-picker.lightness: Luminosidad
|
||||
color-picker.select-color: Seleccionar color
|
||||
color-picker.select-a-color: Selecciona un color
|
||||
@@ -71,6 +71,9 @@ auth.legal-links.description: En continuant, vous reconnaissez que vous comprene
|
||||
auth.legal-links.terms: Conditions d'utilisation
|
||||
auth.legal-links.privacy: Politique de confidentialité
|
||||
|
||||
auth.no-auth-provider.title: Aucun fournisseur d'authentification
|
||||
auth.no-auth-provider.description: Il n'y a pas de fournisseurs d'authentification activés sur cette instance de Papra. Veuillez contacter l'administrateur de cette instance pour les activer.
|
||||
|
||||
# User settings
|
||||
|
||||
user.settings.title: Paramètres de l'utilisateur
|
||||
@@ -256,6 +259,9 @@ documents.deleted.deleted-at: Supprimé
|
||||
documents.deleted.restoring: Restauration...
|
||||
documents.deleted.deleting: Suppression...
|
||||
|
||||
documents.preview.unknown-file-type: Aucun aperçu disponible pour ce type de fichier
|
||||
documents.preview.binary-file: Cela semble être un fichier binaire et ne peut pas être affiché en texte
|
||||
|
||||
trash.delete-all.button: Supprimer tous les documents
|
||||
trash.delete-all.confirm.title: Supprimer définitivement tous les documents ?
|
||||
trash.delete-all.confirm.description: Êtes-vous sûr de vouloir supprimer définitivement tous les documents de la corbeille ? Cette action est irréversible.
|
||||
@@ -306,7 +312,6 @@ tags.form.name.placeholder: 'Exemple: Contrats'
|
||||
tags.form.name.required: Veuillez entrer un nom pour le tag
|
||||
tags.form.name.max-length: Le nom du tag doit contenir moins de 64 caractères
|
||||
tags.form.color.label: Couleur
|
||||
tags.form.color.placeholder: 'Exemple: #FF0000'
|
||||
tags.form.color.required: Veuillez entrer une couleur
|
||||
tags.form.color.invalid: La couleur hexadécimale est mal formatée.
|
||||
tags.form.description.label: Description
|
||||
@@ -550,3 +555,11 @@ demo.popup.discord: Rejoignez le {{ discordLink }} pour obtenir de l'aide, propo
|
||||
demo.popup.discord-link-label: Serveur Discord
|
||||
demo.popup.reset: Réinitialiser la démo
|
||||
demo.popup.hide: Masquer
|
||||
|
||||
# Color picker
|
||||
|
||||
color-picker.hue: Teinte
|
||||
color-picker.saturation: Saturation
|
||||
color-picker.lightness: Luminosité
|
||||
color-picker.select-color: Sélectionner la couleur
|
||||
color-picker.select-a-color: Sélectionner une couleur
|
||||
|
||||
565
apps/papra-client/src/locales/pl.yml
Normal file
565
apps/papra-client/src/locales/pl.yml
Normal file
@@ -0,0 +1,565 @@
|
||||
# Authentication
|
||||
|
||||
auth.request-password-reset.title: Zresetuj swoje hasło
|
||||
auth.request-password-reset.description: Wprowadź swój adres e-mail, aby zresetować hasło.
|
||||
auth.request-password-reset.requested: Jeśli istnieje konto powiązane z tym adresem e-mail, otrzymasz wiadomość umożliwiającą zresetowanie hasła.
|
||||
auth.request-password-reset.back-to-login: Wróć do logowania
|
||||
auth.request-password-reset.form.email.label: E-mail
|
||||
auth.request-password-reset.form.email.placeholder: 'Przykład: ada@papra.app'
|
||||
auth.request-password-reset.form.email.required: Wprowadź swój adres e-mail
|
||||
auth.request-password-reset.form.email.invalid: Ten adres e-mail jest nieprawidłowy
|
||||
auth.request-password-reset.form.submit: Poproś o zresetowanie hasła
|
||||
|
||||
auth.reset-password.title: Zresetuj swoje hasło
|
||||
auth.reset-password.description: Wprowadź nowe hasło, aby zresetować dotychczasowe.
|
||||
auth.reset-password.reset: Twoje hasło zostało zresetowane.
|
||||
auth.reset-password.back-to-login: Wróć do logowania
|
||||
auth.reset-password.form.new-password.label: Nowe hasło
|
||||
auth.reset-password.form.new-password.placeholder: 'Przykład: **********'
|
||||
auth.reset-password.form.new-password.required: Wprowadź nowe hasło
|
||||
auth.reset-password.form.new-password.min-length: Hasło musi mieć co najmniej {{ minLength }} znaków
|
||||
auth.reset-password.form.new-password.max-length: Hasło musi mieć mniej niż {{ maxLength }} znaków
|
||||
auth.reset-password.form.submit: Zresetuj hasło
|
||||
|
||||
auth.email-provider.open: Otwórz {{ provider }}
|
||||
|
||||
auth.login.title: Zaloguj się do Papra
|
||||
auth.login.description: Wprowadź swój adres e-mail lub skorzystaj z logowania federacyjnego, aby uzyskać dostęp do swojego konta Papra.
|
||||
auth.login.login-with-provider: Zaloguj się za pomocą {{ provider }}
|
||||
auth.login.no-account: Nie masz konta?
|
||||
auth.login.register: Zarejestruj się
|
||||
auth.login.form.email.label: E-mail
|
||||
auth.login.form.email.placeholder: 'Przykład: ada@papra.app'
|
||||
auth.login.form.email.required: Wprowadź swój adres e-mail
|
||||
auth.login.form.email.invalid: Ten adres e-mail jest nieprawidłowy
|
||||
auth.login.form.password.label: Hasło
|
||||
auth.login.form.password.placeholder: Ustaw hasło
|
||||
auth.login.form.password.required: Wprowadź swoje hasło
|
||||
auth.login.form.remember-me.label: Zapamiętaj mnie
|
||||
auth.login.form.forgot-password.label: Zapomniałeś hasła?
|
||||
auth.login.form.submit: Zaloguj się
|
||||
|
||||
auth.register.title: Zarejestruj się w Papra
|
||||
auth.register.description: Utwórz konto, aby zacząć korzystać z Papra.
|
||||
auth.register.register-with-email: Zarejestruj się przez e-mail
|
||||
auth.register.register-with-provider: Zarejestruj się przez {{ provider }}
|
||||
auth.register.providers.google: Google
|
||||
auth.register.providers.github: GitHub
|
||||
auth.register.have-account: Masz już konto?
|
||||
auth.register.login: Zaloguj się
|
||||
auth.register.registration-disabled.title: Rejestracja jest wyłączona
|
||||
auth.register.registration-disabled.description: Tworzenie nowych kont na tej instancji Papra jest obecnie wyłączone. Tylko użytkownicy z istniejącymi kontami mogą się zalogować. Jeśli uważasz, że to błąd, skontaktuj się z administratorem tej instancji.
|
||||
auth.register.form.email.label: E-mail
|
||||
auth.register.form.email.placeholder: 'Przykład: ada@papra.app'
|
||||
auth.register.form.email.required: Wprowadź swój adres e-mail
|
||||
auth.register.form.email.invalid: Ten adres e-mail jest nieprawidłowy
|
||||
auth.register.form.password.label: Hasło
|
||||
auth.register.form.password.placeholder: Ustaw hasło
|
||||
auth.register.form.password.required: Wprowadź swoje hasło
|
||||
auth.register.form.password.min-length: Hasło musi mieć co najmniej {{ minLength }} znaków
|
||||
auth.register.form.password.max-length: Hasło musi mieć mniej niż {{ maxLength }} znaków
|
||||
auth.register.form.name.label: Imię i nazwisko
|
||||
auth.register.form.name.placeholder: 'Przykład: Ada Lovelace'
|
||||
auth.register.form.name.required: Wprowadź swoje imię i nazwisko
|
||||
auth.register.form.name.max-length: Imię i nazwisko musi mieć mniej niż {{ maxLength }} znaków
|
||||
auth.register.form.submit: Zarejestruj się
|
||||
|
||||
auth.email-validation-required.title: Zweryfikuj swój adres e-mail
|
||||
auth.email-validation-required.description: Wiadomość weryfikacyjna została wysłana na Twój adres e-mail. Zweryfikuj swój adres e-mail, klikając link w wiadomości.
|
||||
|
||||
auth.legal-links.description: Kontynuując, potwierdzasz, że rozumiesz i zgadzasz się na {{ terms }} oraz {{ privacy }}.
|
||||
auth.legal-links.terms: Warunki korzystania z usługi
|
||||
auth.legal-links.privacy: Polityka prywatności
|
||||
|
||||
auth.no-auth-provider.title: Brak dostawcy uwierzytelniania
|
||||
auth.no-auth-provider.description: Na tej instancji Papra nie ma włączonych dostawców uwierzytelniania. Skontaktuj się z administratorem tej instancji, aby je włączyć.
|
||||
|
||||
# User settings
|
||||
|
||||
user.settings.title: Ustawienia użytkownika
|
||||
user.settings.description: Zarządzaj ustawieniami swojego konta.
|
||||
|
||||
user.settings.email.title: Adres e-mail
|
||||
user.settings.email.description: Twój adres e-mail nie może być zmieniony.
|
||||
user.settings.email.label: Adres e-mail
|
||||
|
||||
user.settings.name.title: Imię i nazwisko
|
||||
user.settings.name.description: Twoje imię i nazwisko jest wyświetlane innym członkom organizacji.
|
||||
user.settings.name.label: Imię i nazwisko
|
||||
user.settings.name.placeholder: 'Przykład: Jan Kowalski'
|
||||
user.settings.name.update: Zaktualizuj imię i nazwisko
|
||||
user.settings.name.updated: Twoje imię i nazwisko zostało zaktualizowane
|
||||
|
||||
user.settings.logout.title: Wyloguj się
|
||||
user.settings.logout.description: Wyloguj się ze swojego konta. Możesz zalogować się ponownie później.
|
||||
user.settings.logout.button: Wyloguj się
|
||||
|
||||
# Organizations
|
||||
|
||||
organizations.list.title: Twoje organizacje
|
||||
organizations.list.description: Organizacje to sposób grupowania dokumentów i zarządzania dostępem do nich. Możesz tworzyć wiele organizacji i zapraszać członków zespołu do współpracy.
|
||||
organizations.list.create-new: Utwórz nową organizację
|
||||
|
||||
organizations.details.no-documents.title: Brak dokumentów
|
||||
organizations.details.no-documents.description: W tej organizacji nie ma jeszcze żadnych dokumentów. Zacznij od przesłania kilku dokumentów.
|
||||
organizations.details.upload-documents: Prześlij dokumenty
|
||||
organizations.details.documents-count: dokumentów w sumie
|
||||
organizations.details.total-size: całkowity rozmiar
|
||||
organizations.details.latest-documents: Najnowsze zaimportowane dokumenty
|
||||
|
||||
organizations.create.title: Utwórz nową organizację
|
||||
organizations.create.description: Twoje dokumenty będą grupowane według organizacji. Możesz tworzyć wiele organizacji, aby oddzielić swoje dokumenty, na przykład dokumenty osobiste i służbowe.
|
||||
organizations.create.back: Wstecz
|
||||
organizations.create.error.max-count-reached: Osiągnąłeś maksymalną liczbę organizacji, które możesz utworzyć. Jeśli potrzebujesz utworzyć więcej, skontaktuj się z pomocą techniczną.
|
||||
organizations.create.form.name.label: Nazwa organizacji
|
||||
organizations.create.form.name.placeholder: 'Przykład: Acme Inc.'
|
||||
organizations.create.form.name.required: Wprowadź nazwę organizacji
|
||||
organizations.create.form.submit: Utwórz organizację
|
||||
organizations.create.success: Organizacja została pomyślnie utworzona
|
||||
|
||||
organizations.create-first.title: Utwórz swoją organizację
|
||||
organizations.create-first.description: Twoje dokumenty będą grupowane według organizacji. Możesz tworzyć wiele organizacji, aby oddzielić swoje dokumenty, na przykład dokumenty osobiste i służbowe.
|
||||
organizations.create-first.default-name: Moja organizacja
|
||||
organizations.create-first.user-name: 'Organizacja użytkownika {{ name }}'
|
||||
|
||||
organization.settings.title: Ustawienia organizacji
|
||||
organization.settings.page.title: Ustawienia organizacji
|
||||
organization.settings.page.description: Zarządzaj ustawieniami swojej organizacji.
|
||||
organization.settings.name.title: Nazwa organizacji
|
||||
organization.settings.name.update: Zaktualizuj nazwę
|
||||
organization.settings.name.placeholder: 'Przykład: Acme Inc.'
|
||||
organization.settings.name.updated: Nazwa organizacji została zaktualizowana
|
||||
organization.settings.subscription.title: Subskrypcja
|
||||
organization.settings.subscription.description: Zarządzaj swoim rozliczeniem, fakturami i metodami płatności.
|
||||
organization.settings.subscription.manage: Zarządzaj subskrypcją
|
||||
organization.settings.subscription.error: Nie udało się uzyskać adresu URL portalu klienta
|
||||
organization.settings.delete.title: Usuń organizację
|
||||
organization.settings.delete.description: Usunięcie tej organizacji spowoduje trwałe usunięcie wszystkich danych z nią związanych.
|
||||
organization.settings.delete.confirm.title: Usuń organizację
|
||||
organization.settings.delete.confirm.message: Czy na pewno chcesz usunąć tę organizację? Ta operacja jest nieodwracalna, a wszystkie dane związane z tą organizacją zostaną trwale usunięte.
|
||||
organization.settings.delete.confirm.confirm-button: Usuń organizację
|
||||
organization.settings.delete.confirm.cancel-button: Anuluj
|
||||
organization.settings.delete.success: Organizacja została usunięta
|
||||
|
||||
organizations.members.title: Członkowie
|
||||
organizations.members.description: Zarządzaj członkami swojej organizacji
|
||||
organizations.members.invite-member: Zaproś członka
|
||||
organizations.members.invite-member-disabled-tooltip: Tylko administratorzy lub właściciele mogą zapraszać członków do organizacji
|
||||
organizations.members.remove-from-organization: Usuń z organizacji
|
||||
organizations.members.role: Rola
|
||||
organizations.members.roles.owner: Właściciel
|
||||
organizations.members.roles.admin: Administrator
|
||||
organizations.members.roles.member: Członek
|
||||
organizations.members.delete.confirm.title: Usuń członka
|
||||
organizations.members.delete.confirm.message: Czy na pewno chcesz usunąć tego członka z organizacji?
|
||||
organizations.members.delete.confirm.confirm-button: Usuń
|
||||
organizations.members.delete.confirm.cancel-button: Anuluj
|
||||
organizations.members.delete.success: Członek został usunięty z organizacji
|
||||
organizations.members.update-role.success: Rola członka została zaktualizowana
|
||||
organizations.members.table.headers.name: Imię i nazwisko
|
||||
organizations.members.table.headers.email: E-mail
|
||||
organizations.members.table.headers.role: Rola
|
||||
organizations.members.table.headers.created: Utworzono
|
||||
organizations.members.table.headers.actions: Akcje
|
||||
|
||||
organizations.invite-member.title: Zaproś członka
|
||||
organizations.invite-member.description: Zaproś członka do swojej organizacji
|
||||
organizations.invite-member.form.email.label: E-mail
|
||||
organizations.invite-member.form.email.placeholder: 'Przykład: ada@papra.app'
|
||||
organizations.invite-member.form.email.required: Wprowadź poprawny adres e-mail
|
||||
organizations.invite-member.form.role.label: Rola
|
||||
organizations.invite-member.form.submit: Zaproś do organizacji
|
||||
organizations.invite-member.success.message: Członek zaproszony
|
||||
organizations.invite-member.success.description: E-mail został zaproszony do organizacji.
|
||||
organizations.invite-member.error.message: Nie udało się zaprosić członka
|
||||
|
||||
organizations.invitations.title: Zaproszenia
|
||||
organizations.invitations.description: Zarządzaj zaproszeniami do swojej organizacji
|
||||
organizations.invitations.list.cta: Zaproś członka
|
||||
organizations.invitations.list.empty.title: Brak oczekujących zaproszeń
|
||||
organizations.invitations.list.empty.description: Nie zostałeś zaproszony do żadnej organizacji.
|
||||
organizations.invitations.status.pending: Oczekujące
|
||||
organizations.invitations.status.accepted: Zaakceptowane
|
||||
organizations.invitations.status.rejected: Odrzucone
|
||||
organizations.invitations.status.expired: Wygasłe
|
||||
organizations.invitations.status.cancelled: Anulowane
|
||||
organizations.invitations.resend: Wyślij zaproszenie ponownie
|
||||
organizations.invitations.cancel.title: Anuluj zaproszenie
|
||||
organizations.invitations.cancel.description: Czy na pewno chcesz anulować to zaproszenie?
|
||||
organizations.invitations.cancel.confirm: Anuluj zaproszenie
|
||||
organizations.invitations.cancel.cancel: Anuluj
|
||||
organizations.invitations.resend.title: Wyślij zaproszenie ponownie
|
||||
organizations.invitations.resend.description: Czy na pewno chcesz wysłać ponownie to zaproszenie? To spowoduje wysłanie nowego e-maila do odbiorcy.
|
||||
organizations.invitations.resend.confirm: Wyślij zaproszenie ponownie
|
||||
organizations.invitations.resend.cancel: Anuluj
|
||||
|
||||
invitations.list.title: Zaproszenia
|
||||
invitations.list.description: Zarządzaj zaproszeniami do swojej organizacji
|
||||
invitations.list.empty.title: Brak oczekujących zaproszeń
|
||||
invitations.list.empty.description: Nie zostałeś zaproszony do żadnej organizacji.
|
||||
invitations.list.headers.organization: Organizacja
|
||||
invitations.list.headers.status: Status
|
||||
invitations.list.headers.created: Utworzono
|
||||
invitations.list.headers.actions: Akcje
|
||||
invitations.list.actions.accept: Zaakceptuj
|
||||
invitations.list.actions.reject: Odrzuć
|
||||
invitations.list.actions.accept.success.message: Zaproszenie zaakceptowane
|
||||
invitations.list.actions.accept.success.description: Zaproszenie zostało zaakceptowane.
|
||||
invitations.list.actions.reject.success.message: Zaproszenie odrzucone
|
||||
invitations.list.actions.reject.success.description: Zaproszenie zostało odrzucone.
|
||||
|
||||
# Documents
|
||||
|
||||
documents.list.title: Dokumenty
|
||||
documents.list.no-documents.title: Brak dokumentów
|
||||
documents.list.no-documents.description: W tej organizacji nie ma jeszcze żadnych dokumentów. Zacznij od przesłania kilku dokumentów.
|
||||
documents.list.no-results: Nie znaleziono dokumentów
|
||||
|
||||
documents.tabs.info: Informacje
|
||||
documents.tabs.content: Treść
|
||||
documents.tabs.activity: Aktywność
|
||||
documents.deleted.message: Ten dokument został usunięty i zostanie trwale usunięty za {{ days }} dni.
|
||||
documents.actions.download: Pobierz
|
||||
documents.actions.open-in-new-tab: Otwórz w nowej karcie
|
||||
documents.actions.restore: Przywróć
|
||||
documents.actions.delete: Usuń
|
||||
documents.actions.edit: Edytuj
|
||||
documents.actions.cancel: Anuluj
|
||||
documents.actions.save: Zapisz
|
||||
documents.actions.saving: Zapisywanie...
|
||||
documents.content.alert: Zawartość dokumentu jest automatycznie wyodrębniana z dokumentu podczas przesyłania. Jest używana tylko do wyszukiwania i indeksowania.
|
||||
documents.info.id: ID
|
||||
documents.info.name: Nazwa
|
||||
documents.info.type: Typ
|
||||
documents.info.size: Rozmiar
|
||||
documents.info.created-at: Utworzono
|
||||
documents.info.updated-at: Zaktualizowano
|
||||
documents.info.never: Nigdy
|
||||
|
||||
documents.rename.title: Zmień nazwę dokumentu
|
||||
documents.rename.form.name.label: Nazwa
|
||||
documents.rename.form.name.placeholder: 'Przykład: Faktura 2024'
|
||||
documents.rename.form.name.required: Proszę wprowadzić nazwę dokumentu
|
||||
documents.rename.form.name.max-length: Nazwa musi mieć mniej niż 255 znaków
|
||||
documents.rename.form.submit: Zmień nazwę dokumentu
|
||||
documents.rename.success: Nazwa dokumentu została pomyślnie zmieniona
|
||||
documents.rename.cancel: Anuluj
|
||||
|
||||
import-documents.title.error: '{{ count }} dokumentów nie powiodły się'
|
||||
import-documents.title.success: '{{ count }} dokumentów zaimportowane'
|
||||
import-documents.title.pending: '{{ count }} / {{ total }} dokumentów zaimportowanych'
|
||||
import-documents.title.none: Importuj dokumenty
|
||||
import-documents.no-import-in-progress: Brak importu dokumentów w toku
|
||||
|
||||
documents.deleted.title: Usunięte dokumenty
|
||||
documents.deleted.empty.title: Brak usuniętych dokumentów
|
||||
documents.deleted.empty.description: Nie masz żadnych usuniętych dokumentów. Dokumenty, które są usuwane, zostaną przeniesione do kosza na {{ days }} dni.
|
||||
documents.deleted.retention-notice: Wszystkie usunięte dokumenty są przechowywane w koszu przez {{ days }} dni. Po upływie tego terminu dokumenty zostaną trwale usunięte, a Ty nie będziesz mógł ich przywrócić.
|
||||
documents.deleted.deleted-at: Usunięto
|
||||
documents.deleted.restoring: Przywracanie...
|
||||
documents.deleted.deleting: Usuwanie...
|
||||
|
||||
documents.preview.unknown-file-type: Brak podglądu dla tego typu pliku
|
||||
documents.preview.binary-file: To wydaje się być plikiem binarnym i nie może być wyświetlane jako tekst
|
||||
|
||||
trash.delete-all.button: Usuń wszystkie
|
||||
trash.delete-all.confirm.title: Trwale usunąć wszystkie dokumenty?
|
||||
trash.delete-all.confirm.description: Czy na pewno chcesz trwale usunąć wszystkie dokumenty z kosza? Ta akcja nie może być cofnięta.
|
||||
trash.delete-all.confirm.label: Usuń
|
||||
trash.delete-all.confirm.cancel: Anuluj
|
||||
trash.delete.button: Usuń
|
||||
trash.delete.confirm.title: Trwale usunąć dokument?
|
||||
trash.delete.confirm.description: Czy na pewno chcesz trwale usunąć ten dokument z kosza? Ta akcja nie może być cofnięta.
|
||||
trash.delete.confirm.label: Usuń
|
||||
trash.delete.confirm.cancel: Anuluj
|
||||
trash.deleted.success.title: Dokument usunięty
|
||||
trash.deleted.success.description: Dokument został trwale usunięty.
|
||||
|
||||
activity.document.created: Dokument został utworzony
|
||||
activity.document.updated.single: Pole {{ field }} zostało zaktualizowane
|
||||
activity.document.updated.multiple: Pola {{ fields }} zostały zaktualizowane
|
||||
activity.document.updated: Dokument został zaktualizowany
|
||||
activity.document.deleted: Dokument został usunięty
|
||||
activity.document.restored: Dokument został przywrócony
|
||||
activity.document.tagged: Tag {{ tag }} został dodany
|
||||
activity.document.untagged: Tag {{ tag }} został usunięty
|
||||
|
||||
activity.document.user.name: od {{ name }}
|
||||
|
||||
activity.load-more: Załaduj więcej
|
||||
activity.no-more-activities: Brak dalszych działań dla tego dokumentu
|
||||
|
||||
# Tags
|
||||
|
||||
tags.no-tags.title: Brak tagów
|
||||
tags.no-tags.description: Ta organizacja nie ma jeszcze tagów. Tagi służą do kategoryzowania dokumentów. Możesz dodać tagi do swoich dokumentów, aby ułatwić ich wyszukiwanie i organizację.
|
||||
tags.no-tags.create-tag: Utwórz tag
|
||||
|
||||
tags.title: Tagi dokumentów
|
||||
tags.description: Tagi służą do kategoryzowania dokumentów. Możesz dodać tagi do swoich dokumentów, aby ułatwić ich wyszukiwanie i organizację.
|
||||
tags.create: Utwórz tag
|
||||
tags.update: Zaktualizuj tag
|
||||
tags.delete: Usuń tag
|
||||
tags.delete.confirm.title: Usuń tag
|
||||
tags.delete.confirm.message: Czy na pewno chcesz usunąć ten tag? Usunięcie tagu spowoduje jego usunięcie ze wszystkich dokumentów.
|
||||
tags.delete.confirm.confirm-button: Usuń
|
||||
tags.delete.confirm.cancel-button: Anuluj
|
||||
tags.delete.success: Tag został pomyślnie usunięty
|
||||
tags.create.success: Tag "{{ name }}" został pomyślnie utworzony.
|
||||
tags.update.success: Tag "{{ name }}" został pomyślnie zaktualizowany.
|
||||
tags.form.name.label: Nazwa
|
||||
tags.form.name.placeholder: 'Przykład: Umowy'
|
||||
tags.form.name.required: Proszę wprowadzić nazwę tagu
|
||||
tags.form.name.max-length: Nazwa tagu musi mieć mniej niż 64 znaki
|
||||
tags.form.color.label: Kolor
|
||||
tags.form.color.required: Proszę wprowadzić kolor
|
||||
tags.form.color.invalid: Kolor hex jest źle sformatowany.
|
||||
tags.form.description.label: Opis
|
||||
tags.form.description.optional: (opcjonalnie)
|
||||
tags.form.description.placeholder: 'Przykład: Wszystkie umowy podpisane przez firmę'
|
||||
tags.form.description.max-length: Opis musi mieć mniej niż 256 znaków
|
||||
tags.form.no-description: Brak opisu
|
||||
tags.table.headers.tag: Tag
|
||||
tags.table.headers.description: Opis
|
||||
tags.table.headers.documents: Dokumenty
|
||||
tags.table.headers.created: Utworzono
|
||||
tags.table.headers.actions: Akcje
|
||||
|
||||
# Tagging rules
|
||||
|
||||
tagging-rules.field.name: nazwa dokumentu
|
||||
tagging-rules.field.content: treść dokumentu
|
||||
tagging-rules.operator.equals: równa się
|
||||
tagging-rules.operator.not-equals: nie równa się
|
||||
tagging-rules.operator.contains: zawiera
|
||||
tagging-rules.operator.not-contains: nie zawiera
|
||||
tagging-rules.operator.starts-with: zaczyna się od
|
||||
tagging-rules.operator.ends-with: kończy się na
|
||||
tagging-rules.list.title: Reguły tagowania
|
||||
tagging-rules.list.description: Zarządzaj regułami tagowania w swojej organizacji, aby automatycznie tagować dokumenty na podstawie zdefiniowanych przez siebie warunków.
|
||||
tagging-rules.list.demo-warning: 'Uwaga: Ponieważ jest to środowisko demonstracyjne (bez serwera), reguły tagowania nie będą stosowane do nowo dodanych dokumentów.'
|
||||
tagging-rules.list.no-tagging-rules.title: Brak reguł tagowania
|
||||
tagging-rules.list.no-tagging-rules.description: Utwórz regułę tagowania, aby automatycznie tagować dodane dokumenty na podstawie zdefiniowanych przez siebie warunków.
|
||||
tagging-rules.list.no-tagging-rules.create-tagging-rule: Utwórz regułę tagowania
|
||||
tagging-rules.list.card.no-conditions: Brak warunków
|
||||
tagging-rules.list.card.one-condition: 1 warunek
|
||||
tagging-rules.list.card.conditions: '{{ count }} warunków'
|
||||
tagging-rules.list.card.delete: Usuń regułę
|
||||
tagging-rules.list.card.edit: Edytuj regułę
|
||||
tagging-rules.create.title: Utwórz regułę tagowania
|
||||
tagging-rules.create.success: Reguła tagowania została pomyślnie utworzona
|
||||
tagging-rules.create.error: Nie udało się utworzyć reguły tagowania
|
||||
tagging-rules.create.submit: Utwórz regułę
|
||||
tagging-rules.form.name.label: Nazwa
|
||||
tagging-rules.form.name.placeholder: 'Przykład: Taguj faktury'
|
||||
tagging-rules.form.name.min-length: Proszę wprowadzić nazwę reguły
|
||||
tagging-rules.form.name.max-length: Nazwa musi mieć mniej niż 64 znaki
|
||||
tagging-rules.form.description.label: Opis
|
||||
tagging-rules.form.description.placeholder: "Przykład: Oznacz dokumenty ze słowem 'faktura' w nazwie"
|
||||
tagging-rules.form.description.max-length: Opis musi mieć mniej niż 256 znaków
|
||||
tagging-rules.form.conditions.label: Warunki
|
||||
tagging-rules.form.conditions.description: Zdefiniuj warunki, które muszą być spełnione, aby reguła mogła zostać zastosowana. Wszystkie warunki muszą być spełnione, aby reguła mogła zostać zastosowana.
|
||||
tagging-rules.form.conditions.add-condition: Dodaj warunek
|
||||
tagging-rules.form.conditions.no-conditions.title: Brak warunków
|
||||
tagging-rules.form.conditions.no-conditions.description: Nie dodałeś żadnych warunków do tej reguły. Ta reguła zastosuje swoje tagi do wszystkich dokumentów.
|
||||
tagging-rules.form.conditions.no-conditions.confirm: Zastosuj regułę bez warunków
|
||||
tagging-rules.form.conditions.no-conditions.cancel: Anuluj
|
||||
tagging-rules.form.conditions.value.placeholder: 'Przykład: faktura'
|
||||
tagging-rules.form.conditions.value.min-length: Proszę wprowadzić wartość dla warunku
|
||||
tagging-rules.form.tags.label: Tagi
|
||||
tagging-rules.form.tags.description: Wybierz tagi do zastosowania do dodanych dokumentów, które spełniają warunki
|
||||
tagging-rules.form.tags.min-length: Co najmniej jeden tag do zastosowania jest wymagany
|
||||
tagging-rules.form.tags.add-tag: Utwórz tag
|
||||
tagging-rules.form.submit: Utwórz regułę
|
||||
tagging-rules.update.title: Zaktualizuj regułę tagowania
|
||||
tagging-rules.update.error: Nie udało się zaktualizować reguły tagowania
|
||||
tagging-rules.update.submit: Zaktualizuj regułę
|
||||
tagging-rules.update.cancel: Anuluj
|
||||
|
||||
# Intake emails
|
||||
|
||||
intake-emails.title: Adresy przyjęć
|
||||
intake-emails.description: Adresy przyjęć służą do automatycznego przyjmowania wiadomości e-mail do Papra. Wystarczy przekazać wiadomości e-mail na adres e-mail do przyjmowania, a ich załączniki zostaną dodane do dokumentów Twojej organizacji.
|
||||
intake-emails.disabled.title: Adresy przyjęć są wyłączone
|
||||
intake-emails.disabled.description: Adresy przyjęć są wyłączone na tej instancji. Skontaktuj się z administratorem, aby je włączyć. Zobacz {{ documentation }} w celu uzyskania dodatkowych informacji.
|
||||
intake-emails.disabled.documentation: dokumentację
|
||||
intake-emails.info: Tylko włączone adresy przyjęć z dozwolonych źródeł będą przetwarzane. Możesz w dowolnym momencie włączyć lub wyłączyć adres e-mail do przyjęć.
|
||||
intake-emails.empty.title: Brak adresów przyjęć
|
||||
intake-emails.empty.description: Wygeneruj adres przyjęć, aby łatwo przyjmować załączniki e-mail.
|
||||
intake-emails.empty.generate: Wygeneruj adres e-mail do przyjęć
|
||||
intake-emails.count: '{{ count }} adres/ów e-mail do przyjęć dla tej organizacji'
|
||||
intake-emails.new: Nowy adres e-mail do przyjęć
|
||||
intake-emails.disabled-label: (Wyłączone)
|
||||
intake-emails.no-origins: Brak dozwolonych źródeł e-mail
|
||||
intake-emails.allowed-origins: Dozwolone z {{ count }} adresu/ów
|
||||
intake-emails.actions.enable: Włącz
|
||||
intake-emails.actions.disable: Wyłącz
|
||||
intake-emails.actions.manage-origins: Zarządzaj dozwolonymi źródłami
|
||||
intake-emails.actions.delete: Usuń
|
||||
intake-emails.delete.confirm.title: Usuąć adres e-mail do przyjęć?
|
||||
intake-emails.delete.confirm.message: Czy na pewno chcesz usunąć ten adres e-mail do przyjęć? Ta akcja jest nieodwracalna.
|
||||
intake-emails.delete.confirm.confirm-button: Usuń adres przyjęć
|
||||
intake-emails.delete.confirm.cancel-button: Anuluj
|
||||
intake-emails.delete.success: Adres przyjęć usunięty
|
||||
intake-emails.create.success: Adres przyjęć utworzony
|
||||
intake-emails.update.success.enabled: Adres przyjęć włączony
|
||||
intake-emails.update.success.disabled: Adres przyjęć wyłączony
|
||||
intake-emails.allowed-origins.title: Dozwolone źródła
|
||||
intake-emails.allowed-origins.description: Tylko e-maile wysłane na {{ email }} z tych źródeł będą przetwarzane. Jeśli nie określono źródeł, wszystkie e-maile zostaną odrzucone.
|
||||
intake-emails.allowed-origins.add.label: Dodaj dozwolony adres e-mail
|
||||
intake-emails.allowed-origins.add.placeholder: 'Przykład: ada@papra.app'
|
||||
intake-emails.allowed-origins.add.button: Dodaj
|
||||
intake-emails.allowed-origins.add.error.exists: Ten adres e-mail jest już w dozwolonych źródłach dla tego adresu e-mail do przyjęć.
|
||||
|
||||
# API keys
|
||||
|
||||
api-keys.permissions.documents.title: Dokumenty
|
||||
api-keys.permissions.documents.documents:create: Tworzenie dokumentów
|
||||
api-keys.permissions.documents.documents:read: Odczyt dokumentów
|
||||
api-keys.permissions.documents.documents:update: Aktualizacja dokumentów
|
||||
api-keys.permissions.documents.documents:delete: Usuwanie dokumentów
|
||||
api-keys.permissions.tags.title: Tag
|
||||
api-keys.permissions.tags.tags:create: Tworzenie tagów
|
||||
api-keys.permissions.tags.tags:read: Odczyt tagów
|
||||
api-keys.permissions.tags.tags:update: Aktualizacja tagów
|
||||
api-keys.permissions.tags.tags:delete: Usuwanie tagów
|
||||
api-keys.create.title: Tworzenie klucza API
|
||||
api-keys.create.description: Utwórz nowy klucz API, aby uzyskać dostęp do API Papra.
|
||||
api-keys.create.success: Klucz API został utworzony pomyślnie.
|
||||
api-keys.create.back: Wróć do kluczy API
|
||||
api-keys.create.form.name.label: Nazwa
|
||||
api-keys.create.form.name.placeholder: 'Przykład: Mój klucz API'
|
||||
api-keys.create.form.name.required: Proszę wprowadzić nazwę dla klucza API
|
||||
api-keys.create.form.permissions.label: Uprawnienia
|
||||
api-keys.create.form.permissions.required: Proszę wybrać co najmniej jedno uprawnienie
|
||||
api-keys.create.form.submit: Utwórz klucz API
|
||||
api-keys.create.created.title: Klucz API utworzony
|
||||
api-keys.create.created.description: Klucz API został utworzony pomyślnie. Zapisz go w bezpiecznym miejscu, ponieważ nie będzie wyświetlony ponownie.
|
||||
api-keys.list.title: Klucze API
|
||||
api-keys.list.description: Zarządzaj swoimi kluczami API tutaj.
|
||||
api-keys.list.create: Utwórz klucz API
|
||||
api-keys.list.empty.title: Brak kluczy API
|
||||
api-keys.list.empty.description: Utwórz klucz API, aby uzyskać dostęp do API Papra.
|
||||
api-keys.list.card.last-used: Ostatnie użycie
|
||||
api-keys.list.card.never: Nigdy
|
||||
api-keys.list.card.created: Utworzono
|
||||
api-keys.delete.success: Klucz API został usunięty pomyślnie
|
||||
api-keys.delete.confirm.title: Usuń klucz API
|
||||
api-keys.delete.confirm.message: Czy na pewno chcesz usunąć ten klucz API? Ta akcja jest nieodwracalna.
|
||||
api-keys.delete.confirm.confirm-button: Usuń
|
||||
api-keys.delete.confirm.cancel-button: Anuluj
|
||||
|
||||
# Webhooks
|
||||
|
||||
webhooks.list.title: Webhooki
|
||||
webhooks.list.description: Zarządzaj webhookami swojej organizacji
|
||||
webhooks.list.empty.title: Brak webhooków
|
||||
webhooks.list.empty.description: Utwórz pierwszy webhook, aby rozpocząć odbieranie zdarzeń
|
||||
webhooks.list.create: Utwórz webhook
|
||||
webhooks.list.card.last-triggered: Ostatnie wywołanie
|
||||
webhooks.list.card.never: Nigdy
|
||||
webhooks.list.card.created: Utworzono
|
||||
webhooks.create.title: Utwórz webhook
|
||||
webhooks.create.description: Utwórz nowy webhook, aby odbierać zdarzenia
|
||||
webhooks.create.success: Webhook został utworzony pomyślnie
|
||||
webhooks.create.back: Wróć
|
||||
webhooks.create.form.submit: Utwórz webhook
|
||||
webhooks.create.form.name.label: Nazwa webhooka
|
||||
webhooks.create.form.name.placeholder: Wprowadź nazwę webhooka
|
||||
webhooks.create.form.name.required: Nazwa jest wymagana
|
||||
webhooks.create.form.url.label: URL webhooka
|
||||
webhooks.create.form.url.placeholder: Wprowadź URL webhooka
|
||||
webhooks.create.form.url.required: URL jest wymagany
|
||||
webhooks.create.form.url.invalid: URL jest nieprawidłowy
|
||||
webhooks.create.form.secret.label: Sekret
|
||||
webhooks.create.form.secret.placeholder: Wprowadź sekret webhooka
|
||||
webhooks.create.form.events.label: Zdarzenia
|
||||
webhooks.create.form.events.required: Co najmniej jedno zdarzenie jest wymagane
|
||||
webhooks.update.title: Edytuj webhook
|
||||
webhooks.update.description: Zaktualizuj szczegóły webhooka
|
||||
webhooks.update.success: Webhook został zaktualizowany pomyślnie
|
||||
webhooks.update.submit: Zaktualizuj webhook
|
||||
webhooks.update.cancel: Anuluj
|
||||
webhooks.update.form.secret.placeholder: Wprowadź nowy sekret
|
||||
webhooks.update.form.secret.placeholder-redacted: '[Zredagowany sekret]'
|
||||
webhooks.update.form.rotate-secret.button: Wygeneruj nowy sekret
|
||||
webhooks.delete.success: Webhook został usunięty pomyślnie
|
||||
webhooks.delete.confirm.title: Usuń webhook
|
||||
webhooks.delete.confirm.message: Czy na pewno chcesz usunąć ten webhook?
|
||||
webhooks.delete.confirm.confirm-button: Usuń
|
||||
webhooks.delete.confirm.cancel-button: Anuluj
|
||||
|
||||
webhooks.events.documents.document:created.description: Utworzono dokument
|
||||
webhooks.events.documents.document:deleted.description: Usunięto dokument
|
||||
|
||||
# Navigation
|
||||
|
||||
layout.menu.home: Strona główna
|
||||
layout.menu.documents: Dokumenty
|
||||
layout.menu.tags: Tagi
|
||||
layout.menu.tagging-rules: Zasady tagowania
|
||||
layout.menu.deleted-documents: Usunięte dokumenty
|
||||
layout.menu.organization-settings: Ustawienia
|
||||
layout.menu.api-keys: Klucze API
|
||||
layout.menu.settings: Ustawienia
|
||||
layout.menu.account: Konto
|
||||
layout.menu.general-settings: Ustawienia ogólne
|
||||
layout.menu.intake-emails: Adresy przyjęć
|
||||
layout.menu.webhooks: Webhooki
|
||||
layout.menu.members: Członkowie
|
||||
layout.menu.invitations: Zaproszenia
|
||||
|
||||
layout.theme.light: Tryb jasny
|
||||
layout.theme.dark: Tryb ciemny
|
||||
layout.theme.system: Tryb systemowy
|
||||
|
||||
layout.search.placeholder: Szukaj...
|
||||
layout.menu.import-document: Importuj dokument
|
||||
|
||||
user-menu.account-settings: Ustawienia konta
|
||||
user-menu.api-keys: Klucze API
|
||||
user-menu.invitations: Zaproszenia
|
||||
user-menu.language: Język
|
||||
user-menu.logout: Wyloguj
|
||||
|
||||
# Command palette
|
||||
|
||||
command-palette.search.placeholder: Szukaj poleceń lub dokumentów
|
||||
command-palette.no-results: Nie znaleziono wyników
|
||||
command-palette.sections.documents: Dokumenty
|
||||
command-palette.sections.theme: Motyw
|
||||
|
||||
# API errors
|
||||
|
||||
api-errors.document.already_exists: Dokument już istnieje
|
||||
api-errors.document.file_too_big: Plik dokumentu jest zbyt duży
|
||||
api-errors.intake_email.limit_reached: Osiągnięto maksymalną liczbę adresów e-mail do przyjęć dla tej organizacji. Aby utworzyć więcej adresów e-mail do przyjęć, zaktualizuj swój plan.
|
||||
api-errors.user.max_organization_count_reached: Osiągnięto maksymalną liczbę organizacji, które możesz utworzyć. Jeśli potrzebujesz utworzyć więcej, skontaktuj się z pomocą techniczną.
|
||||
api-errors.default: Wystąpił błąd podczas przetwarzania żądania.
|
||||
api-errors.organization.invitation_already_exists: Zaproszenie dla tego adresu e-mail już istnieje w tej organizacji.
|
||||
api-errors.user.already_in_organization: Ten użytkownik należy już do tej organizacji.
|
||||
api-errors.user.organization_invitation_limit_reached: Osiągnięto maksymalną liczbę zaproszeń na dzisiaj. Spróbuj ponownie jutro.
|
||||
api-errors.demo.not_available: Ta funkcja nie jest dostępna w wersji demo
|
||||
api-errors.tags.already_exists: Tag o tej nazwie już istnieje w tej organizacji
|
||||
|
||||
# Not found
|
||||
|
||||
not-found.title: 404 - Nie znaleziono
|
||||
not-found.description: Przepraszamy, strona, której szukasz wydaje się nie istnieć. Sprawdź URL i spróbuj ponownie.
|
||||
not-found.back-to-home: Wróć do strony głównej
|
||||
|
||||
# Demo
|
||||
|
||||
demo.popup.description: To jest środowisko demonstracyjne, wszystkie dane są zapisywane w lokalnej pamięci przeglądarki.
|
||||
demo.popup.discord: Dołącz do {{ discordLink }}, aby uzyskać wsparcie, zaproponować funkcje lub po prostu porozmawiać.
|
||||
demo.popup.discord-link-label: Serwer Discord
|
||||
demo.popup.reset: Zresetuj dane demonstracyjne
|
||||
demo.popup.hide: Ukryj
|
||||
|
||||
# Color picker
|
||||
|
||||
color-picker.hue: Odcień
|
||||
color-picker.saturation: Nasycenie
|
||||
color-picker.lightness: Jasność
|
||||
color-picker.select-color: Wybierz kolor
|
||||
color-picker.select-a-color: Wybierz kolor
|
||||
565
apps/papra-client/src/locales/pt-BR.yml
Normal file
565
apps/papra-client/src/locales/pt-BR.yml
Normal file
@@ -0,0 +1,565 @@
|
||||
# Authentication
|
||||
|
||||
auth.request-password-reset.title: Redefina sua senha
|
||||
auth.request-password-reset.description: Insira seu e-mail para redefinir sua senha.
|
||||
auth.request-password-reset.requested: Se uma conta com este e-mail existe, enviamos uma mensagem para redefinir sua senha.
|
||||
auth.request-password-reset.back-to-login: Voltar para o login
|
||||
auth.request-password-reset.form.email.label: E-mail
|
||||
auth.request-password-reset.form.email.placeholder: 'Exemplo: cesar@papra.app'
|
||||
auth.request-password-reset.form.email.required: Por favor, insira seu endereço de e-mail
|
||||
auth.request-password-reset.form.email.invalid: Este endereço de e-mail é inválido
|
||||
auth.request-password-reset.form.submit: Solicitar redefinição de senha
|
||||
|
||||
auth.reset-password.title: Redefina sua senha
|
||||
auth.reset-password.description: Insira sua nova senha para redefinir sua senha.
|
||||
auth.reset-password.reset: Sua senha foi redefinida.
|
||||
auth.reset-password.back-to-login: Voltar para o login
|
||||
auth.reset-password.form.new-password.label: Nova senha
|
||||
auth.reset-password.form.new-password.placeholder: 'Exemplo: **********'
|
||||
auth.reset-password.form.new-password.required: Por favor, insira sua nova senha
|
||||
auth.reset-password.form.new-password.min-length: A senha deve ter pelo menos {{ minLength }} caracteres
|
||||
auth.reset-password.form.new-password.max-length: A senha deve ter menos de {{ maxLength }} caracteres
|
||||
auth.reset-password.form.submit: Redefinir senha
|
||||
|
||||
auth.email-provider.open: Abrir {{ provider }}
|
||||
|
||||
auth.login.title: Acessar o Papra
|
||||
auth.login.description: Insira seu e-mail ou use um login de rede social para acessar sua conta no Papra.
|
||||
auth.login.login-with-provider: Entrar com {{ provider }}
|
||||
auth.login.no-account: Não tem uma conta?
|
||||
auth.login.register: Cadastre-se
|
||||
auth.login.form.email.label: E-mail
|
||||
auth.login.form.email.placeholder: 'Exemplo: cesar@papra.app'
|
||||
auth.login.form.email.required: Por favor, insira seu endereço de e-mail
|
||||
auth.login.form.email.invalid: Este endereço de e-mail é inválido
|
||||
auth.login.form.password.label: Senha
|
||||
auth.login.form.password.placeholder: Defina uma senha
|
||||
auth.login.form.password.required: Por favor, insira sua senha
|
||||
auth.login.form.remember-me.label: Lembrar de mim
|
||||
auth.login.form.forgot-password.label: Esqueceu a senha?
|
||||
auth.login.form.submit: Entrar
|
||||
|
||||
auth.register.title: Cadastre-se no Papra
|
||||
auth.register.description: Crie uma conta para começar a usar o Papra.
|
||||
auth.register.register-with-email: Cadastrar com e-mail
|
||||
auth.register.register-with-provider: Cadastrar com {{ provider }}
|
||||
auth.register.providers.google: Google
|
||||
auth.register.providers.github: GitHub
|
||||
auth.register.have-account: Já tem uma conta?
|
||||
auth.register.login: Entrar
|
||||
auth.register.registration-disabled.title: Cadastro desativado
|
||||
auth.register.registration-disabled.description: A criação de novas contas está desativada nesta instância do Papra. Somente usuários com contas existentes podem acessar. Se você acha que isso é um engano, entre em contato com o administrador desta instância.
|
||||
auth.register.form.email.label: E-mail
|
||||
auth.register.form.email.placeholder: 'Exemplo: cesar@papra.app'
|
||||
auth.register.form.email.required: Por favor, insira seu endereço de e-mail
|
||||
auth.register.form.email.invalid: Este endereço de e-mail é inválido
|
||||
auth.register.form.password.label: Senha
|
||||
auth.register.form.password.placeholder: Defina uma senha
|
||||
auth.register.form.password.required: Por favor, insira sua senha
|
||||
auth.register.form.password.min-length: A senha deve ter pelo menos {{ minLength }} caracteres
|
||||
auth.register.form.password.max-length: A senha deve ter menos de {{ maxLength }} caracteres
|
||||
auth.register.form.name.label: Nome
|
||||
auth.register.form.name.placeholder: 'Exemplo: César Lattes'
|
||||
auth.register.form.name.required: Por favor, insira seu nome
|
||||
auth.register.form.name.max-length: O nome deve ter menos de {{ maxLength }} caracteres
|
||||
auth.register.form.submit: Cadastrar
|
||||
|
||||
auth.email-validation-required.title: Verifique seu e-mail
|
||||
auth.email-validation-required.description: Um e-mail de verificação foi enviado para seu endereço. Por favor, verifique seu e-mail clicando no link enviado.
|
||||
|
||||
auth.legal-links.description: Ao continuar, você reconhece que leu e concorda com os {{ terms }} e a {{ privacy }}.
|
||||
auth.legal-links.terms: Termos de Serviço
|
||||
auth.legal-links.privacy: Política de Privacidade
|
||||
|
||||
auth.no-auth-provider.title: Nenhum provedor de autenticação
|
||||
auth.no-auth-provider.description: Não há provedores de autenticação habilitados nesta instância do Papra. Por favor, entre em contato com o administrador desta instância para habilitá-los.
|
||||
|
||||
# User settings
|
||||
|
||||
user.settings.title: Configurações do usuário
|
||||
user.settings.description: Gerencie as configurações da sua conta aqui.
|
||||
|
||||
user.settings.email.title: Endereço de e-mail
|
||||
user.settings.email.description: Seu endereço de e-mail não pode ser alterado.
|
||||
user.settings.email.label: Endereço de e-mail
|
||||
|
||||
user.settings.name.title: Nome completo
|
||||
user.settings.name.description: Seu nome completo é exibido para outros membros da organização.
|
||||
user.settings.name.label: Nome completo
|
||||
user.settings.name.placeholder: 'Ex: João da Silva'
|
||||
user.settings.name.update: Atualizar nome
|
||||
user.settings.name.updated: Seu nome completo foi atualizado
|
||||
|
||||
user.settings.logout.title: Sair
|
||||
user.settings.logout.description: Encerre a sessão da sua conta. Você poderá acessá-la novamente mais tarde.
|
||||
user.settings.logout.button: Sair
|
||||
|
||||
# Organizations
|
||||
|
||||
organizations.list.title: Suas organizações
|
||||
organizations.list.description: Organizações são uma forma de agrupar seus documentos e gerenciar o acesso a eles. Você pode criar várias organizações e convidar membros da sua equipe para colaborar.
|
||||
organizations.list.create-new: Criar nova organização
|
||||
|
||||
organizations.details.no-documents.title: Nenhum documento
|
||||
organizations.details.no-documents.description: Ainda não há documentos nesta organização. Comece enviando documentos.
|
||||
organizations.details.upload-documents: Enviar documentos
|
||||
organizations.details.documents-count: documentos no total
|
||||
organizations.details.total-size: tamanho total
|
||||
organizations.details.latest-documents: Documentos importados recentemente
|
||||
|
||||
organizations.create.title: Criar uma nova organização
|
||||
organizations.create.description: Seus documentos serão agrupados por organização. Você pode criar várias organizações para separar, por exemplo, documentos pessoais e profissionais.
|
||||
organizations.create.back: Voltar
|
||||
organizations.create.error.max-count-reached: Você atingiu o número máximo de organizações que pode criar. Se precisar criar mais, entre em contato com o suporte.
|
||||
organizations.create.form.name.label: Nome da organização
|
||||
organizations.create.form.name.placeholder: 'Ex: Empresa Ltda.'
|
||||
organizations.create.form.name.required: Por favor, insira um nome para a organização
|
||||
organizations.create.form.submit: Criar organização
|
||||
organizations.create.success: Organização criada com sucesso
|
||||
|
||||
organizations.create-first.title: Crie sua organização
|
||||
organizations.create-first.description: Seus documentos serão agrupados por organização. Você pode criar várias organizações para separar, por exemplo, documentos pessoais e profissionais.
|
||||
organizations.create-first.default-name: Minha organização
|
||||
organizations.create-first.user-name: Organização de {{ name }}
|
||||
|
||||
organization.settings.title: Configurações da Organização
|
||||
organization.settings.page.title: Configurações da organização
|
||||
organization.settings.page.description: Gerencie aqui as configurações da sua organização.
|
||||
organization.settings.name.title: Nome da organização
|
||||
organization.settings.name.update: Atualizar nome
|
||||
organization.settings.name.placeholder: 'Ex: Empresa Ltda.'
|
||||
organization.settings.name.updated: Nome da organização atualizado
|
||||
organization.settings.subscription.title: Assinatura
|
||||
organization.settings.subscription.description: Gerencie sua cobrança, faturas e formas de pagamento.
|
||||
organization.settings.subscription.manage: Gerenciar assinatura
|
||||
organization.settings.subscription.error: Falha ao obter o link do portal do cliente
|
||||
organization.settings.delete.title: Excluir organização
|
||||
organization.settings.delete.description: A exclusão desta organização removerá permanentemente todos seus dados associados.
|
||||
organization.settings.delete.confirm.title: Excluir organização
|
||||
organization.settings.delete.confirm.message: Tem certeza de que deseja excluir esta organização? Esta ação não pode ser desfeita e todos os dados associados serão permanentemente removidos.
|
||||
organization.settings.delete.confirm.confirm-button: Excluir organização
|
||||
organization.settings.delete.confirm.cancel-button: Cancelar
|
||||
organization.settings.delete.success: Organização excluída
|
||||
|
||||
organizations.members.title: Membros
|
||||
organizations.members.description: Gerencie os membros da sua organização
|
||||
organizations.members.invite-member: Convidar membro
|
||||
organizations.members.invite-member-disabled-tooltip: Apenas administradores ou proprietários podem convidar membros para a organização
|
||||
organizations.members.remove-from-organization: Remover da organização
|
||||
organizations.members.role: Função
|
||||
organizations.members.roles.owner: Proprietário
|
||||
organizations.members.roles.admin: Administrador
|
||||
organizations.members.roles.member: Membro
|
||||
organizations.members.delete.confirm.title: Remover membro
|
||||
organizations.members.delete.confirm.message: Tem certeza de que deseja remover este membro da organização?
|
||||
organizations.members.delete.confirm.confirm-button: Remover
|
||||
organizations.members.delete.confirm.cancel-button: Cancelar
|
||||
organizations.members.delete.success: Membro removido da organização
|
||||
organizations.members.update-role.success: Função do membro atualizada
|
||||
organizations.members.table.headers.name: Nome
|
||||
organizations.members.table.headers.email: E-mail
|
||||
organizations.members.table.headers.role: Função
|
||||
organizations.members.table.headers.created: Criado em
|
||||
organizations.members.table.headers.actions: Ações
|
||||
|
||||
organizations.invite-member.title: Convidar membro
|
||||
organizations.invite-member.description: Convide um membro para a sua organização
|
||||
organizations.invite-member.form.email.label: E-mail
|
||||
organizations.invite-member.form.email.placeholder: 'Exemplo: cesar@papra.app'
|
||||
organizations.invite-member.form.email.required: Por favor, insira um endereço de e-mail válido
|
||||
organizations.invite-member.form.role.label: Função
|
||||
organizations.invite-member.form.submit: Convidar para a organização
|
||||
organizations.invite-member.success.message: Membro convidado
|
||||
organizations.invite-member.success.description: O e-mail foi convidado para a organização.
|
||||
organizations.invite-member.error.message: Falha ao convidar o membro
|
||||
|
||||
organizations.invitations.title: Convites
|
||||
organizations.invitations.description: Gerencie os convites da sua organização
|
||||
organizations.invitations.list.cta: Convidar membro
|
||||
organizations.invitations.list.empty.title: Nenhum convite pendente
|
||||
organizations.invitations.list.empty.description: Você ainda não foi convidado para nenhuma organização.
|
||||
organizations.invitations.status.pending: Pendente
|
||||
organizations.invitations.status.accepted: Aceito
|
||||
organizations.invitations.status.rejected: Rejeitado
|
||||
organizations.invitations.status.expired: Expirado
|
||||
organizations.invitations.status.cancelled: Cancelado
|
||||
organizations.invitations.resend: Reenviar convite
|
||||
organizations.invitations.cancel.title: Cancelar convite
|
||||
organizations.invitations.cancel.description: Tem certeza de que deseja cancelar este convite?
|
||||
organizations.invitations.cancel.confirm: Cancelar convite
|
||||
organizations.invitations.cancel.cancel: Cancelar
|
||||
organizations.invitations.resend.title: Reenviar convite
|
||||
organizations.invitations.resend.description: Tem certeza de que deseja reenviar este convite? Um novo e-mail será enviado ao destinatário.
|
||||
organizations.invitations.resend.confirm: Reenviar convite
|
||||
organizations.invitations.resend.cancel: Cancelar
|
||||
|
||||
invitations.list.title: Convites
|
||||
invitations.list.description: Gerencie os convites da sua organização
|
||||
invitations.list.empty.title: Nenhum convite pendente
|
||||
invitations.list.empty.description: Você ainda não foi convidado para nenhuma organização.
|
||||
invitations.list.headers.organization: Organização
|
||||
invitations.list.headers.status: Status
|
||||
invitations.list.headers.created: Criado em
|
||||
invitations.list.headers.actions: Ações
|
||||
invitations.list.actions.accept: Aceitar
|
||||
invitations.list.actions.reject: Rejeitar
|
||||
invitations.list.actions.accept.success.message: Convite aceito
|
||||
invitations.list.actions.accept.success.description: O convite foi aceito.
|
||||
invitations.list.actions.reject.success.message: Convite rejeitado
|
||||
invitations.list.actions.reject.success.description: O convite foi rejeitado.
|
||||
|
||||
# Documents
|
||||
|
||||
documents.list.title: Documentos
|
||||
documents.list.no-documents.title: Nenhum documento
|
||||
documents.list.no-documents.description: Ainda não há documentos nesta organização. Comece enviando documentos.
|
||||
documents.list.no-results: Nenhum documento encontrado
|
||||
|
||||
documents.tabs.info: Informações
|
||||
documents.tabs.content: Conteúdo
|
||||
documents.tabs.activity: Atividades
|
||||
documents.deleted.message: Este documento foi excluído e será deletado permanentemente em {{ days }} dias.
|
||||
documents.actions.download: Baixar
|
||||
documents.actions.open-in-new-tab: Abrir em nova aba
|
||||
documents.actions.restore: Restaurar
|
||||
documents.actions.delete: Excluir
|
||||
documents.actions.edit: Editar
|
||||
documents.actions.cancel: Cancelar
|
||||
documents.actions.save: Salvar
|
||||
documents.actions.saving: Salvando...
|
||||
documents.content.alert: O conteúdo do documento é extraído automaticamente durante o envio e será utilizado apenas para fins de busca e indexação.
|
||||
documents.info.id: ID
|
||||
documents.info.name: Nome
|
||||
documents.info.type: Tipo
|
||||
documents.info.size: Tamanho
|
||||
documents.info.created-at: Criado em
|
||||
documents.info.updated-at: Atualizado em
|
||||
documents.info.never: Nunca
|
||||
|
||||
documents.rename.title: Renomear documento
|
||||
documents.rename.form.name.label: Nome
|
||||
documents.rename.form.name.placeholder: 'Exemplo: Fatura 2024'
|
||||
documents.rename.form.name.required: Por favor, insira um nome para o documento
|
||||
documents.rename.form.name.max-length: O nome deve ter menos de 255 caracteres
|
||||
documents.rename.form.submit: Renomear documento
|
||||
documents.rename.success: Documento renomeado com sucesso
|
||||
documents.rename.cancel: Cancelar
|
||||
|
||||
import-documents.title.error: '{{ count }} documentos falharam'
|
||||
import-documents.title.success: '{{ count }} documentos importados'
|
||||
import-documents.title.pending: '{{ count }} / {{ total }} documentos importados'
|
||||
import-documents.title.none: Importar documentos
|
||||
import-documents.no-import-in-progress: Nenhuma importação de documentos em andamento
|
||||
|
||||
documents.deleted.title: Documentos excluídos
|
||||
documents.deleted.empty.title: Nenhum documento excluído
|
||||
documents.deleted.empty.description: Você não tem documentos excluídos. Documentos excluídos serão movidos para a lixeira por {{ days }} dias.
|
||||
documents.deleted.retention-notice: Todos os documentos excluídos são armazenados na lixeira por {{ days }} dias. Após esse período, os documentos serão excluídos permanentemente e não será possível restaurá-los.
|
||||
documents.deleted.deleted-at: Excluído em
|
||||
documents.deleted.restoring: Restaurando...
|
||||
documents.deleted.deleting: Excluindo...
|
||||
|
||||
documents.preview.unknown-file-type: Pré-visualização não disponível para este tipo de arquivo
|
||||
documents.preview.binary-file: Arquivos binários não podem ser exibidos como texto
|
||||
|
||||
trash.delete-all.button: Excluir tudo
|
||||
trash.delete-all.confirm.title: Excluir todos os documentos permanentemente?
|
||||
trash.delete-all.confirm.description: Tem certeza de que deseja excluir permanentemente todos os documentos da lixeira? Esta ação não poderá ser desfeita.
|
||||
trash.delete-all.confirm.label: Excluir
|
||||
trash.delete-all.confirm.cancel: Cancelar
|
||||
trash.delete.button: Excluir
|
||||
trash.delete.confirm.title: Excluir documento permanentemente?
|
||||
trash.delete.confirm.description: Tem certeza de que deseja excluir permanentemente este documento da lixeira? Esta ação não poderá ser desfeita.
|
||||
trash.delete.confirm.label: Excluir
|
||||
trash.delete.confirm.cancel: Cancelar
|
||||
trash.deleted.success.title: Documento excluído
|
||||
trash.deleted.success.description: O documento foi excluído permanentemente.
|
||||
|
||||
activity.document.created: O documento foi criado
|
||||
activity.document.updated.single: O {{ field }} foi atualizado
|
||||
activity.document.updated.multiple: Os {{ fields }} foram atualizados
|
||||
activity.document.updated: O documento foi atualizado
|
||||
activity.document.deleted: O documento foi excluído
|
||||
activity.document.restored: O documento foi restaurado
|
||||
activity.document.tagged: A tag {{ tag }} foi adicionada
|
||||
activity.document.untagged: A tag {{ tag }} foi removida
|
||||
|
||||
activity.document.user.name: por {{ name }}
|
||||
|
||||
activity.load-more: Carregar mais
|
||||
activity.no-more-activities: Não há mais atividades para este documento
|
||||
|
||||
# Tags
|
||||
|
||||
tags.no-tags.title: Nenhuma tag
|
||||
tags.no-tags.description: Esta organização ainda não possui tags. As tags são usadas para categorizar documentos. Você pode adicioná-las aos seus documentos para facilitar a busca e a organização.
|
||||
tags.no-tags.create-tag: Criar tag
|
||||
|
||||
tags.title: Tags de documentos
|
||||
tags.description: As tags são usadas para categorizar documentos. Você pode adicioná-las aos seus documentos para facilitar a busca e a organização.
|
||||
tags.create: Criar tag
|
||||
tags.update: Atualizar tag
|
||||
tags.delete: Excluir tag
|
||||
tags.delete.confirm.title: Excluir tag
|
||||
tags.delete.confirm.message: Tem certeza de que deseja excluir esta tag? A exclusão de uma tag a removerá de todos os documentos.
|
||||
tags.delete.confirm.confirm-button: Excluir
|
||||
tags.delete.confirm.cancel-button: Cancelar
|
||||
tags.delete.success: Tag excluída com sucesso
|
||||
tags.create.success: Tag "{{ name }}" criada com sucesso.
|
||||
tags.update.success: Tag "{{ name }}" atualizada com sucesso.
|
||||
tags.form.name.label: Nome
|
||||
tags.form.name.placeholder: 'Ex: Contratos'
|
||||
tags.form.name.required: Por favor, insira um nome para a tag
|
||||
tags.form.name.max-length: O nome da tag deve ter menos de 64 caracteres
|
||||
tags.form.color.label: Cor
|
||||
tags.form.color.required: Por favor, insira uma cor
|
||||
tags.form.color.invalid: Código hexadecimal formatado incorretamente.
|
||||
tags.form.description.label: Descrição
|
||||
tags.form.description.optional: (opcional)
|
||||
tags.form.description.placeholder: 'Ex: Todos os contratos assinados pela empresa'
|
||||
tags.form.description.max-length: A descrição deve ter menos de 256 caracteres
|
||||
tags.form.no-description: Sem descrição
|
||||
tags.table.headers.tag: Tag
|
||||
tags.table.headers.description: Descrição
|
||||
tags.table.headers.documents: Documentos
|
||||
tags.table.headers.created: Criado em
|
||||
tags.table.headers.actions: Ações
|
||||
|
||||
# Tagging rules
|
||||
|
||||
tagging-rules.field.name: nome do documento
|
||||
tagging-rules.field.content: conteúdo do documento
|
||||
tagging-rules.operator.equals: é igual a
|
||||
tagging-rules.operator.not-equals: é diferente de
|
||||
tagging-rules.operator.contains: contém
|
||||
tagging-rules.operator.not-contains: não contém
|
||||
tagging-rules.operator.starts-with: começa com
|
||||
tagging-rules.operator.ends-with: termina com
|
||||
tagging-rules.list.title: Regras de marcação
|
||||
tagging-rules.list.description: Gerencie as regras de marcação da sua organização para aplicar tags automaticamente a documentos com base em condições definidas por você.
|
||||
tagging-rules.list.demo-warning: 'Nota: Como este é um ambiente de demonstração (sem servidor), as regras de marcação não serão aplicadas a novos documentos adicionados.'
|
||||
tagging-rules.list.no-tagging-rules.title: Nenhuma regra de marcação
|
||||
tagging-rules.list.no-tagging-rules.description: Crie uma regra de marcação para aplicar tags automaticamente aos documentos adicionados, com base em condições definidas por você.
|
||||
tagging-rules.list.no-tagging-rules.create-tagging-rule: Criar regra de marcação
|
||||
tagging-rules.list.card.no-conditions: Nenhuma condição
|
||||
tagging-rules.list.card.one-condition: 1 condição
|
||||
tagging-rules.list.card.conditions: '{{ count }} condições'
|
||||
tagging-rules.list.card.delete: Excluir regra
|
||||
tagging-rules.list.card.edit: Editar regra
|
||||
tagging-rules.create.title: Criar regra de marcação
|
||||
tagging-rules.create.success: Regra de marcação criada com sucesso
|
||||
tagging-rules.create.error: Falha ao criar a regra de marcação
|
||||
tagging-rules.create.submit: Criar regra
|
||||
tagging-rules.form.name.label: Nome
|
||||
tagging-rules.form.name.placeholder: 'Exemplo: Marcar faturas'
|
||||
tagging-rules.form.name.min-length: Por favor, insira um nome para a regra
|
||||
tagging-rules.form.name.max-length: O nome deve ter menos de 64 caracteres
|
||||
tagging-rules.form.description.label: Descrição
|
||||
tagging-rules.form.description.placeholder: "Exemplo: Marcar documentos com 'fatura' no nome"
|
||||
tagging-rules.form.description.max-length: A descrição deve ter menos de 256 caracteres
|
||||
tagging-rules.form.conditions.label: Condições
|
||||
tagging-rules.form.conditions.description: Defina as condições que devem ser atendidas para que a regra seja aplicada. Todas as condições devem ser atendidas.
|
||||
tagging-rules.form.conditions.add-condition: Adicionar condição
|
||||
tagging-rules.form.conditions.no-conditions.title: Nenhuma condição
|
||||
tagging-rules.form.conditions.no-conditions.description: Você não adicionou nenhuma condição a esta regra. Ela será aplicada a todos os documentos.
|
||||
tagging-rules.form.conditions.no-conditions.confirm: Aplicar regra sem condições
|
||||
tagging-rules.form.conditions.no-conditions.cancel: Cancelar
|
||||
tagging-rules.form.conditions.value.placeholder: 'Exemplo: fatura'
|
||||
tagging-rules.form.conditions.value.min-length: Por favor, insira um valor para a condição
|
||||
tagging-rules.form.tags.label: Tags
|
||||
tagging-rules.form.tags.description: Selecione as tags que serão aplicadas aos documentos adicionados que correspondam às condições
|
||||
tagging-rules.form.tags.min-length: Ao menos uma tag para aplicar é necessária
|
||||
tagging-rules.form.tags.add-tag: Criar tag
|
||||
tagging-rules.form.submit: Criar regra
|
||||
tagging-rules.update.title: Atualizar regra de marcação
|
||||
tagging-rules.update.error: Falha ao atualizar a regra de marcação
|
||||
tagging-rules.update.submit: Atualizar regra
|
||||
tagging-rules.update.cancel: Cancelar
|
||||
|
||||
# Intake emails
|
||||
|
||||
intake-emails.title: E-mails de entrada
|
||||
intake-emails.description: Os endereços de e-mail de entrada são usados para importar automaticamente e-mails para o Papra. Basta encaminhar e-mails para o endereço de entrada e os anexos serão adicionados aos documentos da sua organização.
|
||||
intake-emails.disabled.title: E-mails de entrada desativados
|
||||
intake-emails.disabled.description: Os e-mails de entrada estão desativados nesta instância. Por favor, entre em contato com o administrador para ativá-los. Consulte a {{ documentation }} para mais informações.
|
||||
intake-emails.disabled.documentation: documentação
|
||||
intake-emails.info: Apenas e-mails de entrada habilitados e provenientes de origens permitidas serão processados. Você pode ativar ou desativar um e-mail de entrada a qualquer momento.
|
||||
intake-emails.empty.title: Nenhum e-mail de entrada
|
||||
intake-emails.empty.description: Gere um endereço de entrada para importar facilmente anexos de e-mails.
|
||||
intake-emails.empty.generate: Gerar e-mail de entrada
|
||||
intake-emails.count: '{{ count }} e-mail{{ plural }} de entrada para esta organização'
|
||||
intake-emails.new: Novo e-mail de entrada
|
||||
intake-emails.disabled-label: (Desativado)
|
||||
intake-emails.no-origins: Nenhuma origem de e-mail permitida
|
||||
intake-emails.allowed-origins: Permitido de {{ count }} endereço{{ plural }}
|
||||
intake-emails.actions.enable: Ativar
|
||||
intake-emails.actions.disable: Desativar
|
||||
intake-emails.actions.manage-origins: Gerenciar endereços de origem
|
||||
intake-emails.actions.delete: Excluir
|
||||
intake-emails.delete.confirm.title: Excluir e-mail de entrada?
|
||||
intake-emails.delete.confirm.message: Tem certeza de que deseja excluir este e-mail de entrada? Esta ação não poderá ser desfeita.
|
||||
intake-emails.delete.confirm.confirm-button: Excluir e-mail de entrada
|
||||
intake-emails.delete.confirm.cancel-button: Cancelar
|
||||
intake-emails.delete.success: E-mail de entrada excluído
|
||||
intake-emails.create.success: E-mail de entrada criado
|
||||
intake-emails.update.success.enabled: E-mail de entrada ativado
|
||||
intake-emails.update.success.disabled: E-mail de entrada desativado
|
||||
intake-emails.allowed-origins.title: Origens permitidas
|
||||
intake-emails.allowed-origins.description: Apenas e-mails enviados para {{ email }} a partir dessas origens serão processados. Se nenhuma origem for especificada, todos os e-mails serão descartados.
|
||||
intake-emails.allowed-origins.add.label: Adicionar e-mail de origem permitida
|
||||
intake-emails.allowed-origins.add.placeholder: 'Ex: ada@papra.app'
|
||||
intake-emails.allowed-origins.add.button: Adicionar
|
||||
intake-emails.allowed-origins.add.error.exists: Este e-mail já está nas origens permitidas para este e-mail de entrada
|
||||
|
||||
# API keys
|
||||
|
||||
api-keys.permissions.documents.title: Documentos
|
||||
api-keys.permissions.documents.documents:create: Criar documentos
|
||||
api-keys.permissions.documents.documents:read: Ler documentos
|
||||
api-keys.permissions.documents.documents:update: Atualizar documentos
|
||||
api-keys.permissions.documents.documents:delete: Excluir documentos
|
||||
api-keys.permissions.tags.title: Tags
|
||||
api-keys.permissions.tags.tags:create: Criar tags
|
||||
api-keys.permissions.tags.tags:read: Ler tags
|
||||
api-keys.permissions.tags.tags:update: Atualizar tags
|
||||
api-keys.permissions.tags.tags:delete: Excluir tags
|
||||
api-keys.create.title: Criar chave de API
|
||||
api-keys.create.description: Crie uma nova chave de API para acessar a API do Papra.
|
||||
api-keys.create.success: A chave de API foi criada com sucesso.
|
||||
api-keys.create.back: Voltar para as chaves de API
|
||||
api-keys.create.form.name.label: Nome
|
||||
api-keys.create.form.name.placeholder: 'Exemplo: Minha chave de API'
|
||||
api-keys.create.form.name.required: Por favor, insira um nome para a chave de API
|
||||
api-keys.create.form.permissions.label: Permissões
|
||||
api-keys.create.form.permissions.required: Por favor, selecione ao menos uma permissão
|
||||
api-keys.create.form.submit: Criar chave de API
|
||||
api-keys.create.created.title: Chave de API criada
|
||||
api-keys.create.created.description: A chave de API foi criada com sucesso. Salve-a em um local seguro, pois ela não será exibida novamente.
|
||||
api-keys.list.title: Chaves de API
|
||||
api-keys.list.description: Gerencie suas chaves de API aqui.
|
||||
api-keys.list.create: Criar chave de API
|
||||
api-keys.list.empty.title: Nenhuma chave de API
|
||||
api-keys.list.empty.description: Crie uma chave de API para acessar a API do Papra.
|
||||
api-keys.list.card.last-used: Último uso
|
||||
api-keys.list.card.never: Nunca
|
||||
api-keys.list.card.created: Criada em
|
||||
api-keys.delete.success: A chave de API foi excluída com sucesso
|
||||
api-keys.delete.confirm.title: Excluir chave de API
|
||||
api-keys.delete.confirm.message: Tem certeza de que deseja excluir esta chave de API? Esta ação não poderá ser desfeita.
|
||||
api-keys.delete.confirm.confirm-button: Excluir
|
||||
api-keys.delete.confirm.cancel-button: Cancelar
|
||||
|
||||
# Webhooks
|
||||
|
||||
webhooks.list.title: Webhooks
|
||||
webhooks.list.description: Gerencie os webhooks da sua organização
|
||||
webhooks.list.empty.title: Nenhum webhook
|
||||
webhooks.list.empty.description: Crie seu primeiro webhook para começar a receber eventos
|
||||
webhooks.list.create: Criar webhook
|
||||
webhooks.list.card.last-triggered: Última ativação
|
||||
webhooks.list.card.never: Nunca
|
||||
webhooks.list.card.created: Criado em
|
||||
webhooks.create.title: Criar webhook
|
||||
webhooks.create.description: Crie um novo webhook para receber eventos
|
||||
webhooks.create.success: Webhook criado com sucesso
|
||||
webhooks.create.back: Voltar
|
||||
webhooks.create.form.submit: Criar webhook
|
||||
webhooks.create.form.name.label: Nome do webhook
|
||||
webhooks.create.form.name.placeholder: Insira o nome do webhook
|
||||
webhooks.create.form.name.required: O nome é obrigatório
|
||||
webhooks.create.form.url.label: URL do Webhook
|
||||
webhooks.create.form.url.placeholder: Insira a URL do webhook
|
||||
webhooks.create.form.url.required: A URL é obrigatória
|
||||
webhooks.create.form.url.invalid: URL inválida
|
||||
webhooks.create.form.secret.label: Segredo
|
||||
webhooks.create.form.secret.placeholder: Insira o segredo do webhook
|
||||
webhooks.create.form.events.label: Eventos
|
||||
webhooks.create.form.events.required: Adicione pelo menos um evento
|
||||
webhooks.update.title: Editar webhook
|
||||
webhooks.update.description: Atualize os detalhes do seu webhook
|
||||
webhooks.update.success: Webhook atualizado com sucesso
|
||||
webhooks.update.submit: Atualizar webhook
|
||||
webhooks.update.cancel: Cancelar
|
||||
webhooks.update.form.secret.placeholder: Insira um novo segredo
|
||||
webhooks.update.form.secret.placeholder-redacted: '[Segredo ocultado]'
|
||||
webhooks.update.form.rotate-secret.button: Rotacionar segredo
|
||||
webhooks.delete.success: Webhook excluído com sucesso
|
||||
webhooks.delete.confirm.title: Excluir webhook
|
||||
webhooks.delete.confirm.message: Tem certeza de que deseja excluir este webhook?
|
||||
webhooks.delete.confirm.confirm-button: Excluir
|
||||
webhooks.delete.confirm.cancel-button: Cancelar
|
||||
|
||||
webhooks.events.documents.document:created.description: Documento criado
|
||||
webhooks.events.documents.document:deleted.description: Documento excluído
|
||||
|
||||
# Navigation
|
||||
|
||||
layout.menu.home: Início
|
||||
layout.menu.documents: Documentos
|
||||
layout.menu.tags: Tags
|
||||
layout.menu.tagging-rules: Regras de marcação
|
||||
layout.menu.deleted-documents: Documentos excluídos
|
||||
layout.menu.organization-settings: Configurações
|
||||
layout.menu.api-keys: Chaves de API
|
||||
layout.menu.settings: Configurações
|
||||
layout.menu.account: Conta
|
||||
layout.menu.general-settings: Configurações gerais
|
||||
layout.menu.intake-emails: E-mails de entrada
|
||||
layout.menu.webhooks: Webhooks
|
||||
layout.menu.members: Membros
|
||||
layout.menu.invitations: Convites
|
||||
|
||||
layout.theme.light: Tema claro
|
||||
layout.theme.dark: Tema escuro
|
||||
layout.theme.system: Tema do sistema
|
||||
|
||||
layout.search.placeholder: Buscar...
|
||||
layout.menu.import-document: Importar um documento
|
||||
|
||||
user-menu.account-settings: Configurações da conta
|
||||
user-menu.api-keys: Chaves de API
|
||||
user-menu.invitations: Convites
|
||||
user-menu.language: Idioma
|
||||
user-menu.logout: Sair
|
||||
|
||||
# Command palette
|
||||
|
||||
command-palette.search.placeholder: Buscar comandos ou documentos
|
||||
command-palette.no-results: Nenhum resultado encontrado
|
||||
command-palette.sections.documents: Documentos
|
||||
command-palette.sections.theme: Tema
|
||||
|
||||
# API errors
|
||||
|
||||
api-errors.document.already_exists: O documento já existe
|
||||
api-errors.document.file_too_big: O arquivo do documento é muito grande
|
||||
api-errors.intake_email.limit_reached: O número máximo de e-mails de entrada para esta organização foi atingido. Faça um upgrade no seu plano para criar mais e-mails de entrada.
|
||||
api-errors.user.max_organization_count_reached: Você atingiu o número máximo de organizações que pode criar. Se precisar criar mais, entre em contato com o suporte.
|
||||
api-errors.default: Ocorreu um erro ao processar sua solicitação.
|
||||
api-errors.organization.invitation_already_exists: Já existe um convite para este e-mail nesta organização.
|
||||
api-errors.user.already_in_organization: Este usuário já faz parte desta organização.
|
||||
api-errors.user.organization_invitation_limit_reached: O número máximo de convites por hoje foi atingido. Por favor, tente novamente amanhã.
|
||||
api-errors.demo.not_available: Este recurso não está disponível em ambiente de demonstração
|
||||
api-errors.tags.already_exists: Já existe uma tag com este nome nesta organização
|
||||
|
||||
# Not found
|
||||
|
||||
not-found.title: 404 - Página não encontrada
|
||||
not-found.description: Desculpe, a página que você está procurando não existe. Verifique o URL e tente novamente.
|
||||
not-found.back-to-home: Voltar para a página inicial
|
||||
|
||||
# Demo
|
||||
|
||||
demo.popup.description: Este é um ambiente de demonstração; todos os dados são salvos no armazenamento local do seu navegador.
|
||||
demo.popup.discord: Entre no {{ discordLink }} para obter suporte, sugerir funcionalidades ou apenas conversar.
|
||||
demo.popup.discord-link-label: Comunidade do Discord
|
||||
demo.popup.reset: Redefinir dados da demonstração
|
||||
demo.popup.hide: Ocultar
|
||||
|
||||
# Color picker
|
||||
|
||||
color-picker.hue: Matiz
|
||||
color-picker.saturation: Saturação
|
||||
color-picker.lightness: Brilho
|
||||
color-picker.select-color: Selecionar cor
|
||||
color-picker.select-a-color: Selecione uma cor
|
||||
562
apps/papra-client/src/locales/pt.yml
Normal file
562
apps/papra-client/src/locales/pt.yml
Normal file
@@ -0,0 +1,562 @@
|
||||
# Authentication
|
||||
|
||||
auth.request-password-reset.title: Redefinir a sua palavra-passe
|
||||
auth.request-password-reset.description: Introduza o seu e-mail para redefinir a palavra-passe.
|
||||
auth.request-password-reset.requested: Se existir uma conta para este e-mail, enviámos-lhe um e-mail para redefinir a palavra-passe.
|
||||
auth.request-password-reset.back-to-login: Voltar ao início de sessão
|
||||
auth.request-password-reset.form.email.label: E-mail
|
||||
auth.request-password-reset.form.email.placeholder: 'Exemplo: joao@papra.app'
|
||||
auth.request-password-reset.form.email.required: Por favor, introduza o seu endereço de e-mail
|
||||
auth.request-password-reset.form.email.invalid: Este endereço de e-mail é inválido
|
||||
auth.request-password-reset.form.submit: Solicitar redefinição de palavra-passe
|
||||
|
||||
auth.reset-password.title: Redefinir a sua palavra-passe
|
||||
auth.reset-password.description: Introduza a sua nova palavra-passe para redefinir a palavra-passe.
|
||||
auth.reset-password.reset: A sua palavra-passe foi redefinida.
|
||||
auth.reset-password.back-to-login: Voltar ao início de sessão
|
||||
auth.reset-password.form.new-password.label: Nova palavra-passe
|
||||
auth.reset-password.form.new-password.placeholder: 'Exemplo: **********'
|
||||
auth.reset-password.form.new-password.required: Por favor, introduza a sua nova palavra-passe
|
||||
auth.reset-password.form.new-password.min-length: A palavra-passe deve ter pelo menos {{ minLength }} caracteres
|
||||
auth.reset-password.form.new-password.max-length: A palavra-passe deve ter menos de {{ maxLength }} caracteres
|
||||
auth.reset-password.form.submit: Redefinir palavra-passe
|
||||
|
||||
auth.email-provider.open: Abrir {{ provider }}
|
||||
|
||||
auth.login.title: Iniciar sessão no Papra
|
||||
auth.login.description: Introduza o seu e-mail ou use o início de sessão social para aceder à sua conta Papra.
|
||||
auth.login.login-with-provider: Iniciar sessão com {{ provider }}
|
||||
auth.login.no-account: Não tem uma conta?
|
||||
auth.login.register: Registar
|
||||
auth.login.form.email.label: E-mail
|
||||
auth.login.form.email.placeholder: 'Exemplo: joao@papra.app'
|
||||
auth.login.form.email.required: Por favor, introduza o seu endereço de e-mail
|
||||
auth.login.form.email.invalid: Este endereço de e-mail é inválido
|
||||
auth.login.form.password.label: Palavra-passe
|
||||
auth.login.form.password.placeholder: Definir uma palavra-passe
|
||||
auth.login.form.password.required: Por favor, introduza a sua palavra-passe
|
||||
auth.login.form.remember-me.label: Lembrar-me
|
||||
auth.login.form.forgot-password.label: Esqueceu-se da palavra-passe?
|
||||
auth.login.form.submit: Iniciar sessão
|
||||
|
||||
auth.register.title: Registar no Papra
|
||||
auth.register.description: Crie uma conta para começar a usar o Papra.
|
||||
auth.register.register-with-email: Registar com e-mail
|
||||
auth.register.register-with-provider: Registar com {{ provider }}
|
||||
auth.register.providers.google: Google
|
||||
auth.register.providers.github: GitHub
|
||||
auth.register.have-account: Já tem uma conta?
|
||||
auth.register.login: Iniciar sessão
|
||||
auth.register.registration-disabled.title: O registo está desativado
|
||||
auth.register.registration-disabled.description: A criação de novas contas está atualmente desativada nesta instância do Papra. Apenas utilizadores com contas existentes podem iniciar sessão. Se acha que isto é um erro, contacte o administrador desta instância.
|
||||
auth.register.form.email.label: E-mail
|
||||
auth.register.form.email.placeholder: 'Exemplo: joao@papra.app'
|
||||
auth.register.form.email.required: Por favor, introduza o seu endereço de e-mail
|
||||
auth.register.form.email.invalid: Este endereço de e-mail é inválido
|
||||
auth.register.form.password.label: Palavra-passe
|
||||
auth.register.form.password.placeholder: Definir uma palavra-passe
|
||||
auth.register.form.password.required: Por favor, introduza a sua palavra-passe
|
||||
auth.register.form.password.min-length: A palavra-passe deve ter pelo menos {{ minLength }} caracteres
|
||||
auth.register.form.password.max-length: A palavra-passe deve ter menos de {{ maxLength }} caracteres
|
||||
auth.register.form.name.label: Nome
|
||||
auth.register.form.name.placeholder: 'Exemplo: Ada Lovelace'
|
||||
auth.register.form.name.required: Por favor, introduza o seu nome
|
||||
auth.register.form.name.max-length: O nome deve ter menos de {{ maxLength }} caracteres
|
||||
auth.register.form.submit: Registar
|
||||
|
||||
auth.email-validation-required.title: Verifique o seu e-mail
|
||||
auth.email-validation-required.description: Foi enviado um e-mail de verificação para o seu endereço de e-mail. Por favor, verifique o seu endereço de e-mail clicando na ligação no e-mail.
|
||||
|
||||
auth.legal-links.description: Ao continuar, reconhece que compreende e concorda com os {{ terms }} e a {{ privacy }}.
|
||||
auth.legal-links.terms: Termos de Serviço
|
||||
auth.legal-links.privacy: Política de Privacidade
|
||||
|
||||
# User settings
|
||||
|
||||
user.settings.title: Definições do utilizador
|
||||
user.settings.description: Gira as definições da sua conta aqui.
|
||||
|
||||
user.settings.email.title: Endereço de e-mail
|
||||
user.settings.email.description: O seu endereço de e-mail não pode ser alterado.
|
||||
user.settings.email.label: Endereço de e-mail
|
||||
|
||||
user.settings.name.title: Nome completo
|
||||
user.settings.name.description: O seu nome completo é exibido a outros membros da organização.
|
||||
user.settings.name.label: Nome completo
|
||||
user.settings.name.placeholder: Ex. João Silva
|
||||
user.settings.name.update: Atualizar nome
|
||||
user.settings.name.updated: O seu nome completo foi atualizado
|
||||
|
||||
user.settings.logout.title: Terminar sessão
|
||||
user.settings.logout.description: Terminar sessão da sua conta. Pode iniciar sessão novamente mais tarde.
|
||||
user.settings.logout.button: Terminar sessão
|
||||
|
||||
# Organizations
|
||||
|
||||
organizations.list.title: As suas organizações
|
||||
organizations.list.description: As organizações são uma forma de agrupar os seus documentos e gerir o acesso aos mesmos. Pode criar várias organizações e convidar os membros da sua equipa para colaborar.
|
||||
organizations.list.create-new: Criar nova organização
|
||||
|
||||
organizations.details.no-documents.title: Sem documentos
|
||||
organizations.details.no-documents.description: Não há documentos nesta organização ainda. Comece por carregar alguns documentos.
|
||||
organizations.details.upload-documents: Carregar documentos
|
||||
organizations.details.documents-count: documentos no total
|
||||
organizations.details.total-size: tamanho total
|
||||
organizations.details.latest-documents: Últimos documentos importados
|
||||
|
||||
organizations.create.title: Criar uma nova organização
|
||||
organizations.create.description: Os seus documentos serão agrupados por organização. Pode criar várias organizações para separar os seus documentos, por exemplo, para documentos pessoais e de trabalho.
|
||||
organizations.create.back: Voltar
|
||||
organizations.create.error.max-count-reached: Atingiu o número máximo de organizações que pode criar, se precisar de criar mais, contacte o suporte.
|
||||
organizations.create.form.name.label: Nome da organização
|
||||
organizations.create.form.name.placeholder: Ex. Acme Inc.
|
||||
organizations.create.form.name.required: Por favor, introduza um nome para a organização
|
||||
organizations.create.form.submit: Criar organização
|
||||
organizations.create.success: Organização criada com sucesso
|
||||
|
||||
organizations.create-first.title: Criar a sua organização
|
||||
organizations.create-first.description: Os seus documentos serão agrupados por organização. Pode criar várias organizações para separar os seus documentos, por exemplo, para documentos pessoais e de trabalho.
|
||||
organizations.create-first.default-name: A minha organização
|
||||
organizations.create-first.user-name: 'Organização de {{ name }}'
|
||||
|
||||
organization.settings.title: Definições da Organização
|
||||
organization.settings.page.title: Definições da organização
|
||||
organization.settings.page.description: Gira as definições da sua organização aqui.
|
||||
organization.settings.name.title: Nome da organização
|
||||
organization.settings.name.update: Atualizar nome
|
||||
organization.settings.name.placeholder: Ex. Acme Inc.
|
||||
organization.settings.name.updated: Nome da organização atualizado
|
||||
organization.settings.subscription.title: Subscrição
|
||||
organization.settings.subscription.description: Gira a sua faturação, faturas e métodos de pagamento.
|
||||
organization.settings.subscription.manage: Gerir subscrição
|
||||
organization.settings.subscription.error: Falha ao obter URL do portal do cliente
|
||||
organization.settings.delete.title: Eliminar organização
|
||||
organization.settings.delete.description: Eliminar esta organização removerá permanentemente todos os dados associados à mesma.
|
||||
organization.settings.delete.confirm.title: Eliminar organização
|
||||
organization.settings.delete.confirm.message: Tem a certeza de que quer eliminar esta organização? Esta ação não pode ser desfeita e todos os dados associados a esta organização serão permanentemente removidos.
|
||||
organization.settings.delete.confirm.confirm-button: Eliminar organização
|
||||
organization.settings.delete.confirm.cancel-button: Cancelar
|
||||
organization.settings.delete.success: Organização eliminada
|
||||
|
||||
organizations.members.title: Membros
|
||||
organizations.members.description: Gira os membros da sua organização
|
||||
organizations.members.invite-member: Convidar membro
|
||||
organizations.members.invite-member-disabled-tooltip: Apenas administradores ou proprietários podem convidar membros para a organização
|
||||
organizations.members.remove-from-organization: Remover da organização
|
||||
organizations.members.role: Função
|
||||
organizations.members.roles.owner: Proprietário
|
||||
organizations.members.roles.admin: Administrador
|
||||
organizations.members.roles.member: Membro
|
||||
organizations.members.delete.confirm.title: Remover membro
|
||||
organizations.members.delete.confirm.message: Tem a certeza de que quer remover este membro da organização?
|
||||
organizations.members.delete.confirm.confirm-button: Remover
|
||||
organizations.members.delete.confirm.cancel-button: Cancelar
|
||||
organizations.members.delete.success: Membro removido da organização
|
||||
organizations.members.update-role.success: Função do membro atualizada
|
||||
organizations.members.table.headers.name: Nome
|
||||
organizations.members.table.headers.email: E-mail
|
||||
organizations.members.table.headers.role: Função
|
||||
organizations.members.table.headers.created: Criado
|
||||
organizations.members.table.headers.actions: Ações
|
||||
|
||||
organizations.invite-member.title: Convidar membro
|
||||
organizations.invite-member.description: Convide um membro para a sua organização
|
||||
organizations.invite-member.form.email.label: E-mail
|
||||
organizations.invite-member.form.email.placeholder: 'Exemplo: joao@papra.app'
|
||||
organizations.invite-member.form.email.required: Por favor, introduza um endereço de e-mail válido
|
||||
organizations.invite-member.form.role.label: Função
|
||||
organizations.invite-member.form.submit: Convidar para a organização
|
||||
organizations.invite-member.success.message: Membro convidado
|
||||
organizations.invite-member.success.description: O e-mail foi convidado para a organização.
|
||||
organizations.invite-member.error.message: Falha ao convidar membro
|
||||
|
||||
organizations.invitations.title: Convites
|
||||
organizations.invitations.description: Gira os convites da sua organização
|
||||
organizations.invitations.list.cta: Convidar membro
|
||||
organizations.invitations.list.empty.title: Sem convites pendentes
|
||||
organizations.invitations.list.empty.description: Ainda não foi convidado para nenhuma organização.
|
||||
organizations.invitations.status.pending: Pendente
|
||||
organizations.invitations.status.accepted: Aceite
|
||||
organizations.invitations.status.rejected: Rejeitado
|
||||
organizations.invitations.status.expired: Expirado
|
||||
organizations.invitations.status.cancelled: Cancelado
|
||||
organizations.invitations.resend: Reenviar convite
|
||||
organizations.invitations.cancel.title: Cancelar convite
|
||||
organizations.invitations.cancel.description: Tem a certeza de que quer cancelar este convite?
|
||||
organizations.invitations.cancel.confirm: Cancelar convite
|
||||
organizations.invitations.cancel.cancel: Cancelar
|
||||
organizations.invitations.resend.title: Reenviar convite
|
||||
organizations.invitations.resend.description: Tem a certeza de que quer reenviar este convite? Isto enviará um novo e-mail ao destinatário.
|
||||
organizations.invitations.resend.confirm: Reenviar convite
|
||||
organizations.invitations.resend.cancel: Cancelar
|
||||
|
||||
invitations.list.title: Convites
|
||||
invitations.list.description: Gira os convites da sua organização
|
||||
invitations.list.empty.title: Sem convites pendentes
|
||||
invitations.list.empty.description: Ainda não foi convidado para nenhuma organização.
|
||||
invitations.list.headers.organization: Organização
|
||||
invitations.list.headers.status: Estado
|
||||
invitations.list.headers.created: Criado
|
||||
invitations.list.headers.actions: Ações
|
||||
invitations.list.actions.accept: Aceitar
|
||||
invitations.list.actions.reject: Rejeitar
|
||||
invitations.list.actions.accept.success.message: Convite aceite
|
||||
invitations.list.actions.accept.success.description: O convite foi aceite.
|
||||
invitations.list.actions.reject.success.message: Convite rejeitado
|
||||
invitations.list.actions.reject.success.description: O convite foi rejeitado.
|
||||
|
||||
# Documents
|
||||
|
||||
documents.list.title: Documentos
|
||||
documents.list.no-documents.title: Sem documentos
|
||||
documents.list.no-documents.description: Não há documentos nesta organização ainda. Comece por carregar alguns documentos.
|
||||
documents.list.no-results: Nenhum documento encontrado
|
||||
|
||||
documents.tabs.info: Informação
|
||||
documents.tabs.content: Conteúdo
|
||||
documents.tabs.activity: Atividade
|
||||
documents.deleted.message: Este documento foi eliminado e será permanentemente removido em {{ days }} dias.
|
||||
documents.actions.download: Descarregar
|
||||
documents.actions.open-in-new-tab: Abrir em novo separador
|
||||
documents.actions.restore: Restaurar
|
||||
documents.actions.delete: Eliminar
|
||||
documents.actions.edit: Editar
|
||||
documents.actions.cancel: Cancelar
|
||||
documents.actions.save: Guardar
|
||||
documents.actions.saving: A guardar...
|
||||
documents.content.alert: O conteúdo do documento é automaticamente extraído do documento no carregamento. É usado apenas para fins de pesquisa e indexação.
|
||||
documents.info.id: ID
|
||||
documents.info.name: Nome
|
||||
documents.info.type: Tipo
|
||||
documents.info.size: Tamanho
|
||||
documents.info.created-at: Criado em
|
||||
documents.info.updated-at: Atualizado em
|
||||
documents.info.never: Nunca
|
||||
|
||||
documents.rename.title: Renomear documento
|
||||
documents.rename.form.name.label: Nome
|
||||
documents.rename.form.name.placeholder: 'Exemplo: Fatura 2024'
|
||||
documents.rename.form.name.required: Por favor, introduza um nome para o documento
|
||||
documents.rename.form.name.max-length: O nome deve ter menos de 255 caracteres
|
||||
documents.rename.form.submit: Renomear documento
|
||||
documents.rename.success: Documento renomeado com sucesso
|
||||
documents.rename.cancel: Cancelar
|
||||
|
||||
import-documents.title.error: '{{ count }} documentos falharam'
|
||||
import-documents.title.success: '{{ count }} documentos importados'
|
||||
import-documents.title.pending: '{{ count }} / {{ total }} documentos importados'
|
||||
import-documents.title.none: Importar documentos
|
||||
import-documents.no-import-in-progress: Nenhuma importação de documento em progresso
|
||||
|
||||
documents.deleted.title: Documentos eliminados
|
||||
documents.deleted.empty.title: Sem documentos eliminados
|
||||
documents.deleted.empty.description: Não tem documentos eliminados. Os documentos que são eliminados serão movidos para a reciclagem por {{ days }} dias.
|
||||
documents.deleted.retention-notice: Todos os documentos eliminados são armazenados na reciclagem por {{ days }} dias. Passando este prazo, os documentos serão permanentemente eliminados e não poderá restaurá-los.
|
||||
documents.deleted.deleted-at: Eliminado
|
||||
documents.deleted.restoring: A restaurar...
|
||||
documents.deleted.deleting: A eliminar...
|
||||
|
||||
documents.preview.unknown-file-type: Não há pré-visualização disponível para este tipo de ficheiro
|
||||
documents.preview.binary-file: Este parece ser um ficheiro binário e não pode ser exibido como texto
|
||||
|
||||
trash.delete-all.button: Eliminar tudo
|
||||
trash.delete-all.confirm.title: Eliminar permanentemente todos os documentos?
|
||||
trash.delete-all.confirm.description: Tem a certeza de que quer eliminar permanentemente todos os documentos da reciclagem? Esta ação não pode ser desfeita.
|
||||
trash.delete-all.confirm.label: Eliminar
|
||||
trash.delete-all.confirm.cancel: Cancelar
|
||||
trash.delete.button: Eliminar
|
||||
trash.delete.confirm.title: Eliminar documento permanentemente?
|
||||
trash.delete.confirm.description: Tem a certeza de que quer eliminar permanentemente este documento da reciclagem? Esta ação não pode ser desfeita.
|
||||
trash.delete.confirm.label: Eliminar
|
||||
trash.delete.confirm.cancel: Cancelar
|
||||
trash.deleted.success.title: Documento eliminado
|
||||
trash.deleted.success.description: O documento foi eliminado permanentemente.
|
||||
|
||||
activity.document.created: O documento foi criado
|
||||
activity.document.updated.single: O {{ field }} foi atualizado
|
||||
activity.document.updated.multiple: Os {{ fields }} foram atualizados
|
||||
activity.document.updated: O documento foi atualizado
|
||||
activity.document.deleted: O documento foi eliminado
|
||||
activity.document.restored: O documento foi restaurado
|
||||
activity.document.tagged: A etiqueta {{ tag }} foi adicionada
|
||||
activity.document.untagged: A etiqueta {{ tag }} foi removida
|
||||
|
||||
activity.document.user.name: por {{ name }}
|
||||
|
||||
activity.load-more: Carregar mais
|
||||
activity.no-more-activities: Não há mais atividades para este documento
|
||||
|
||||
# Tags
|
||||
|
||||
tags.no-tags.title: Ainda sem etiquetas
|
||||
tags.no-tags.description: Esta organização ainda não tem etiquetas. As etiquetas são usadas para categorizar documentos. Pode adicionar etiquetas aos seus documentos para os tornar mais fáceis de encontrar e organizar.
|
||||
tags.no-tags.create-tag: Criar etiqueta
|
||||
|
||||
tags.title: Etiquetas de Documentos
|
||||
tags.description: As etiquetas são usadas para categorizar documentos. Pode adicionar etiquetas aos seus documentos para os tornar mais fáceis de encontrar e organizar.
|
||||
tags.create: Criar etiqueta
|
||||
tags.update: Atualizar etiqueta
|
||||
tags.delete: Eliminar etiqueta
|
||||
tags.delete.confirm.title: Eliminar etiqueta
|
||||
tags.delete.confirm.message: Tem a certeza de que quer eliminar esta etiqueta? Eliminar uma etiqueta irá removê-la de todos os documentos.
|
||||
tags.delete.confirm.confirm-button: Eliminar
|
||||
tags.delete.confirm.cancel-button: Cancelar
|
||||
tags.delete.success: Etiqueta eliminada com sucesso
|
||||
tags.create.success: Etiqueta "{{ name }}" criada com sucesso.
|
||||
tags.update.success: Etiqueta "{{ name }}" atualizada com sucesso.
|
||||
tags.form.name.label: Nome
|
||||
tags.form.name.placeholder: Ex. Contratos
|
||||
tags.form.name.required: Por favor, introduza um nome para a etiqueta
|
||||
tags.form.name.max-length: O nome da etiqueta deve ter menos de 64 caracteres
|
||||
tags.form.color.label: Cor
|
||||
tags.form.color.required: Por favor, introduza uma cor
|
||||
tags.form.color.invalid: A cor hexadecimal está mal formatada.
|
||||
tags.form.description.label: Descrição
|
||||
tags.form.description.optional: (opcional)
|
||||
tags.form.description.placeholder: Ex. Todos os contratos assinados pela empresa
|
||||
tags.form.description.max-length: A descrição deve ter menos de 256 caracteres
|
||||
tags.form.no-description: Sem descrição
|
||||
tags.table.headers.tag: Etiqueta
|
||||
tags.table.headers.description: Descrição
|
||||
tags.table.headers.documents: Documentos
|
||||
tags.table.headers.created: Criado
|
||||
tags.table.headers.actions: Ações
|
||||
|
||||
# Tagging rules
|
||||
|
||||
tagging-rules.field.name: nome do documento
|
||||
tagging-rules.field.content: conteúdo do documento
|
||||
tagging-rules.operator.equals: igual a
|
||||
tagging-rules.operator.not-equals: não igual a
|
||||
tagging-rules.operator.contains: contém
|
||||
tagging-rules.operator.not-contains: não contém
|
||||
tagging-rules.operator.starts-with: começa com
|
||||
tagging-rules.operator.ends-with: termina com
|
||||
tagging-rules.list.title: Regras de etiquetagem
|
||||
tagging-rules.list.description: Gira as regras de etiquetagem da sua organização, para etiquetar automaticamente documentos com base em condições que define.
|
||||
tagging-rules.list.demo-warning: 'Nota: Como este é um ambiente de demonstração (sem servidor), as regras de etiquetagem não serão aplicadas a documentos recém-adicionados.'
|
||||
tagging-rules.list.no-tagging-rules.title: Sem regras de etiquetagem
|
||||
tagging-rules.list.no-tagging-rules.description: Crie uma regra de etiquetagem para etiquetar automaticamente os seus documentos adicionados com base em condições que define.
|
||||
tagging-rules.list.no-tagging-rules.create-tagging-rule: Criar regra de etiquetagem
|
||||
tagging-rules.list.card.no-conditions: Sem condições
|
||||
tagging-rules.list.card.one-condition: 1 condição
|
||||
tagging-rules.list.card.conditions: '{{ count }} condições'
|
||||
tagging-rules.list.card.delete: Eliminar regra
|
||||
tagging-rules.list.card.edit: Editar regra
|
||||
tagging-rules.create.title: Criar regra de etiquetagem
|
||||
tagging-rules.create.success: Regra de etiquetagem criada com sucesso
|
||||
tagging-rules.create.error: Falha ao criar regra de etiquetagem
|
||||
tagging-rules.create.submit: Criar regra
|
||||
tagging-rules.form.name.label: Nome
|
||||
tagging-rules.form.name.placeholder: 'Exemplo: Etiquetar faturas'
|
||||
tagging-rules.form.name.min-length: Por favor, introduza um nome para a regra
|
||||
tagging-rules.form.name.max-length: O nome deve ter menos de 64 caracteres
|
||||
tagging-rules.form.description.label: Descrição
|
||||
tagging-rules.form.description.placeholder: "Exemplo: Etiquetar documentos com 'fatura' no nome"
|
||||
tagging-rules.form.description.max-length: A descrição deve ter menos de 256 caracteres
|
||||
tagging-rules.form.conditions.label: Condições
|
||||
tagging-rules.form.conditions.description: Defina as condições que devem ser cumpridas para a regra se aplicar. Todas as condições devem ser cumpridas para a regra se aplicar.
|
||||
tagging-rules.form.conditions.add-condition: Adicionar condição
|
||||
tagging-rules.form.conditions.no-conditions.title: Sem condições
|
||||
tagging-rules.form.conditions.no-conditions.description: Não adicionou nenhuma condição a esta regra. Esta regra aplicará as suas etiquetas a todos os documentos.
|
||||
tagging-rules.form.conditions.no-conditions.confirm: Aplicar regra sem condições
|
||||
tagging-rules.form.conditions.no-conditions.cancel: Cancelar
|
||||
tagging-rules.form.conditions.value.placeholder: 'Exemplo: fatura'
|
||||
tagging-rules.form.conditions.value.min-length: Por favor, introduza um valor para a condição
|
||||
tagging-rules.form.tags.label: Etiquetas
|
||||
tagging-rules.form.tags.description: Selecione as etiquetas a aplicar aos documentos adicionados que correspondem às condições
|
||||
tagging-rules.form.tags.min-length: É necessária pelo menos uma etiqueta para aplicar
|
||||
tagging-rules.form.tags.add-tag: Criar etiqueta
|
||||
tagging-rules.form.submit: Criar regra
|
||||
tagging-rules.update.title: Atualizar regra de etiquetagem
|
||||
tagging-rules.update.error: Falha ao atualizar regra de etiquetagem
|
||||
tagging-rules.update.submit: Atualizar regra
|
||||
tagging-rules.update.cancel: Cancelar
|
||||
|
||||
# Intake emails
|
||||
|
||||
intake-emails.title: E-mails de Receção
|
||||
intake-emails.description: Os endereços de e-mail de receção são usados para ingerir automaticamente e-mails no Papra. Basta reencaminhar e-mails para o endereço de e-mail de receção e os seus anexos serão adicionados aos documentos da sua organização.
|
||||
intake-emails.disabled.title: Os E-mails de Receção estão desativados
|
||||
intake-emails.disabled.description: Os e-mails de receção estão desativados nesta instância. Contacte o seu administrador para os ativar. Consulte a {{ documentation }} para mais informações.
|
||||
intake-emails.disabled.documentation: documentação
|
||||
intake-emails.info: Apenas e-mails de receção ativados de origens permitidas serão processados. Pode ativar ou desativar um e-mail de receção a qualquer momento.
|
||||
intake-emails.empty.title: Sem e-mails de receção
|
||||
intake-emails.empty.description: Gere um endereço de receção para ingerir facilmente anexos de e-mails.
|
||||
intake-emails.empty.generate: Gerar e-mail de receção
|
||||
intake-emails.count: '{{ count }} e-mail{{ plural }} de receção para esta organização'
|
||||
intake-emails.new: Novo e-mail de receção
|
||||
intake-emails.disabled-label: (Desativado)
|
||||
intake-emails.no-origins: Sem origens de e-mail permitidas
|
||||
intake-emails.allowed-origins: Permitido de {{ count }} endereço{{ plural }}
|
||||
intake-emails.actions.enable: Ativar
|
||||
intake-emails.actions.disable: Desativar
|
||||
intake-emails.actions.manage-origins: Gerir endereços de origem
|
||||
intake-emails.actions.delete: Eliminar
|
||||
intake-emails.delete.confirm.title: Eliminar e-mail de receção?
|
||||
intake-emails.delete.confirm.message: Tem a certeza de que quer eliminar este e-mail de receção? Esta ação não pode ser desfeita.
|
||||
intake-emails.delete.confirm.confirm-button: Eliminar e-mail de receção
|
||||
intake-emails.delete.confirm.cancel-button: Cancelar
|
||||
intake-emails.delete.success: E-mail de receção eliminado
|
||||
intake-emails.create.success: E-mail de receção criado
|
||||
intake-emails.update.success.enabled: E-mail de receção ativado
|
||||
intake-emails.update.success.disabled: E-mail de receção desativado
|
||||
intake-emails.allowed-origins.title: Origens permitidas
|
||||
intake-emails.allowed-origins.description: Apenas e-mails enviados para {{ email }} destas origens serão processados. Se nenhuma origem for especificada, todos os e-mails serão descartados.
|
||||
intake-emails.allowed-origins.add.label: Adicionar e-mail de origem permitida
|
||||
intake-emails.allowed-origins.add.placeholder: Ex. joao@papra.app
|
||||
intake-emails.allowed-origins.add.button: Adicionar
|
||||
intake-emails.allowed-origins.add.error.exists: Este e-mail já está nas origens permitidas para este e-mail de receção
|
||||
|
||||
# API keys
|
||||
|
||||
api-keys.permissions.documents.title: Documentos
|
||||
api-keys.permissions.documents.documents:create: Criar documentos
|
||||
api-keys.permissions.documents.documents:read: Ler documentos
|
||||
api-keys.permissions.documents.documents:update: Atualizar documentos
|
||||
api-keys.permissions.documents.documents:delete: Eliminar documentos
|
||||
api-keys.permissions.tags.title: Etiquetas
|
||||
api-keys.permissions.tags.tags:create: Criar etiquetas
|
||||
api-keys.permissions.tags.tags:read: Ler etiquetas
|
||||
api-keys.permissions.tags.tags:update: Atualizar etiquetas
|
||||
api-keys.permissions.tags.tags:delete: Eliminar etiquetas
|
||||
api-keys.create.title: Criar chave API
|
||||
api-keys.create.description: Crie uma nova chave API para aceder à API do Papra.
|
||||
api-keys.create.success: A chave API foi criada com sucesso.
|
||||
api-keys.create.back: Voltar às chaves API
|
||||
api-keys.create.form.name.label: Nome
|
||||
api-keys.create.form.name.placeholder: 'Exemplo: A minha chave API'
|
||||
api-keys.create.form.name.required: Por favor, introduza um nome para a chave API
|
||||
api-keys.create.form.permissions.label: Permissões
|
||||
api-keys.create.form.permissions.required: Por favor, selecione pelo menos uma permissão
|
||||
api-keys.create.form.submit: Criar chave API
|
||||
api-keys.create.created.title: Chave API criada
|
||||
api-keys.create.created.description: A chave API foi criada com sucesso. Guarde-a num local seguro pois não será exibida novamente.
|
||||
api-keys.list.title: Chaves API
|
||||
api-keys.list.description: Gira as suas chaves API aqui.
|
||||
api-keys.list.create: Criar chave API
|
||||
api-keys.list.empty.title: Sem chaves API
|
||||
api-keys.list.empty.description: Crie uma chave API para aceder à API do Papra.
|
||||
api-keys.list.card.last-used: Última utilização
|
||||
api-keys.list.card.never: Nunca
|
||||
api-keys.list.card.created: Criado
|
||||
api-keys.delete.success: A chave API foi eliminada com sucesso
|
||||
api-keys.delete.confirm.title: Eliminar chave API
|
||||
api-keys.delete.confirm.message: Tem a certeza de que quer eliminar esta chave API? Esta ação não pode ser desfeita.
|
||||
api-keys.delete.confirm.confirm-button: Eliminar
|
||||
api-keys.delete.confirm.cancel-button: Cancelar
|
||||
|
||||
# Webhooks
|
||||
|
||||
webhooks.list.title: Webhooks
|
||||
webhooks.list.description: Gira os webhooks da sua organização
|
||||
webhooks.list.empty.title: Nenhum webhook
|
||||
webhooks.list.empty.description: Crie o seu primeiro webhook para começar a receber eventos
|
||||
webhooks.list.create: Criar webhook
|
||||
webhooks.list.card.last-triggered: Última ativação
|
||||
webhooks.list.card.never: Nunca
|
||||
webhooks.list.card.created: Criado em
|
||||
webhooks.create.title: Criar webhook
|
||||
webhooks.create.description: Crie um novo webhook para receber eventos
|
||||
webhooks.create.success: Webhook criado com sucesso
|
||||
webhooks.create.back: Voltar
|
||||
webhooks.create.form.submit: Criar webhook
|
||||
webhooks.create.form.name.label: Nome do webhook
|
||||
webhooks.create.form.name.placeholder: Insira o nome do webhook
|
||||
webhooks.create.form.name.required: O nome é obrigatório
|
||||
webhooks.create.form.url.label: URL do Webhook
|
||||
webhooks.create.form.url.placeholder: Insira o URL do webhook
|
||||
webhooks.create.form.url.required: O URL é obrigatória
|
||||
webhooks.create.form.url.invalid: URL inválido
|
||||
webhooks.create.form.secret.label: Segredo
|
||||
webhooks.create.form.secret.placeholder: Insira o segredo do webhook
|
||||
webhooks.create.form.events.label: Eventos
|
||||
webhooks.create.form.events.required: Adicione pelo menos um evento
|
||||
webhooks.update.title: Editar webhook
|
||||
webhooks.update.description: Atualize os detalhes do seu webhook
|
||||
webhooks.update.success: Webhook atualizado com sucesso
|
||||
webhooks.update.submit: Atualizar webhook
|
||||
webhooks.update.cancel: Cancelar
|
||||
webhooks.update.form.secret.placeholder: Insira um novo segredo
|
||||
webhooks.update.form.secret.placeholder-redacted: '[Segredo ocultado]'
|
||||
webhooks.update.form.rotate-secret.button: Rotacionar segredo
|
||||
webhooks.delete.success: Webhook eliminado com sucesso
|
||||
webhooks.delete.confirm.title: Eliminar webhook
|
||||
webhooks.delete.confirm.message: Tem a certeza de que deseja eliminar este webhook?
|
||||
webhooks.delete.confirm.confirm-button: Eliminar
|
||||
webhooks.delete.confirm.cancel-button: Cancelar
|
||||
|
||||
webhooks.events.documents.document:created.description: Documento criado
|
||||
webhooks.events.documents.document:deleted.description: Documento eliminado
|
||||
|
||||
# Navigation
|
||||
|
||||
layout.menu.home: Início
|
||||
layout.menu.documents: Documentos
|
||||
layout.menu.tags: Tags
|
||||
layout.menu.tagging-rules: Regras de etiquetagem
|
||||
layout.menu.deleted-documents: Documentos eliminados
|
||||
layout.menu.organization-settings: Definições
|
||||
layout.menu.api-keys: Chaves API
|
||||
layout.menu.settings: Definições
|
||||
layout.menu.account: Conta
|
||||
layout.menu.general-settings: Definições gerais
|
||||
layout.menu.intake-emails: E-mails de entrada
|
||||
layout.menu.webhooks: Webhooks
|
||||
layout.menu.members: Membros
|
||||
layout.menu.invitations: Convites
|
||||
|
||||
layout.theme.light: Tema claro
|
||||
layout.theme.dark: Tema escuro
|
||||
layout.theme.system: Tema do sistema
|
||||
|
||||
layout.search.placeholder: Procurar...
|
||||
layout.menu.import-document: Importar um documento
|
||||
|
||||
user-menu.account-settings: Definições da conta
|
||||
user-menu.api-keys: Chaves API
|
||||
user-menu.invitations: Convites
|
||||
user-menu.language: Linguagem
|
||||
user-menu.logout: Sair
|
||||
|
||||
# Command palette
|
||||
|
||||
command-palette.search.placeholder: Procurar comandos ou documentos
|
||||
command-palette.no-results: Nenhum resultado encontrado
|
||||
command-palette.sections.documents: Documentos
|
||||
command-palette.sections.theme: Tema
|
||||
|
||||
# API errors
|
||||
|
||||
api-errors.document.already_exists: O documento já existe
|
||||
api-errors.document.file_too_big: O arquivo do documento é muito grande
|
||||
api-errors.intake_email.limit_reached: O número máximo de e-mails de entrada para esta organização foi atingido. Faça um upgrade no seu plano para criar mais e-mails de entrada.
|
||||
api-errors.user.max_organization_count_reached: Atingiu o número máximo de organizações que pode criar. Se precisar de criar mais, entre em contato com o suporte.
|
||||
api-errors.default: Ocorreu um erro ao processar a solicitação.
|
||||
api-errors.organization.invitation_already_exists: Já existe um convite para este e-mail nesta organização.
|
||||
api-errors.user.already_in_organization: Este utilizadpr já faz parte desta organização.
|
||||
api-errors.user.organization_invitation_limit_reached: O número máximo de convites por hoje foi atingido. Por favor, tente novamente amanhã.
|
||||
api-errors.demo.not_available: Este recurso não está disponível em ambiente de demonstração
|
||||
api-errors.tags.already_exists: Já existe uma etiqueta com este nome nesta organização
|
||||
|
||||
# Not found
|
||||
|
||||
not-found.title: 404 - Página não encontrada
|
||||
not-found.description: Desculpe, a página que procura não existe. Verifique o URL e tente novamente.
|
||||
not-found.back-to-home: Voltar para a página inicial
|
||||
|
||||
# Demo
|
||||
|
||||
demo.popup.description: Este é um ambiente de demonstração; todos os dados são guardadis no armazenamento local do navegador.
|
||||
demo.popup.discord: Entre no {{ discordLink }} para obter suporte, sugerir funcionalidades ou apenas conversar.
|
||||
demo.popup.discord-link-label: Comunidade do Discord
|
||||
demo.popup.reset: Redefinir dados da demonstração
|
||||
demo.popup.hide: Ocultar
|
||||
|
||||
# Color picker
|
||||
|
||||
color-picker.hue: Matiz
|
||||
color-picker.saturation: Saturação
|
||||
color-picker.lightness: Brilho
|
||||
color-picker.select-color: Selecionar cor
|
||||
color-picker.select-a-color: Selecione uma cor
|
||||
565
apps/papra-client/src/locales/ro.yml
Normal file
565
apps/papra-client/src/locales/ro.yml
Normal file
@@ -0,0 +1,565 @@
|
||||
# Authentication
|
||||
|
||||
auth.request-password-reset.title: Reseteaza parola
|
||||
auth.request-password-reset.description: Introduceti adresa de email pentru a reseta parola.
|
||||
auth.request-password-reset.requested: Daca exista un cont pentru acest email, am trimis un email cu linkul de resetare.
|
||||
auth.request-password-reset.back-to-login: Inapoi la login
|
||||
auth.request-password-reset.form.email.label: Email
|
||||
auth.request-password-reset.form.email.placeholder: 'Exemplu: popescu@papra.app'
|
||||
auth.request-password-reset.form.email.required: Introduceti adresa de email
|
||||
auth.request-password-reset.form.email.invalid: Adresa email este invalida
|
||||
auth.request-password-reset.form.submit: Trimite cererea de resetare a parolei
|
||||
|
||||
auth.reset-password.title: Reseteaza parola
|
||||
auth.reset-password.description: Introdu o parola noua pentru a o reseta pe cea veche.
|
||||
auth.reset-password.reset: Parola ta a fost resetata cu success.
|
||||
auth.reset-password.back-to-login: Inapoi la login
|
||||
auth.reset-password.form.new-password.label: Parola noua
|
||||
auth.reset-password.form.new-password.placeholder: 'Exemplu: **********'
|
||||
auth.reset-password.form.new-password.required: Introdu noua parola
|
||||
auth.reset-password.form.new-password.min-length: Parola trebuie sa fie de minim {{ minLength }} de caractere
|
||||
auth.reset-password.form.new-password.max-length: Parola trebuie sa fie de maxim {{ maxLength }} de caractere
|
||||
auth.reset-password.form.submit: Reseteaza parola
|
||||
|
||||
auth.email-provider.open: Deschide {{ provider }}
|
||||
|
||||
auth.login.title: Inregistreaza-te pe Papra
|
||||
auth.login.description: Introdu email ul pentru a accesa papra.
|
||||
auth.login.login-with-provider: Inregistreaza-te cu {{ provider }}
|
||||
auth.login.no-account: Nu ai un cont?
|
||||
auth.login.register: Logheaza-te
|
||||
auth.login.form.email.label: email
|
||||
auth.login.form.email.placeholder: 'Exemplu: popescu@papra.app'
|
||||
auth.login.form.email.required: Introduceti adresa de email
|
||||
auth.login.form.email.invalid: Adresa email este invalida
|
||||
auth.login.form.password.label: Parola
|
||||
auth.login.form.password.placeholder: Seteaza o parola noua
|
||||
auth.login.form.password.required: Introduceti parola noua
|
||||
auth.login.form.remember-me.label: Nu ma uita
|
||||
auth.login.form.forgot-password.label: Ai uitat parola?
|
||||
auth.login.form.submit: Logheaza-te
|
||||
|
||||
auth.register.title: Inregistreaza-te pe Papra
|
||||
auth.register.description: Introdu email ul pentru a accesa papra.
|
||||
auth.register.register-with-email: Inregistreaza-te cu email
|
||||
auth.register.register-with-provider: Inregistreaza-te cu {{ provider }}
|
||||
auth.register.providers.google: Google
|
||||
auth.register.providers.github: GitHub
|
||||
auth.register.have-account: Ai deja un cont?
|
||||
auth.register.login: Logheaza-te
|
||||
auth.register.registration-disabled.title: Inregistrarea este dezactivata
|
||||
auth.register.registration-disabled.description: Crearea de conturi noi este momentan dezactivata pe aceasta instanta de Papra. Doar utilizatorii cu conturi existente pot logheaza. Daca crezi ca e o greseala, contacteaza administratorul acestei instante.
|
||||
auth.register.form.email.label: Email
|
||||
auth.register.form.email.placeholder: 'Exemplu: popescu@papra.app'
|
||||
auth.register.form.email.required: Introduceti adresa de email
|
||||
auth.register.form.email.invalid: Adresa email este invalida
|
||||
auth.register.form.password.label: Parola
|
||||
auth.register.form.password.placeholder: Seteaza parola
|
||||
auth.register.form.password.required: Te rugam sa introduci parola
|
||||
auth.register.form.password.min-length: Parola trebuie sa fie de minim {{ minLength }} de caractere
|
||||
auth.register.form.password.max-length: Parola trebuie sa fie de minim {{ maxLength }} de caractere
|
||||
auth.register.form.name.label: Nume
|
||||
auth.register.form.name.placeholder: 'Exemplu: Andrei Popescu'
|
||||
auth.register.form.name.required: Introduce-ti numele
|
||||
auth.register.form.name.max-length: Numele trebuie sa fie de minim {{ maxLength }} de caractere
|
||||
auth.register.form.submit: Inregistreaza-te
|
||||
|
||||
auth.email-validation-required.title: Verifica-ti email-ul
|
||||
auth.email-validation-required.description: A fost trimis un email de verificare la adresa de email introdusa. Verificati email-ul dumneavoastra si click pe link-ul din email.
|
||||
|
||||
auth.legal-links.description: Continuand, confirmati ca intelegeti si sunteti de acord cu {{ terms }} si {{ privacy }}.
|
||||
auth.legal-links.terms: Termenii si conditiile
|
||||
auth.legal-links.privacy: Politica de confidențialitate
|
||||
|
||||
auth.no-auth-provider.title: Niciun provider de autentificare nu este adaugat
|
||||
auth.no-auth-provider.description: Nu exista nicio metoda de autentificare configurata. Contactati administratorul acestei instante pentru a adauga o metoda de autentificare.
|
||||
|
||||
# User settings
|
||||
|
||||
user.settings.title: Setarile tale
|
||||
user.settings.description: Configureaza-ti setarile tale.
|
||||
|
||||
user.settings.email.title: Adresa email
|
||||
user.settings.email.description: Adresa ta de email nu poate fi schimbata.
|
||||
user.settings.email.label: Adresa email
|
||||
|
||||
user.settings.name.title: Numele dvs.
|
||||
user.settings.name.description: Numele dvs. va fi distribuit cu persoanele din organizatia dvs.
|
||||
user.settings.name.label: Numele dvs.
|
||||
user.settings.name.placeholder: Ex. Andrei Popescu
|
||||
user.settings.name.update: Schimba-ti numele
|
||||
user.settings.name.updated: Numele tau s-a schimbat
|
||||
|
||||
user.settings.logout.title: Iesi din cont
|
||||
user.settings.logout.description: Iesi din cont
|
||||
user.settings.logout.button: Iesi din cont
|
||||
|
||||
# Organizations
|
||||
|
||||
organizations.list.title: Organizatiile dvs.
|
||||
organizations.list.description: Organizatiile sunt o modalitate de a grupa documentele si de a le gestiona accesul la acestea. Poti crea multiple organizatii si invita membrii echipei tale sa colabora.
|
||||
organizations.list.create-new: Creeaza o noua organizatie
|
||||
|
||||
organizations.details.no-documents.title: Niciun document
|
||||
organizations.details.no-documents.description: Nu sunt documente in aceasta organizatie. Incepe prin uploadarea unei documente.
|
||||
organizations.details.upload-documents: Incarca documente
|
||||
organizations.details.documents-count: documente in total
|
||||
organizations.details.total-size: marime totala
|
||||
organizations.details.latest-documents: Ultimele documente incarcate
|
||||
|
||||
organizations.create.title: Creeaza o noua organizatie
|
||||
organizations.create.description: Documentele dvs. sunt grupate pe organizatie. Puteti crea mai multe organizatii pentru documente diferite, de exemplu, pentru uz personal si profesional.
|
||||
organizations.create.back: Inapoi
|
||||
organizations.create.error.max-count-reached: Ai ajuns la numarul maxim de organizatii pe care le poti crea, daca ai nevoie de mai multe, contacteaza support ul.
|
||||
organizations.create.form.name.label: Numle organizatiei
|
||||
organizations.create.form.name.placeholder: Ex. Acme SRL.
|
||||
organizations.create.form.name.required: Introdu numele organizatiei
|
||||
organizations.create.form.submit: Creeaza organizatia
|
||||
organizations.create.success: Organizatia a fost creata cu success
|
||||
|
||||
organizations.create-first.title: Creeaza organizatia
|
||||
organizations.create-first.description: Documentele dvs. sunt grupate pe organizatie. Puteti crea mai multe organizatii pentru documente diferite, de exemplu, pentru uz personal si profesional.
|
||||
organizations.create-first.default-name: Organizatia mea
|
||||
organizations.create-first.user-name: 'Organizatia {{ name }}'
|
||||
|
||||
organization.settings.title: Setarile organizatiei
|
||||
organization.settings.page.title: Setarile organizatiei
|
||||
organization.settings.page.description: Gestioneaza setarile organizatiei tale aici.
|
||||
organization.settings.name.title: Numele organizatiei
|
||||
organization.settings.name.update: Actualizeaza numele
|
||||
organization.settings.name.placeholder: Ex. Acme SRL.
|
||||
organization.settings.name.updated: Numele organizatiei a fost actualizat
|
||||
organization.settings.subscription.title: Subscriptie
|
||||
organization.settings.subscription.description: Gestioneaza facturile, facturi si metodele de plata.
|
||||
organization.settings.subscription.manage: Gestioneaza-ti subscriptia
|
||||
organization.settings.subscription.error: Eroare la obtinerea URL-ului portalului client
|
||||
organization.settings.delete.title: Sterge organizatie
|
||||
organization.settings.delete.description: Stergerea acestei organizatii va elimina permanent toate datele asociate cu aceasta.
|
||||
organization.settings.delete.confirm.title: Sterge organizatie
|
||||
organization.settings.delete.confirm.message: Esti sigur ca vrei sa stergi aceasta organizatie? Aceasta operatie nu poate fi anulata si toate datele asociate cu aceasta vor fi eliminate permanent.
|
||||
organization.settings.delete.confirm.confirm-button: Sterge organizatie
|
||||
organization.settings.delete.confirm.cancel-button: Anuleaza
|
||||
organization.settings.delete.success: Organizatie stearsa cu success
|
||||
|
||||
organizations.members.title: Membri
|
||||
organizations.members.description: Gestioneaza membrii organizatiei tale
|
||||
organizations.members.invite-member: Invita membru
|
||||
organizations.members.invite-member-disabled-tooltip: Doar adminii sau proprietarii pot invita membrii la organizatie
|
||||
organizations.members.remove-from-organization: Elimina din organizatie
|
||||
organizations.members.role: Rol
|
||||
organizations.members.roles.owner: Proprietar
|
||||
organizations.members.roles.admin: Admin
|
||||
organizations.members.roles.member: membru
|
||||
organizations.members.delete.confirm.title: Eliminati membrul
|
||||
organizations.members.delete.confirm.message: Esti sigur ca vrei sa stergi acest membru din organizatie?
|
||||
organizations.members.delete.confirm.confirm-button: Elimina
|
||||
organizations.members.delete.confirm.cancel-button: Anuleaza
|
||||
organizations.members.delete.success: membru sters cu succes
|
||||
organizations.members.update-role.success: Rolul membrului a fost actualizat
|
||||
organizations.members.table.headers.name: Nume
|
||||
organizations.members.table.headers.email: Email
|
||||
organizations.members.table.headers.role: Rol
|
||||
organizations.members.table.headers.created: Creat
|
||||
organizations.members.table.headers.actions: Actiuni
|
||||
|
||||
organizations.invite-member.title: Invita membru
|
||||
organizations.invite-member.description: Invita un membru la organizatie
|
||||
organizations.invite-member.form.email.label: Email
|
||||
organizations.invite-member.form.email.placeholder: 'Exemplu: ada@papra.app'
|
||||
organizations.invite-member.form.email.required: Introduceti o adresa de email valida
|
||||
organizations.invite-member.form.role.label: Rol
|
||||
organizations.invite-member.form.submit: Invita membru
|
||||
organizations.invite-member.success.message: membru invitat
|
||||
organizations.invite-member.success.description: Adresa de email a fost invitata la organizatie.
|
||||
organizations.invite-member.error.message: Eroare la invitatia membrului
|
||||
|
||||
organizations.invitations.title: Invitatii
|
||||
organizations.invitations.description: Gestioneaza invitatii la organizatie
|
||||
organizations.invitations.list.cta: Invita membru
|
||||
organizations.invitations.list.empty.title: Niciun invitat
|
||||
organizations.invitations.list.empty.description: Nu ai fost invitat la nicio organizatie inca.
|
||||
organizations.invitations.status.pending: In asteptare
|
||||
organizations.invitations.status.accepted: Acceptat
|
||||
organizations.invitations.status.rejected: Refuzat
|
||||
organizations.invitations.status.expired: Expirat
|
||||
organizations.invitations.status.cancelled: Anulat
|
||||
organizations.invitations.resend: Retrimite invitatia
|
||||
organizations.invitations.cancel.title: Anuleaza invitatia
|
||||
organizations.invitations.cancel.description: Esti sigur ca vrei sa anulezi aceasta invitatie?
|
||||
organizations.invitations.cancel.confirm: Anuleaza invitatia
|
||||
organizations.invitations.cancel.cancel: Anuleaza
|
||||
organizations.invitations.resend.title: Retrimite invitatia
|
||||
organizations.invitations.resend.description: Esti sigur ca vrei sa retrimiteti aceasta invitatie? Acest lucru va trimite un nou email destinatarului.
|
||||
organizations.invitations.resend.confirm: Retrimite invitatia
|
||||
organizations.invitations.resend.cancel: Anuleaza
|
||||
|
||||
invitations.list.title: Invitatii
|
||||
invitations.list.description: Gestioneaza invitatii la organizatie
|
||||
invitations.list.empty.title: Niciun invitat
|
||||
invitations.list.empty.description: Nu ai fost invitat la nicio organizatie inca.
|
||||
invitations.list.headers.organization: Organizatie
|
||||
invitations.list.headers.status: Status
|
||||
invitations.list.headers.created: Creat la
|
||||
invitations.list.headers.actions: Actiuni
|
||||
invitations.list.actions.accept: Accepta
|
||||
invitations.list.actions.reject: Refuza
|
||||
invitations.list.actions.accept.success.message: Invitatie acceptata
|
||||
invitations.list.actions.accept.success.description: Invitatie a fost acceptata.
|
||||
invitations.list.actions.reject.success.message: Invitatie refuzata
|
||||
invitations.list.actions.reject.success.description: Invitatie a fost refuzata.
|
||||
|
||||
# Documents
|
||||
|
||||
documents.list.title: Documente
|
||||
documents.list.no-documents.title: Niciun document
|
||||
documents.list.no-documents.description: Nu exista documente in aceasta organizatie inca. Incepe prin a incarca cateva documente.
|
||||
documents.list.no-results: Niciun document gasit
|
||||
|
||||
documents.tabs.info: Info
|
||||
documents.tabs.content: Continut
|
||||
documents.tabs.activity: Activitate
|
||||
documents.deleted.message: Acest document a fost sters si va fi eliminat permanent in {{ days }} zile.
|
||||
documents.actions.download: Descarca
|
||||
documents.actions.open-in-new-tab: Deschide in fila noua
|
||||
documents.actions.restore: Restaureaza
|
||||
documents.actions.delete: Sterge
|
||||
documents.actions.edit: Editeaza
|
||||
documents.actions.cancel: Anuleaza
|
||||
documents.actions.save: Salveaza
|
||||
documents.actions.saving: Se salveaza...
|
||||
documents.content.alert: Continutul documentului este extras automat din document la incarcare. Este folosit doar pentru cautare si indexare.
|
||||
documents.info.id: ID
|
||||
documents.info.name: Nume
|
||||
documents.info.type: Tip
|
||||
documents.info.size: Dimensiune
|
||||
documents.info.created-at: Creat la
|
||||
documents.info.updated-at: Actualizat la
|
||||
documents.info.never: Niciodata
|
||||
|
||||
documents.rename.title: Redenumeste documentul
|
||||
documents.rename.form.name.label: Nume
|
||||
documents.rename.form.name.placeholder: 'Exemplu: Factura 2024'
|
||||
documents.rename.form.name.required: Va rugam sa introduceti un nume pentru document
|
||||
documents.rename.form.name.max-length: Numele trebuie sa aiba mai putin de 255 de caractere
|
||||
documents.rename.form.submit: Redenumeste documentul
|
||||
documents.rename.success: Document redenumit cu succes
|
||||
documents.rename.cancel: Anuleaza
|
||||
|
||||
import-documents.title.error: '{{ count }} documente au esuat'
|
||||
import-documents.title.success: '{{ count }} documente importate'
|
||||
import-documents.title.pending: '{{ count }} / {{ total }} documente importate'
|
||||
import-documents.title.none: Importa documente
|
||||
import-documents.no-import-in-progress: Niciun import de documente in curs
|
||||
|
||||
documents.deleted.title: Documente sterse
|
||||
documents.deleted.empty.title: Niciun document sters
|
||||
documents.deleted.empty.description: Nu aveti documente sterse. Documentele care sunt sterse vor fi mutate in cosul de gunoi pentru {{ days }} zile.
|
||||
documents.deleted.retention-notice: Toate documentele sterse sunt stocate in cosul de gunoi pentru {{ days }} zile. Dupa acest interval, documentele vor fi sterse permanent si nu le veti putea restaura.
|
||||
documents.deleted.deleted-at: Sterse la
|
||||
documents.deleted.restoring: Se restaureaza...
|
||||
documents.deleted.deleting: Se sterge...
|
||||
|
||||
documents.preview.unknown-file-type: Nicio previzualizare disponibila pentru acest tip de fisier
|
||||
documents.preview.binary-file: Acesta pare a fi un fisier binar si nu poate fi afisat ca text
|
||||
|
||||
trash.delete-all.button: Sterge tot
|
||||
trash.delete-all.confirm.title: Stergeti permanent toate documentele?
|
||||
trash.delete-all.confirm.description: Sunteti sigur ca doriti sa stergeti permanent toate documentele din cosul de gunoi? Aceasta actiune nu poate fi anulata.
|
||||
trash.delete-all.confirm.label: Sterge
|
||||
trash.delete-all.confirm.cancel: Anuleaza
|
||||
trash.delete.button: Sterge
|
||||
trash.delete.confirm.title: Stergeti permanent documentul?
|
||||
trash.delete.confirm.description: Sunteti sigur ca doriti sa stergeti permanent acest document din cosul de gunoi? Aceasta actiune nu poate fi anulata.
|
||||
trash.delete.confirm.label: Sterge
|
||||
trash.delete.confirm.cancel: Anuleaza
|
||||
trash.deleted.success.title: Document sters
|
||||
trash.deleted.success.description: Documentul a fost sters permanent.
|
||||
|
||||
activity.document.created: Documentul a fost creat
|
||||
activity.document.updated.single: Campul {{ field }} a fost actualizat
|
||||
activity.document.updated.multiple: Campurile {{ fields }} au fost actualizate
|
||||
activity.document.updated: Documentul a fost actualizat
|
||||
activity.document.deleted: Documentul a fost sters
|
||||
activity.document.restored: Documentul a fost restaurat
|
||||
activity.document.tagged: Eticheta {{ tag }} a fost adaugata
|
||||
activity.document.untagged: Eticheta {{ tag }} a fost eliminata
|
||||
|
||||
activity.document.user.name: de {{ name }}
|
||||
|
||||
activity.load-more: Incarca mai mult
|
||||
activity.no-more-activities: Nu mai sunt activitati pentru acest document
|
||||
|
||||
# Tags
|
||||
|
||||
tags.no-tags.title: Inca nu exista etichete
|
||||
tags.no-tags.description: Aceasta organizatie nu are inca etichete. Etichetele sunt folosite pentru a clasifica documentele. Puteti adauga etichete la documentele dvs. pentru a le gasi si organiza mai usor.
|
||||
tags.no-tags.create-tag: Creeaza eticheta
|
||||
|
||||
tags.title: Etichete documente
|
||||
tags.description: Etichetele sunt folosite pentru a clasifica documentele. Puteti adauga etichete la documentele dvs. pentru a le gasi si organiza mai usor.
|
||||
tags.create: Creeaza eticheta
|
||||
tags.update: Actualizeaza eticheta
|
||||
tags.delete: Sterge eticheta
|
||||
tags.delete.confirm.title: Sterge eticheta
|
||||
tags.delete.confirm.message: Esti sigur ca vrei sa stergi aceasta eticheta? Stergerea unei etichete o va elimina din toate documentele.
|
||||
tags.delete.confirm.confirm-button: Sterge
|
||||
tags.delete.confirm.cancel-button: Anuleaza
|
||||
tags.delete.success: Eticheta a fost stearsa cu succes
|
||||
tags.create.success: Eticheta "{{ name }}" a fost creata cu succes.
|
||||
tags.update.success: Eticheta "{{ name }}" a fost actualizata cu succes.
|
||||
tags.form.name.label: Nume
|
||||
tags.form.name.placeholder: Ex. Contracte
|
||||
tags.form.name.required: Va rugam sa introduceti un nume de eticheta
|
||||
tags.form.name.max-length: Numele etichetei trebuie sa aiba mai putin de 64 de caractere
|
||||
tags.form.color.label: Culoare
|
||||
tags.form.color.required: Va rugam sa introduceti o culoare
|
||||
tags.form.color.invalid: Culoarea hex este formatata gresit.
|
||||
tags.form.description.label: Descriere
|
||||
tags.form.description.optional: (optional)
|
||||
tags.form.description.placeholder: Ex. Toate contractele semnate de companie
|
||||
tags.form.description.max-length: Descrierea trebuie sa aiba mai putin de 256 de caractere
|
||||
tags.form.no-description: Nicio descriere
|
||||
tags.table.headers.tag: Eticheta
|
||||
tags.table.headers.description: Descriere
|
||||
tags.table.headers.documents: Documente
|
||||
tags.table.headers.created: Creat la
|
||||
tags.table.headers.actions: Actiuni
|
||||
|
||||
# Tagging rules
|
||||
|
||||
tagging-rules.field.name: nume document
|
||||
tagging-rules.field.content: continut document
|
||||
tagging-rules.operator.equals: este egal cu
|
||||
tagging-rules.operator.not-equals: nu este egal cu
|
||||
tagging-rules.operator.contains: contine
|
||||
tagging-rules.operator.not-contains: nu contine
|
||||
tagging-rules.operator.starts-with: incepe cu
|
||||
tagging-rules.operator.ends-with: se termina cu
|
||||
tagging-rules.list.title: Reguli de etichetare
|
||||
tagging-rules.list.description: Gestioneaza regulile de etichetare ale organizatiei tale, pentru a eticheta automat documentele pe baza conditiilor pe care le definesti.
|
||||
tagging-rules.list.demo-warning: 'Nota: Deoarece acesta este un mediu demonstrativ (fara server), regulile de etichetare nu vor fi aplicate documentelor nou adaugate.'
|
||||
tagging-rules.list.no-tagging-rules.title: Nicio regula de etichetare
|
||||
tagging-rules.list.no-tagging-rules.description: Creati o regula de etichetare pentru a eticheta automat documentele adaugate pe baza conditiilor pe care le definiti.
|
||||
tagging-rules.list.no-tagging-rules.create-tagging-rule: Creeaza regula de etichetare
|
||||
tagging-rules.list.card.no-conditions: Nicio conditie
|
||||
tagging-rules.list.card.one-condition: 1 conditie
|
||||
tagging-rules.list.card.conditions: '{{ count }} conditii'
|
||||
tagging-rules.list.card.delete: Sterge regula
|
||||
tagging-rules.list.card.edit: Editeaza regula
|
||||
tagging-rules.create.title: Creeaza regula de etichetare
|
||||
tagging-rules.create.success: Regula de etichetare a fost creata cu succes
|
||||
tagging-rules.create.error: Nu s-a putut crea regula de etichetare
|
||||
tagging-rules.create.submit: Creeaza regula
|
||||
tagging-rules.form.name.label: Nume
|
||||
tagging-rules.form.name.placeholder: 'Exemplu: Eticheteaza facturile'
|
||||
tagging-rules.form.name.min-length: Va rugam sa introduceti un nume pentru regula
|
||||
tagging-rules.form.name.max-length: Numele trebuie sa aiba mai putin de 64 de caractere
|
||||
tagging-rules.form.description.label: Descriere
|
||||
tagging-rules.form.description.placeholder: "Exemplu: Eticheteaza documentele cu 'factura' in nume"
|
||||
tagging-rules.form.description.max-length: Descrierea trebuie sa aiba mai putin de 256 de caractere
|
||||
tagging-rules.form.conditions.label: Conditii
|
||||
tagging-rules.form.conditions.description: Definiti conditiile care trebuie indeplinite pentru ca regula sa se aplice. Toate conditiile trebuie indeplinite pentru ca regula sa se aplice.
|
||||
tagging-rules.form.conditions.add-condition: Adauga conditie
|
||||
tagging-rules.form.conditions.no-conditions.title: Nicio conditie
|
||||
tagging-rules.form.conditions.no-conditions.description: Nu ati adaugat nicio conditie acestei reguli. Aceasta regula va aplica etichetele sale tuturor documentelor.
|
||||
tagging-rules.form.conditions.no-conditions.confirm: Aplica regula fara conditii
|
||||
tagging-rules.form.conditions.no-conditions.cancel: Anuleaza
|
||||
tagging-rules.form.conditions.value.placeholder: 'Exemplu: factura'
|
||||
tagging-rules.form.conditions.value.min-length: Va rugam sa introduceti o valoare pentru conditie
|
||||
tagging-rules.form.tags.label: Etichete
|
||||
tagging-rules.form.tags.description: Selecteaza etichetele de aplicat documentelor adaugate care corespund conditiilor
|
||||
tagging-rules.form.tags.min-length: Este necesara cel putin o eticheta de aplicat
|
||||
tagging-rules.form.tags.add-tag: Creeaza eticheta
|
||||
tagging-rules.form.submit: Creeaza regula
|
||||
tagging-rules.update.title: Actualizeaza regula de etichetare
|
||||
tagging-rules.update.error: Nu s-a putut actualiza regula de etichetare
|
||||
tagging-rules.update.submit: Actualizeaza regula
|
||||
tagging-rules.update.cancel: Anuleaza
|
||||
|
||||
# Intake emails
|
||||
|
||||
intake-emails.title: Email-uri de preluare
|
||||
intake-emails.description: Adresele de email de preluare sunt folosite pentru a introduce automat email-uri in Papra. Doar trimiteti email-uri catre adresa de email de preluare, iar atasamentele lor vor fi adaugate la documentele organizatiei dvs.
|
||||
intake-emails.disabled.title: Email-urile de preluare sunt dezactivate
|
||||
intake-emails.disabled.description: Email-urile de preluare sunt dezactivate pe aceasta instanta. Va rugam sa contactati administratorul pentru a le activa. Consultati {{ documentation }} pentru mai multe informatii.
|
||||
intake-emails.disabled.documentation: documentatie
|
||||
intake-emails.info: Doar email-urile de preluare activate de la origini permise vor fi procesate. Puteti activa sau dezactiva un email de preluare oricand.
|
||||
intake-emails.empty.title: Niciun email de preluare
|
||||
intake-emails.empty.description: Generati o adresa de preluare pentru a ingera cu usurinta atasamentele de email.
|
||||
intake-emails.empty.generate: Genereaza email de preluare
|
||||
intake-emails.count: '{{ count }} email{{ plural }} de preluare pentru aceasta organizatie'
|
||||
intake-emails.new: Email nou de preluare
|
||||
intake-emails.disabled-label: (Dezactivat)
|
||||
intake-emails.no-origins: Nicio origine de email permisa
|
||||
intake-emails.allowed-origins: Permis de la {{ count }} adrese{{ plural }}
|
||||
intake-emails.actions.enable: Activeaza
|
||||
intake-emails.actions.disable: Dezactiveaza
|
||||
intake-emails.actions.manage-origins: Gestioneaza adresele de origine
|
||||
intake-emails.actions.delete: Sterge
|
||||
intake-emails.delete.confirm.title: Sterge email-ul de preluare?
|
||||
intake-emails.delete.confirm.message: Esti sigur ca vrei sa stergi acest email de preluare? Aceasta actiune nu poate fi anulata.
|
||||
intake-emails.delete.confirm.confirm-button: Sterge email-ul de preluare
|
||||
intake-emails.delete.confirm.cancel-button: Anuleaza
|
||||
intake-emails.delete.success: Email de preluare sters
|
||||
intake-emails.create.success: Email de preluare creat
|
||||
intake-emails.update.success.enabled: Email de preluare activat
|
||||
intake-emails.update.success.disabled: Email de preluare dezactivat
|
||||
intake-emails.allowed-origins.title: Origini permise
|
||||
intake-emails.allowed-origins.description: Doar email-urile trimise la {{ email }} de la aceste origini vor fi procesate. Daca nu sunt specificate origini, toate email-urile vor fi ignorate.
|
||||
intake-emails.allowed-origins.add.label: Adauga adresa de email de origine permisa
|
||||
intake-emails.allowed-origins.add.placeholder: Ex. ada@papra.app
|
||||
intake-emails.allowed-origins.add.button: Adauga
|
||||
intake-emails.allowed-origins.add.error.exists: Acest email este deja in originile permise pentru acest email de preluare
|
||||
|
||||
# API keys
|
||||
|
||||
api-keys.permissions.documents.title: Documente
|
||||
api-keys.permissions.documents.documents:create: Creaza documente
|
||||
api-keys.permissions.documents.documents:read: Citeste documente
|
||||
api-keys.permissions.documents.documents:update: Actualizeaza documente
|
||||
api-keys.permissions.documents.documents:delete: Sterge documente
|
||||
api-keys.permissions.tags.title: Etichete
|
||||
api-keys.permissions.tags.tags:create: Creaza etichete
|
||||
api-keys.permissions.tags.tags:read: Citeste etichete
|
||||
api-keys.permissions.tags.tags:update: Actualizeaza etichete
|
||||
api-keys.permissions.tags.tags:delete: Sterge etichete
|
||||
api-keys.create.title: Creeaza cheie API
|
||||
api-keys.create.description: Creeaza o noua cheie API pentru a accesa API-ul Papra.
|
||||
api-keys.create.success: Cheia API a fost creata cu succes.
|
||||
api-keys.create.back: Inapoi la cheile API
|
||||
api-keys.create.form.name.label: Nume
|
||||
api-keys.create.form.name.placeholder: 'Exemplu: Cheia mea API'
|
||||
api-keys.create.form.name.required: Va rugam sa introduceti un nume pentru cheia API
|
||||
api-keys.create.form.permissions.label: Permisiuni
|
||||
api-keys.create.form.permissions.required: Va rugam sa selectati cel putin o permisiune
|
||||
api-keys.create.form.submit: Creeaza cheie API
|
||||
api-keys.create.created.title: Cheie API creata
|
||||
api-keys.create.created.description: Cheia API a fost creata cu succes. Salvati-o intr-o locatie sigura, deoarece nu va mai fi afisata.
|
||||
api-keys.list.title: Chei API
|
||||
api-keys.list.description: Gestioneaza-ti cheile API aici.
|
||||
api-keys.list.create: Creeaza cheie API
|
||||
api-keys.list.empty.title: Nicio cheie API
|
||||
api-keys.list.empty.description: Creeaza o cheie API pentru a accesa API-ul Papra.
|
||||
api-keys.list.card.last-used: Ultima utilizare
|
||||
api-keys.list.card.never: Niciodata
|
||||
api-keys.list.card.created: Creat la
|
||||
api-keys.delete.success: Cheia API a fost stearsa cu succes
|
||||
api-keys.delete.confirm.title: Sterge cheia API
|
||||
api-keys.delete.confirm.message: Esti sigur ca vrei sa stergi aceasta cheie API? Aceasta actiune nu poate fi anulata.
|
||||
api-keys.delete.confirm.confirm-button: Sterge
|
||||
api-keys.delete.confirm.cancel-button: Anuleaza
|
||||
|
||||
# Webhooks
|
||||
|
||||
webhooks.list.title: Webhook-uri
|
||||
webhooks.list.description: Gestioneaza webhook-urile organizatiei tale
|
||||
webhooks.list.empty.title: Niciun webhook
|
||||
webhooks.list.empty.description: Creeaza primul tau webhook pentru a incepe sa primesti evenimente
|
||||
webhooks.list.create: Creeaza webhook
|
||||
webhooks.list.card.last-triggered: Ultima declansare
|
||||
webhooks.list.card.never: Niciodata
|
||||
webhooks.list.card.created: Creat la
|
||||
webhooks.create.title: Creeaza webhook
|
||||
webhooks.create.description: Creeaza un nou webhook pentru a primi evenimente
|
||||
webhooks.create.success: Webhook creat cu succes
|
||||
webhooks.create.back: Inapoi
|
||||
webhooks.create.form.submit: Creeaza webhook
|
||||
webhooks.create.form.name.label: Nume webhook
|
||||
webhooks.create.form.name.placeholder: Introdu numele webhook-ului
|
||||
webhooks.create.form.name.required: Numele este obligatoriu
|
||||
webhooks.create.form.url.label: URL webhook
|
||||
webhooks.create.form.url.placeholder: Introdu URL-ul webhook-ului
|
||||
webhooks.create.form.url.required: URL-ul este obligatoriu
|
||||
webhooks.create.form.url.invalid: URL-ul este invalid
|
||||
webhooks.create.form.secret.label: Secret
|
||||
webhooks.create.form.secret.placeholder: Introdu secretul webhook-ului
|
||||
webhooks.create.form.events.label: Evenimente
|
||||
webhooks.create.form.events.required: Este necesar cel putin un eveniment
|
||||
webhooks.update.title: Editeaza webhook
|
||||
webhooks.update.description: Actualizeaza detaliile webhook-ului tau
|
||||
webhooks.update.success: Webhook actualizat cu succes
|
||||
webhooks.update.submit: Actualizeaza webhook
|
||||
webhooks.update.cancel: Anuleaza
|
||||
webhooks.update.form.secret.placeholder: Introdu un nou secret
|
||||
webhooks.update.form.secret.placeholder-redacted: '[Secret redactat]'
|
||||
webhooks.update.form.rotate-secret.button: Roteste secretul
|
||||
webhooks.delete.success: Webhook sters cu succes
|
||||
webhooks.delete.confirm.title: Sterge webhook
|
||||
webhooks.delete.confirm.message: Esti sigur ca vrei sa stergi acest webhook?
|
||||
webhooks.delete.confirm.confirm-button: Sterge
|
||||
webhooks.delete.confirm.cancel-button: Anuleaza
|
||||
|
||||
webhooks.events.documents.document:created.description: Document creat
|
||||
webhooks.events.documents.document:deleted.description: Document sters
|
||||
|
||||
# Navigation
|
||||
|
||||
layout.menu.home: Acasa
|
||||
layout.menu.documents: Documente
|
||||
layout.menu.tags: Etichete
|
||||
layout.menu.tagging-rules: Reguli de etichetare
|
||||
layout.menu.deleted-documents: Documente sterse
|
||||
layout.menu.organization-settings: Setari organizatie
|
||||
layout.menu.api-keys: Chei API
|
||||
layout.menu.settings: Setari
|
||||
layout.menu.account: Cont
|
||||
layout.menu.general-settings: Setari generale
|
||||
layout.menu.intake-emails: Email-uri de preluare
|
||||
layout.menu.webhooks: Webhook-uri
|
||||
layout.menu.members: Membri
|
||||
layout.menu.invitations: Invitatii
|
||||
|
||||
layout.theme.light: Mod luminos
|
||||
layout.theme.dark: Mod intunecat
|
||||
layout.theme.system: Mod sistem
|
||||
|
||||
layout.search.placeholder: Cauta...
|
||||
layout.menu.import-document: Importa un document
|
||||
|
||||
user-menu.account-settings: Setari cont
|
||||
user-menu.api-keys: Chei API
|
||||
user-menu.invitations: Invitatii
|
||||
user-menu.language: Limba
|
||||
user-menu.logout: Deconectare
|
||||
|
||||
# Command palette
|
||||
|
||||
command-palette.search.placeholder: Cauta comenzi sau documente
|
||||
command-palette.no-results: Niciun rezultat gasit
|
||||
command-palette.sections.documents: Documente
|
||||
command-palette.sections.theme: Tema
|
||||
|
||||
# API errors
|
||||
|
||||
api-errors.document.already_exists: Documentul exista deja
|
||||
api-errors.document.file_too_big: Fisierul documentului este prea mare
|
||||
api-errors.intake_email.limit_reached: Numarul maxim de email-uri de preluare pentru aceasta organizatie a fost atins. Va rugam sa va imbunatatiti planul pentru a crea mai multe email-uri de preluare.
|
||||
api-errors.user.max_organization_count_reached: Ai atins numarul maxim de organizatii pe care le poti crea, daca ai nevoie sa creezi mai multe, te rugam sa contactezi suportul.
|
||||
api-errors.default: A aparut o eroare la procesarea cererii tale.
|
||||
api-errors.organization.invitation_already_exists: O invitatie pentru acest email exista deja in aceasta organizatie.
|
||||
api-errors.user.already_in_organization: Acest utilizator este deja in aceasta organizatie.
|
||||
api-errors.user.organization_invitation_limit_reached: Numarul maxim de invitatii a fost atins pentru astazi. Va rugam sa incercati din nou maine.
|
||||
api-errors.demo.not_available: Aceasta functie nu este disponibila in demo
|
||||
api-errors.tags.already_exists: O eticheta cu acest nume exista deja pentru aceasta organizatie
|
||||
|
||||
# Not found
|
||||
|
||||
not-found.title: 404 - Nu a fost gasit
|
||||
not-found.description: Ne pare rau, pagina pe care o cautati nu pare sa existe. Va rugam sa verificati URL-ul si sa incercati din nou.
|
||||
not-found.back-to-home: Inapoi la pagina principala
|
||||
|
||||
# Demo
|
||||
|
||||
demo.popup.description: Acesta este un mediu demonstrativ, toate datele sunt salvate in stocarea locala a browserului dumneavoastra.
|
||||
demo.popup.discord: Alaturati-va {{ discordLink }} pentru a obtine suport, a propune functionalitati sau doar pentru a discuta.
|
||||
demo.popup.discord-link-label: server Discord
|
||||
demo.popup.reset: Reseteaza datele demo
|
||||
demo.popup.hide: Ascunde
|
||||
|
||||
# Color picker
|
||||
|
||||
color-picker.hue: Nuanta
|
||||
color-picker.saturation: Saturatie
|
||||
color-picker.lightness: Luminozitate
|
||||
color-picker.select-color: Selecteaza culoarea
|
||||
color-picker.select-a-color: Selecteaza o culoare
|
||||
@@ -0,0 +1,17 @@
|
||||
import type { Component } from 'solid-js';
|
||||
import { useI18n } from '@/modules/i18n/i18n.provider';
|
||||
|
||||
export const NoAuthProviderWarning: Component = () => {
|
||||
const { t } = useI18n();
|
||||
|
||||
return (
|
||||
<div class="flex items-center justify-center h-full p-6 sm:pb-32">
|
||||
<div class="max-w-sm w-full">
|
||||
<h1 class="text-lg font-bold">{t('auth.no-auth-provider.title')}</h1>
|
||||
<p class="text-muted-foreground mt-1 mb-4">
|
||||
{t('auth.no-auth-provider.description')}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
@@ -14,6 +14,7 @@ import { AuthLayout } from '../../ui/layouts/auth-layout.component';
|
||||
import { getEnabledSsoProviderConfigs, isEmailVerificationRequiredError } from '../auth.models';
|
||||
import { authWithProvider, signIn } from '../auth.services';
|
||||
import { AuthLegalLinks } from '../components/legal-links.component';
|
||||
import { NoAuthProviderWarning } from '../components/no-auth-provider';
|
||||
import { SsoProviderButton } from '../components/sso-provider-button.component';
|
||||
|
||||
export const EmailLoginForm: Component = () => {
|
||||
@@ -105,7 +106,7 @@ export const LoginPage: Component = () => {
|
||||
const { config } = useConfig();
|
||||
const { t } = useI18n();
|
||||
|
||||
const [getShowEmailLogin, setShowEmailLogin] = createSignal(false);
|
||||
const [getShowEmailLoginForm, setShowEmailLoginForm] = createSignal(false);
|
||||
|
||||
const loginWithProvider = async (provider: SsoProviderConfig) => {
|
||||
await authWithProvider({ provider, config });
|
||||
@@ -113,6 +114,10 @@ export const LoginPage: Component = () => {
|
||||
|
||||
const getHasSsoProviders = () => getEnabledSsoProviderConfigs({ config }).length > 0;
|
||||
|
||||
if (!config.auth.providers.email.isEnabled && !getHasSsoProviders()) {
|
||||
return <AuthLayout><NoAuthProviderWarning /></AuthLayout>;
|
||||
}
|
||||
|
||||
return (
|
||||
<AuthLayout>
|
||||
<div class="flex items-center justify-center h-full p-6 sm:pb-32">
|
||||
@@ -120,17 +125,22 @@ export const LoginPage: Component = () => {
|
||||
<h1 class="text-xl font-bold">{t('auth.login.title')}</h1>
|
||||
<p class="text-muted-foreground mt-1 mb-4">{t('auth.login.description')}</p>
|
||||
|
||||
{getShowEmailLogin() || !getHasSsoProviders()
|
||||
? <EmailLoginForm />
|
||||
: (
|
||||
<Button onClick={() => setShowEmailLogin(true)} class="w-full">
|
||||
<div class="i-tabler-mail mr-2 size-4.5" />
|
||||
{t('auth.login.login-with-provider', { provider: 'Email' })}
|
||||
</Button>
|
||||
)}
|
||||
<Show when={config.auth.providers.email.isEnabled}>
|
||||
{getShowEmailLoginForm() || !getHasSsoProviders()
|
||||
? <EmailLoginForm />
|
||||
: (
|
||||
<Button onClick={() => setShowEmailLoginForm(true)} class="w-full">
|
||||
<div class="i-tabler-mail mr-2 size-4.5" />
|
||||
{t('auth.login.login-with-provider', { provider: 'Email' })}
|
||||
</Button>
|
||||
)}
|
||||
</Show>
|
||||
|
||||
<Show when={config.auth.providers.email.isEnabled && getHasSsoProviders()}>
|
||||
<Separator class="my-4" />
|
||||
</Show>
|
||||
|
||||
<Show when={getHasSsoProviders()}>
|
||||
<Separator class="my-4" />
|
||||
|
||||
<div class="flex flex-col gap-2">
|
||||
<For each={getEnabledSsoProviderConfigs({ config })}>
|
||||
|
||||
@@ -13,6 +13,7 @@ import { AuthLayout } from '../../ui/layouts/auth-layout.component';
|
||||
import { getEnabledSsoProviderConfigs } from '../auth.models';
|
||||
import { authWithProvider, signUp } from '../auth.services';
|
||||
import { AuthLegalLinks } from '../components/legal-links.component';
|
||||
import { NoAuthProviderWarning } from '../components/no-auth-provider';
|
||||
import { SsoProviderButton } from '../components/sso-provider-button.component';
|
||||
|
||||
export const EmailRegisterForm: Component = () => {
|
||||
@@ -139,6 +140,10 @@ export const RegisterPage: Component = () => {
|
||||
|
||||
const getHasSsoProviders = () => getEnabledSsoProviderConfigs({ config }).length > 0;
|
||||
|
||||
if (!config.auth.providers.email.isEnabled && !getHasSsoProviders()) {
|
||||
return <AuthLayout><NoAuthProviderWarning /></AuthLayout>;
|
||||
}
|
||||
|
||||
return (
|
||||
<AuthLayout>
|
||||
<div class="flex items-center justify-center h-full p-6 sm:pb-32">
|
||||
@@ -150,17 +155,22 @@ export const RegisterPage: Component = () => {
|
||||
{t('auth.register.description')}
|
||||
</p>
|
||||
|
||||
{getShowEmailRegister() || !getHasSsoProviders()
|
||||
? <EmailRegisterForm />
|
||||
: (
|
||||
<Button onClick={() => setShowEmailRegister(true)} class="w-full">
|
||||
<div class="i-tabler-mail mr-2 size-4.5" />
|
||||
{t('auth.register.register-with-email')}
|
||||
</Button>
|
||||
)}
|
||||
<Show when={config.auth.providers.email.isEnabled}>
|
||||
{getShowEmailRegister() || !getHasSsoProviders()
|
||||
? <EmailRegisterForm />
|
||||
: (
|
||||
<Button onClick={() => setShowEmailRegister(true)} class="w-full">
|
||||
<div class="i-tabler-mail mr-2 size-4.5" />
|
||||
{t('auth.register.register-with-email')}
|
||||
</Button>
|
||||
)}
|
||||
</Show>
|
||||
|
||||
<Show when={config.auth.providers.email.isEnabled && getHasSsoProviders()}>
|
||||
<Separator class="my-4" />
|
||||
</Show>
|
||||
|
||||
<Show when={getHasSsoProviders()}>
|
||||
<Separator class="my-4" />
|
||||
|
||||
<div class="flex flex-col gap-2">
|
||||
<For each={getEnabledSsoProviderConfigs({ config })}>
|
||||
|
||||
@@ -58,7 +58,7 @@ export const RequestPasswordResetPage: Component = () => {
|
||||
const navigate = useNavigate();
|
||||
|
||||
onMount(() => {
|
||||
if (!config.auth.isPasswordResetEnabled) {
|
||||
if (!config.auth.isPasswordResetEnabled || !config.auth.providers.email.isEnabled) {
|
||||
navigate('/login');
|
||||
}
|
||||
});
|
||||
|
||||
@@ -62,7 +62,7 @@ export const ResetPasswordPage: Component = () => {
|
||||
const navigate = useNavigate();
|
||||
|
||||
onMount(() => {
|
||||
if (!config.auth.isPasswordResetEnabled) {
|
||||
if (!config.auth.isPasswordResetEnabled || !config.auth.providers.email.isEnabled) {
|
||||
navigate('/login');
|
||||
}
|
||||
});
|
||||
|
||||
@@ -5,7 +5,7 @@ const asString = <T extends string | undefined>(value: string | undefined, defau
|
||||
const asNumber = <T extends number | undefined>(value: string | undefined, defaultValue?: T): T extends undefined ? number | undefined : number => (value === undefined ? defaultValue : Number(value)) as T extends undefined ? number | undefined : number;
|
||||
|
||||
export const buildTimeConfig = {
|
||||
papraVersion: asString(import.meta.env.VITE_PAPRA_VERSION),
|
||||
papraVersion: asString(import.meta.env.VITE_PAPRA_VERSION, '0.0.0'),
|
||||
baseUrl: asString(import.meta.env.VITE_BASE_URL, window.location.origin),
|
||||
baseApiUrl: asString(import.meta.env.VITE_BASE_API_URL, window.location.origin),
|
||||
vitrineBaseUrl: asString(import.meta.env.VITE_VITRINE_BASE_URL, 'http://localhost:3000/'),
|
||||
@@ -16,6 +16,7 @@ export const buildTimeConfig = {
|
||||
isEmailVerificationRequired: asBoolean(import.meta.env.VITE_AUTH_IS_EMAIL_VERIFICATION_REQUIRED, true),
|
||||
showLegalLinksOnAuthPage: asBoolean(import.meta.env.VITE_AUTH_SHOW_LEGAL_LINKS_ON_AUTH_PAGE, false),
|
||||
providers: {
|
||||
email: { isEnabled: asBoolean(import.meta.env.VITE_AUTH_PROVIDERS_EMAIL_IS_ENABLED, true) },
|
||||
github: { isEnabled: asBoolean(import.meta.env.VITE_AUTH_PROVIDERS_GITHUB_IS_ENABLED, false) },
|
||||
google: { isEnabled: asBoolean(import.meta.env.VITE_AUTH_PROVIDERS_GOOGLE_IS_ENABLED, false) },
|
||||
customs: [] as {
|
||||
@@ -35,7 +36,6 @@ export const buildTimeConfig = {
|
||||
},
|
||||
intakeEmails: {
|
||||
isEnabled: asBoolean(import.meta.env.VITE_INTAKE_EMAILS_IS_ENABLED, false),
|
||||
emailGenerationDomain: asString(import.meta.env.VITE_INTAKE_EMAILS_EMAIL_GENERATION_DOMAIN),
|
||||
},
|
||||
isSubscriptionsEnabled: asBoolean(import.meta.env.VITE_IS_SUBSCRIPTIONS_ENABLED, false),
|
||||
} as const;
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
import type { HttpClientOptions, ResponseType } from '../shared/http/http-client';
|
||||
import { joinUrlPaths } from '@corentinth/chisels';
|
||||
|
||||
type ExtractRouteParams<Path extends string> =
|
||||
Path extends `${infer _Start}:${infer Param}/${infer Rest}`
|
||||
type ExtractRouteParams<Path extends string>
|
||||
= Path extends `${infer _Start}:${infer Param}/${infer Rest}`
|
||||
? { [k in Param | keyof ExtractRouteParams<`/${Rest}`>]: string }
|
||||
: Path extends `${infer _Start}:${infer Param}`
|
||||
? { [k in Param]: string }
|
||||
|
||||
@@ -193,7 +193,7 @@ const inMemoryApiMock: Record<string, { handler: any }> = {
|
||||
const {
|
||||
pageIndex = 0,
|
||||
pageSize = 5,
|
||||
searchQuery = '',
|
||||
searchQuery: rawSearchQuery = '',
|
||||
} = query ?? {};
|
||||
|
||||
const organization = organizationStorage.getItem(organizationId);
|
||||
@@ -201,7 +201,9 @@ const inMemoryApiMock: Record<string, { handler: any }> = {
|
||||
|
||||
const documents = await findMany(documentStorage, document => document?.organizationId === organizationId);
|
||||
|
||||
const filteredDocuments = documents.filter(document => document?.name.includes(searchQuery) && !document?.deletedAt);
|
||||
const searchQuery = rawSearchQuery.trim().toLowerCase();
|
||||
|
||||
const filteredDocuments = documents.filter(document => document?.name.toLowerCase().includes(searchQuery) && !document?.deletedAt);
|
||||
|
||||
return {
|
||||
documents: filteredDocuments.slice(pageIndex * pageSize, (pageIndex + 1) * pageSize),
|
||||
|
||||
@@ -2,13 +2,14 @@ import type { Component } from 'solid-js';
|
||||
import type { Document } from '../documents.types';
|
||||
import { useQuery } from '@tanstack/solid-query';
|
||||
import { createResource, Match, Suspense, Switch } from 'solid-js';
|
||||
import { useI18n } from '@/modules/i18n/i18n.provider';
|
||||
import { Card } from '@/modules/ui/components/card';
|
||||
import { fetchDocumentFile } from '../documents.services';
|
||||
import { PdfViewer } from './pdf-viewer.component';
|
||||
|
||||
const imageMimeType = ['image/jpeg', 'image/png', 'image/gif', 'image/webp'];
|
||||
const pdfMimeType = ['application/pdf'];
|
||||
const txtLikeMimeType = ['text/plain', 'text/markdown', 'text/csv', 'text/html'];
|
||||
const txtLikeMimeType = ['application/x-yaml', 'application/json', 'application/xml'];
|
||||
|
||||
function blobToString(blob: Blob): Promise<string> {
|
||||
return new Promise((resolve, reject) => {
|
||||
@@ -19,6 +20,83 @@ function blobToString(blob: Blob): Promise<string> {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO: IA generated code, add some tests
|
||||
* Detects if a blob can be safely displayed as text by checking for valid UTF-8 encoding
|
||||
* and common text patterns (low ratio of control characters, presence of readable text)
|
||||
*/
|
||||
async function isBlobTextSafe(blob: Blob): Promise<boolean> {
|
||||
try {
|
||||
const text = await blobToString(blob);
|
||||
|
||||
// Check if the text contains mostly printable characters
|
||||
const totalChars = text.length;
|
||||
if (totalChars === 0) {
|
||||
return true;
|
||||
} // Empty files are considered text-safe
|
||||
|
||||
// Count control characters (excluding common whitespace and newlines)
|
||||
// Use a simpler approach to avoid linter issues with Unicode escapes
|
||||
let controlCharCount = 0;
|
||||
for (let i = 0; i < text.length; i++) {
|
||||
const charCode = text.charCodeAt(i);
|
||||
// Check for control characters (0-31, 127-159) excluding common whitespace
|
||||
if ((charCode >= 0 && charCode <= 31 && ![9, 10, 13, 12, 11].includes(charCode))
|
||||
|| (charCode >= 127 && charCode <= 159)) {
|
||||
controlCharCount++;
|
||||
}
|
||||
}
|
||||
|
||||
// If more than 10% of characters are control characters, it's likely binary
|
||||
const controlCharRatio = controlCharCount / totalChars;
|
||||
if (controlCharRatio > 0.1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check for common binary file signatures in the first few bytes
|
||||
const arrayBuffer = await blob.arrayBuffer();
|
||||
const uint8Array = new Uint8Array(arrayBuffer);
|
||||
|
||||
// Common binary file signatures to check
|
||||
const binarySignatures = [
|
||||
[0xFF, 0xD8, 0xFF], // JPEG
|
||||
[0x89, 0x50, 0x4E, 0x47], // PNG
|
||||
[0x47, 0x49, 0x46], // GIF
|
||||
[0x25, 0x50, 0x44, 0x46], // PDF
|
||||
[0x50, 0x4B, 0x03, 0x04], // ZIP/DOCX/XLSX
|
||||
[0x7F, 0x45, 0x4C, 0x46], // ELF executable
|
||||
[0x4D, 0x5A], // Windows executable
|
||||
];
|
||||
|
||||
for (const signature of binarySignatures) {
|
||||
if (uint8Array.length >= signature.length) {
|
||||
const matches = signature.every((byte, index) => uint8Array[index] === byte);
|
||||
if (matches) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Check if the text contains mostly ASCII printable characters
|
||||
let asciiPrintableCount = 0;
|
||||
for (let i = 0; i < text.length; i++) {
|
||||
const charCode = text.charCodeAt(i);
|
||||
// ASCII printable characters (32-126) excluding common whitespace
|
||||
if (charCode >= 32 && charCode <= 126 && ![9, 10, 13, 12, 11].includes(charCode)) {
|
||||
asciiPrintableCount++;
|
||||
}
|
||||
}
|
||||
|
||||
const asciiRatio = asciiPrintableCount / totalChars;
|
||||
|
||||
// If less than 70% are ASCII printable, it's likely binary
|
||||
return asciiRatio > 0.7;
|
||||
} catch {
|
||||
// If we can't read as text, it's definitely not text-safe
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
const TextFromBlob: Component<{ blob: Blob }> = (props) => {
|
||||
const [txt] = createResource(() => blobToString(props.blob));
|
||||
|
||||
@@ -34,12 +112,25 @@ const TextFromBlob: Component<{ blob: Blob }> = (props) => {
|
||||
export const DocumentPreview: Component<{ document: Document }> = (props) => {
|
||||
const getIsImage = () => imageMimeType.includes(props.document.mimeType);
|
||||
const getIsPdf = () => pdfMimeType.includes(props.document.mimeType);
|
||||
const getIsTxtLike = () => txtLikeMimeType.includes(props.document.mimeType) || props.document.mimeType.startsWith('text/');
|
||||
const { t } = useI18n();
|
||||
|
||||
const query = useQuery(() => ({
|
||||
queryKey: ['organizations', props.document.organizationId, 'documents', props.document.id, 'file'],
|
||||
queryFn: () => fetchDocumentFile({ documentId: props.document.id, organizationId: props.document.organizationId }),
|
||||
}));
|
||||
|
||||
// Create a resource to check if octet-stream blob is text-safe
|
||||
const [isOctetStreamTextSafe] = createResource(
|
||||
() => query.data && props.document.mimeType === 'application/octet-stream' ? query.data : null,
|
||||
async (blob) => {
|
||||
if (!blob) {
|
||||
return false;
|
||||
}
|
||||
return await isBlobTextSafe(blob);
|
||||
},
|
||||
);
|
||||
|
||||
return (
|
||||
<Suspense>
|
||||
<Switch>
|
||||
@@ -48,12 +139,30 @@ export const DocumentPreview: Component<{ document: Document }> = (props) => {
|
||||
<img src={URL.createObjectURL(query.data!)} class="w-full h-full object-contain" />
|
||||
</div>
|
||||
</Match>
|
||||
|
||||
<Match when={getIsPdf() && query.data}>
|
||||
<PdfViewer url={URL.createObjectURL(query.data!)} />
|
||||
</Match>
|
||||
<Match when={txtLikeMimeType.includes(props.document.mimeType) && query.data}>
|
||||
|
||||
<Match when={getIsTxtLike() && query.data}>
|
||||
<TextFromBlob blob={query.data!} />
|
||||
</Match>
|
||||
|
||||
<Match when={props.document.mimeType === 'application/octet-stream' && query.data && isOctetStreamTextSafe()}>
|
||||
<TextFromBlob blob={query.data!} />
|
||||
</Match>
|
||||
|
||||
<Match when={props.document.mimeType === 'application/octet-stream' && query.data && !isOctetStreamTextSafe()}>
|
||||
<Card class="px-6 py-12 text-center text-sm text-muted-foreground">
|
||||
<p>{t('documents.preview.binary-file')}</p>
|
||||
</Card>
|
||||
</Match>
|
||||
|
||||
<Match when={query.data}>
|
||||
<Card class="px-6 py-12 text-center text-sm text-muted-foreground">
|
||||
<p>{t('documents.preview.unknown-file-type')}</p>
|
||||
</Card>
|
||||
</Match>
|
||||
</Switch>
|
||||
</Suspense>
|
||||
);
|
||||
|
||||
@@ -41,7 +41,7 @@ const KeyValues: Component<{ data?: KeyValueItem[] }> = (props) => {
|
||||
<For each={props.data}>
|
||||
{item => (
|
||||
<tr>
|
||||
<td class="py-1 pr-2 text-sm text-muted-foreground flex items-center gap-2">
|
||||
<td class="py-1 pr-2 text-sm text-muted-foreground flex items-center gap-2 whitespace-nowrap">
|
||||
{item.icon && <div class={item.icon}></div>}
|
||||
{item.label}
|
||||
</td>
|
||||
@@ -232,18 +232,18 @@ export const DocumentPage: Component = () => {
|
||||
<div class="flex-1">
|
||||
<Button
|
||||
variant="ghost"
|
||||
class="flex items-center gap-2 group bg-transparent! px-0"
|
||||
class="flex items-center gap-2 group bg-transparent! px-0 text-left h-auto"
|
||||
onClick={() => openRenameDialog({
|
||||
documentId: getDocument().id,
|
||||
organizationId: params.organizationId,
|
||||
documentName: getDocument().name,
|
||||
})}
|
||||
>
|
||||
<h1 class="text-xl font-semibold">
|
||||
<h1 class="text-xl font-semibold lh-tight" title={getDocument().name}>
|
||||
{getDocument().name}
|
||||
</h1>
|
||||
|
||||
<div class="i-tabler-pencil size-4 text-muted-foreground group-hover:text-foreground transition-colors"></div>
|
||||
<div class="i-tabler-pencil size-4 text-muted-foreground group-hover:text-foreground transition-colors flex-shrink-0"></div>
|
||||
</Button>
|
||||
<p class="text-sm text-muted-foreground mb-6">{getDocument().id}</p>
|
||||
|
||||
@@ -354,7 +354,7 @@ export const DocumentPage: Component = () => {
|
||||
value: (
|
||||
<Button
|
||||
variant="ghost"
|
||||
class="flex items-center gap-2 group bg-transparent! p-0 h-auto"
|
||||
class="flex items-center gap-2 group bg-transparent! p-0 h-auto text-left"
|
||||
onClick={() => openRenameDialog({
|
||||
documentId: getDocument().id,
|
||||
organizationId: params.organizationId,
|
||||
@@ -363,7 +363,7 @@ export const DocumentPage: Component = () => {
|
||||
>
|
||||
{getDocument().name}
|
||||
|
||||
<div class="i-tabler-pencil size-4 text-muted-foreground group-hover:text-foreground transition-colors"></div>
|
||||
<div class="i-tabler-pencil size-4 text-muted-foreground group-hover:text-foreground transition-colors flex-shrink-0"></div>
|
||||
</Button>
|
||||
),
|
||||
icon: 'i-tabler-file-text',
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
export const locales = [
|
||||
{ key: 'en', name: 'English' },
|
||||
{ key: 'fr', name: 'Français' },
|
||||
{ key: 'de', name: 'Deutsch' },
|
||||
{ key: 'pt-BR', name: 'Português Brasileiro' },
|
||||
{ key: 'pt', name: 'Português Europeu' },
|
||||
{ key: 'pl', name: 'Polski' },
|
||||
{ key: 'ro', name: 'Română' },
|
||||
{ key: 'es', name: 'Español' },
|
||||
] as const;
|
||||
|
||||
@@ -68,6 +68,8 @@ export type LocaleKeys =
|
||||
| 'auth.legal-links.description'
|
||||
| 'auth.legal-links.terms'
|
||||
| 'auth.legal-links.privacy'
|
||||
| 'auth.no-auth-provider.title'
|
||||
| 'auth.no-auth-provider.description'
|
||||
| 'user.settings.title'
|
||||
| 'user.settings.description'
|
||||
| 'user.settings.email.title'
|
||||
@@ -229,6 +231,8 @@ export type LocaleKeys =
|
||||
| 'documents.deleted.deleted-at'
|
||||
| 'documents.deleted.restoring'
|
||||
| 'documents.deleted.deleting'
|
||||
| 'documents.preview.unknown-file-type'
|
||||
| 'documents.preview.binary-file'
|
||||
| 'trash.delete-all.button'
|
||||
| 'trash.delete-all.confirm.title'
|
||||
| 'trash.delete-all.confirm.description'
|
||||
@@ -272,7 +276,6 @@ export type LocaleKeys =
|
||||
| 'tags.form.name.required'
|
||||
| 'tags.form.name.max-length'
|
||||
| 'tags.form.color.label'
|
||||
| 'tags.form.color.placeholder'
|
||||
| 'tags.form.color.required'
|
||||
| 'tags.form.color.invalid'
|
||||
| 'tags.form.description.label'
|
||||
@@ -484,4 +487,9 @@ export type LocaleKeys =
|
||||
| 'demo.popup.discord'
|
||||
| 'demo.popup.discord-link-label'
|
||||
| 'demo.popup.reset'
|
||||
| 'demo.popup.hide';
|
||||
| 'demo.popup.hide'
|
||||
| 'color-picker.hue'
|
||||
| 'color-picker.saturation'
|
||||
| 'color-picker.lightness'
|
||||
| 'color-picker.select-color'
|
||||
| 'color-picker.select-a-color';
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
import { describe, expect, test } from 'vitest';
|
||||
import { getRgbChannelsFromHex } from './color-formats';
|
||||
|
||||
describe('color-formats', () => {
|
||||
describe('getRgbChannelsFromHex', () => {
|
||||
test('extracts the rgb channels values from a hex color', () => {
|
||||
expect(getRgbChannelsFromHex('#000000')).toEqual({ r: 0, g: 0, b: 0 });
|
||||
expect(getRgbChannelsFromHex('#FFFFFF')).toEqual({ r: 255, g: 255, b: 255 });
|
||||
expect(getRgbChannelsFromHex('#FF0000')).toEqual({ r: 255, g: 0, b: 0 });
|
||||
expect(getRgbChannelsFromHex('#00FF00')).toEqual({ r: 0, g: 255, b: 0 });
|
||||
expect(getRgbChannelsFromHex('#0000FF')).toEqual({ r: 0, g: 0, b: 255 });
|
||||
expect(getRgbChannelsFromHex('#0000FF')).toEqual({ r: 0, g: 0, b: 255 });
|
||||
});
|
||||
|
||||
test('is case insensitive', () => {
|
||||
expect(getRgbChannelsFromHex('#ff0000')).toEqual({ r: 255, g: 0, b: 0 });
|
||||
expect(getRgbChannelsFromHex('#00ff00')).toEqual({ r: 0, g: 255, b: 0 });
|
||||
expect(getRgbChannelsFromHex('#0000ff')).toEqual({ r: 0, g: 0, b: 255 });
|
||||
});
|
||||
|
||||
test('returns 0, 0, 0 for invalid colors', () => {
|
||||
expect(getRgbChannelsFromHex('lorem')).toEqual({ r: 0, g: 0, b: 0 });
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,5 @@
|
||||
export function getRgbChannelsFromHex(color: string) {
|
||||
const [r, g, b] = color.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i)?.slice(1).map(c => Number.parseInt(c, 16)) ?? [0, 0, 0];
|
||||
|
||||
return { r, g, b };
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
import { describe, expect, test } from 'vitest';
|
||||
import { getLuminance } from './luminance';
|
||||
|
||||
describe('luminance', () => {
|
||||
describe('getLuminance', () => {
|
||||
test(`the relative luminance of a color is the relative brightness of any point in a color space, normalized to 0 for darkest black and 1 for lightest white
|
||||
the formula is: 0.2126 * R + 0.7152 * G + 0.0722 * B
|
||||
where R, G, B are the red, green, and blue channels of the color, normalized to 0-1 and gamma corrected (sRGB):
|
||||
if the channel value is less than 0.03928, it is divided by 12.92, otherwise it is raised to the power of 2.4
|
||||
|
||||
Source: https://www.w3.org/TR/WCAG20/#relativeluminancedef
|
||||
`, () => {
|
||||
expect(getLuminance('#000000')).toBe(0);
|
||||
expect(getLuminance('#FFFFFF')).toBe(1);
|
||||
expect(getLuminance('#FF0000')).toBeCloseTo(0.2126, 4);
|
||||
expect(getLuminance('#00FF00')).toBeCloseTo(0.7152, 4);
|
||||
expect(getLuminance('#0000FF')).toBeCloseTo(0.0722, 4);
|
||||
});
|
||||
});
|
||||
});
|
||||
17
apps/papra-client/src/modules/shared/colors/luminance.ts
Normal file
17
apps/papra-client/src/modules/shared/colors/luminance.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { getRgbChannelsFromHex } from './color-formats';
|
||||
|
||||
// https://www.w3.org/TR/WCAG20/#relativeluminancedef
|
||||
export function getLuminance(color: string) {
|
||||
const { r, g, b } = getRgbChannelsFromHex(color);
|
||||
|
||||
const toLinear = (channelValue: number) => {
|
||||
const normalized = channelValue / 255;
|
||||
return normalized <= 0.03928 ? normalized / 12.92 : ((normalized + 0.055) / 1.055) ** 2.4;
|
||||
};
|
||||
|
||||
const R = toLinear(r);
|
||||
const G = toLinear(g);
|
||||
const B = toLinear(b);
|
||||
|
||||
return 0.2126 * R + 0.7152 * G + 0.0722 * B;
|
||||
}
|
||||
@@ -2,7 +2,7 @@ import type { DialogTriggerProps } from '@kobalte/core/dialog';
|
||||
import type { Component, JSX } from 'solid-js';
|
||||
import type { Tag as TagType } from '../tags.types';
|
||||
import { safely } from '@corentinth/chisels';
|
||||
import { getValues } from '@modular-forms/solid';
|
||||
import { getValues, setValue } from '@modular-forms/solid';
|
||||
import { A, useParams } from '@solidjs/router';
|
||||
import { useQuery } from '@tanstack/solid-query';
|
||||
import { createSignal, For, Show, Suspense } from 'solid-js';
|
||||
@@ -14,6 +14,7 @@ import { createForm } from '@/modules/shared/form/form';
|
||||
import { useI18nApiErrors } from '@/modules/shared/http/composables/i18n-api-errors';
|
||||
import { queryClient } from '@/modules/shared/query/query-client';
|
||||
import { Button } from '@/modules/ui/components/button';
|
||||
import { ColorSwatchPicker } from '@/modules/ui/components/color-swatch-picker';
|
||||
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger } from '@/modules/ui/components/dialog';
|
||||
import { EmptyState } from '@/modules/ui/components/empty';
|
||||
import { createToast } from '@/modules/ui/components/sonner';
|
||||
@@ -23,6 +24,26 @@ import { TextField, TextFieldLabel, TextFieldRoot } from '@/modules/ui/component
|
||||
import { Tag } from '../components/tag.component';
|
||||
import { createTag, deleteTag, fetchTags, updateTag } from '../tags.services';
|
||||
|
||||
// To keep, useful for generating swatches
|
||||
// function generateSwatches(count = 9, saturation = 100, lightness = 74) {
|
||||
// const colors = [];
|
||||
// for (let i = 0; i < count; i++) {
|
||||
// const hue = Math.round((78 + i * 360 / count) % 360);
|
||||
// const hsl = `hsl(${hue}, ${saturation}%, ${lightness}%)`;
|
||||
// colors.push(parseColor(hsl).toString('hex').toUpperCase());
|
||||
// }
|
||||
// return colors;
|
||||
// }
|
||||
|
||||
const defaultColors = ['#D8FF75', '#7FFF7A', '#7AFFCE', '#7AD7FF', '#7A7FFF', '#CE7AFF', '#FF7AD7', '#FF7A7F', '#FFCE7A', '#FFFFFF'];
|
||||
|
||||
const TagColorPicker: Component<{
|
||||
color: string;
|
||||
onChange: (color: string) => void;
|
||||
}> = (props) => {
|
||||
return <ColorSwatchPicker value={props.color} onChange={props.onChange} colors={defaultColors} />;
|
||||
};
|
||||
|
||||
const TagForm: Component<{
|
||||
onSubmit: (values: { name: string; color: string; description: string }) => Promise<void>;
|
||||
initialValues?: { name?: string; color?: string; description?: string | null };
|
||||
@@ -71,10 +92,10 @@ const TagForm: Component<{
|
||||
</Field>
|
||||
|
||||
<Field name="color">
|
||||
{(field, inputProps) => (
|
||||
{field => (
|
||||
<TextFieldRoot class="flex flex-col gap-1 mb-4">
|
||||
<TextFieldLabel for="color">{t('tags.form.color.label')}</TextFieldLabel>
|
||||
<TextField id="color" {...inputProps} autoFocus value={field.value} aria-invalid={Boolean(field.error)} placeholder={t('tags.form.color.placeholder')} />
|
||||
<TagColorPicker color={field.value ?? ''} onChange={color => setValue(form, 'color', color)} />
|
||||
{field.error && <div class="text-red-500 text-sm">{field.error}</div>}
|
||||
</TextFieldRoot>
|
||||
)}
|
||||
@@ -119,7 +140,7 @@ export const CreateTagModal: Component<{
|
||||
const onSubmit = async ({ name, color, description }: { name: string; color: string; description: string }) => {
|
||||
const [,error] = await safely(createTag({
|
||||
name,
|
||||
color,
|
||||
color: color.toLowerCase(),
|
||||
description,
|
||||
organizationId: props.organizationId,
|
||||
}));
|
||||
@@ -153,7 +174,7 @@ export const CreateTagModal: Component<{
|
||||
<DialogTitle>{t('tags.create')}</DialogTitle>
|
||||
</DialogHeader>
|
||||
|
||||
<TagForm onSubmit={onSubmit} initialValues={{ color: '#d8ff75' }} />
|
||||
<TagForm onSubmit={onSubmit} initialValues={{ color: '#D8FF75' }} />
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
);
|
||||
@@ -170,7 +191,7 @@ const UpdateTagModal: Component<{
|
||||
const onSubmit = async ({ name, color, description }: { name: string; color: string; description: string }) => {
|
||||
await updateTag({
|
||||
name,
|
||||
color,
|
||||
color: color.toLowerCase(),
|
||||
description,
|
||||
organizationId: props.organizationId,
|
||||
tagId: props.tag.id,
|
||||
|
||||
@@ -24,8 +24,8 @@ export const alertVariants = cva(
|
||||
},
|
||||
);
|
||||
|
||||
type alertProps<T extends ValidComponent = 'div'> = AlertRootProps<T> &
|
||||
VariantProps<typeof alertVariants> & {
|
||||
type alertProps<T extends ValidComponent = 'div'> = AlertRootProps<T>
|
||||
& VariantProps<typeof alertVariants> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -33,8 +33,8 @@ export const buttonVariants = cva(
|
||||
},
|
||||
);
|
||||
|
||||
type buttonProps<T extends ValidComponent = 'button'> = ButtonRootProps<T> &
|
||||
VariantProps<typeof buttonVariants> & {
|
||||
type buttonProps<T extends ValidComponent = 'button'> = ButtonRootProps<T>
|
||||
& VariantProps<typeof buttonVariants> & {
|
||||
class?: string;
|
||||
isLoading?: boolean;
|
||||
children?: JSX.Element;
|
||||
|
||||
@@ -0,0 +1,178 @@
|
||||
import type { Color } from '@kobalte/core/colors';
|
||||
import type { VariantProps } from 'class-variance-authority';
|
||||
import type { Component, ParentProps } from 'solid-js';
|
||||
import { ColorSlider } from '@kobalte/core/color-slider';
|
||||
import { parseColor } from '@kobalte/core/colors';
|
||||
import { cva } from 'class-variance-authority';
|
||||
import { createSignal, For, splitProps } from 'solid-js';
|
||||
import { useI18n } from '@/modules/i18n/i18n.provider';
|
||||
import { getLuminance } from '@/modules/shared/colors/luminance';
|
||||
import { cn } from '@/modules/shared/style/cn';
|
||||
import { Button } from './button';
|
||||
import { Popover, PopoverContent, PopoverTrigger } from './popover';
|
||||
import { TextField, TextFieldRoot } from './textfield';
|
||||
|
||||
const Slider: Component<{
|
||||
channel: 'hue' | 'saturation' | 'lightness';
|
||||
label: string;
|
||||
value: Color;
|
||||
onChange?: (value: Color) => void;
|
||||
}> = (props) => {
|
||||
return (
|
||||
<ColorSlider channel={props.channel} class="relative flex flex-col gap-0.5 w-full" value={props.value} onChange={props.onChange}>
|
||||
<div class="flex items-center justify-between text-xs font-medium text-muted-foreground">
|
||||
<ColorSlider.Label>{props.label}</ColorSlider.Label>
|
||||
<ColorSlider.ValueLabel />
|
||||
</div>
|
||||
<ColorSlider.Track class="w-full h-24px rounded relative ">
|
||||
<ColorSlider.Thumb class="w-4 h-4 top-4px rounded-full bg-[var(--kb-color-current)] border-2 border-#0a0a0a">
|
||||
<ColorSlider.Input />
|
||||
</ColorSlider.Thumb>
|
||||
</ColorSlider.Track>
|
||||
</ColorSlider>
|
||||
);
|
||||
};
|
||||
|
||||
const ColorPicker: Component<{
|
||||
color: string;
|
||||
onChange?: (color: string) => void;
|
||||
}> = (props) => {
|
||||
const { t } = useI18n();
|
||||
const [color, setColor] = createSignal<Color>(parseColor(props.color).toFormat('hsl'));
|
||||
|
||||
const onUpdateColor = (color: Color) => {
|
||||
setColor(color.toFormat('hsl'));
|
||||
props.onChange?.(color.toString('hex').toUpperCase());
|
||||
};
|
||||
|
||||
const onInputColorChange = (e: Event) => {
|
||||
const color = (e.target as HTMLInputElement).value;
|
||||
|
||||
try {
|
||||
const parsedColor = parseColor(color);
|
||||
onUpdateColor(parsedColor);
|
||||
} catch (_error) {
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div class="flex flex-col gap-2">
|
||||
<Slider channel="hue" label={t('color-picker.hue')} value={color()} onChange={onUpdateColor} />
|
||||
<Slider channel="saturation" label={t('color-picker.saturation')} value={color()} onChange={onUpdateColor} />
|
||||
<Slider channel="lightness" label={t('color-picker.lightness')} value={color()} onChange={onUpdateColor} />
|
||||
|
||||
<TextFieldRoot>
|
||||
<TextField value={color().toString('hex').toUpperCase()} onInput={onInputColorChange} placeholder="#000000" />
|
||||
</TextFieldRoot>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export const colorSwatchVariants = cva(
|
||||
'rounded-lg border-2 border-background shadow-sm transition-all hover:scale-110 focus-visible:(outline-none ring-1.5 ring-ring ring-offset-1)',
|
||||
{
|
||||
variants: {
|
||||
size: {
|
||||
sm: 'h-6 w-6',
|
||||
md: 'h-8 w-8',
|
||||
lg: 'h-10 w-10',
|
||||
},
|
||||
selected: {
|
||||
true: 'ring-1.5 ring-primary! ring-offset-1',
|
||||
false: '',
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
size: 'md',
|
||||
selected: false,
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
type ColorSwatchPickerProps = ParentProps<{
|
||||
value?: string;
|
||||
onChange?: (color: string) => void;
|
||||
colors?: string[];
|
||||
size?: VariantProps<typeof colorSwatchVariants>['size'];
|
||||
class?: string;
|
||||
disabled?: boolean;
|
||||
}>;
|
||||
|
||||
export function ColorSwatchPicker(props: ColorSwatchPickerProps) {
|
||||
const { t } = useI18n();
|
||||
const [local, rest] = splitProps(props, [
|
||||
'value',
|
||||
'onChange',
|
||||
'colors',
|
||||
'size',
|
||||
'class',
|
||||
'disabled',
|
||||
'children',
|
||||
]);
|
||||
|
||||
const colors = () => local.colors ?? [];
|
||||
const selectedColor = () => local.value ?? colors()[0];
|
||||
|
||||
const handleColorSelect = (color: string) => {
|
||||
if (!local.disabled && local.onChange) {
|
||||
local.onChange(color);
|
||||
}
|
||||
};
|
||||
|
||||
const getIsNotInSwatch = (color?: string) => color && !colors().includes(color);
|
||||
|
||||
function getContrastTextColor(color: string) {
|
||||
const luminance = getLuminance(color);
|
||||
// 0.179 is the threshold for WCAG 2.0 level AA
|
||||
return luminance > 0.179 ? 'black' : 'white';
|
||||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
class={cn(
|
||||
'inline-flex items-center gap-1 flex-wrap',
|
||||
local.disabled && 'opacity-50 cursor-not-allowed',
|
||||
local.class,
|
||||
)}
|
||||
{...rest}
|
||||
>
|
||||
<For each={colors()}>
|
||||
{color => (
|
||||
<button
|
||||
type="button"
|
||||
class={cn(
|
||||
colorSwatchVariants({
|
||||
size: local.size,
|
||||
selected: selectedColor() === color,
|
||||
}),
|
||||
)}
|
||||
style={{ 'background-color': color }}
|
||||
onClick={() => handleColorSelect(color)}
|
||||
disabled={local.disabled}
|
||||
aria-label={`${t('color-picker.select-color')} ${color}`}
|
||||
title={color}
|
||||
/>
|
||||
)}
|
||||
</For>
|
||||
|
||||
<Popover>
|
||||
<PopoverTrigger
|
||||
as={Button}
|
||||
variant="outline"
|
||||
size="icon"
|
||||
class={cn(getIsNotInSwatch(local.value) && 'ring-1.5 ring-primary! ring-offset-1')}
|
||||
style={{ 'background-color': getIsNotInSwatch(local.value) ? local.value : '' }}
|
||||
aria-label={t('color-picker.select-a-color')}
|
||||
>
|
||||
<div class="i-tabler-plus size-4" style={{ color: getIsNotInSwatch(local.value) ? getContrastTextColor(local.value ?? '') : undefined }}></div>
|
||||
</PopoverTrigger>
|
||||
<PopoverContent>
|
||||
<p class="text-sm font-medium mb-4">{t('color-picker.select-a-color')}</p>
|
||||
|
||||
<ColorPicker color={local.value ?? ''} onChange={local?.onChange} />
|
||||
</PopoverContent>
|
||||
</Popover>
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -88,8 +88,8 @@ export function ComboboxTrigger<T extends ValidComponent = 'button'>(props: Poly
|
||||
);
|
||||
}
|
||||
|
||||
type comboboxContentProps<T extends ValidComponent = 'div'> =
|
||||
ComboboxContentProps<T> & {
|
||||
type comboboxContentProps<T extends ValidComponent = 'div'>
|
||||
= ComboboxContentProps<T> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -77,8 +77,8 @@ export function DialogTitle<T extends ValidComponent = 'h2'>(props: PolymorphicP
|
||||
);
|
||||
}
|
||||
|
||||
type dialogDescriptionProps<T extends ValidComponent = 'p'> =
|
||||
DialogDescriptionProps<T> & {
|
||||
type dialogDescriptionProps<T extends ValidComponent = 'p'>
|
||||
= DialogDescriptionProps<T> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -26,8 +26,8 @@ export function DropdownMenu(props: DropdownMenuRootProps) {
|
||||
return <DropdownMenuPrimitive {...merge} />;
|
||||
}
|
||||
|
||||
type dropdownMenuContentProps<T extends ValidComponent = 'div'> =
|
||||
DropdownMenuContentProps<T> & {
|
||||
type dropdownMenuContentProps<T extends ValidComponent = 'div'>
|
||||
= DropdownMenuContentProps<T> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
@@ -49,8 +49,8 @@ export function DropdownMenuContent<T extends ValidComponent = 'div'>(props: Pol
|
||||
);
|
||||
}
|
||||
|
||||
type dropdownMenuItemProps<T extends ValidComponent = 'div'> =
|
||||
DropdownMenuItemProps<T> & {
|
||||
type dropdownMenuItemProps<T extends ValidComponent = 'div'>
|
||||
= DropdownMenuItemProps<T> & {
|
||||
class?: string;
|
||||
inset?: boolean;
|
||||
};
|
||||
@@ -73,8 +73,8 @@ export function DropdownMenuItem<T extends ValidComponent = 'div'>(props: Polymo
|
||||
);
|
||||
}
|
||||
|
||||
type dropdownMenuGroupLabelProps<T extends ValidComponent = 'span'> =
|
||||
DropdownMenuGroupLabelProps<T> & {
|
||||
type dropdownMenuGroupLabelProps<T extends ValidComponent = 'span'>
|
||||
= DropdownMenuGroupLabelProps<T> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
@@ -92,8 +92,8 @@ export function DropdownMenuGroupLabel<T extends ValidComponent = 'span'>(props:
|
||||
);
|
||||
}
|
||||
|
||||
type dropdownMenuItemLabelProps<T extends ValidComponent = 'div'> =
|
||||
DropdownMenuItemLabelProps<T> & {
|
||||
type dropdownMenuItemLabelProps<T extends ValidComponent = 'div'>
|
||||
= DropdownMenuItemLabelProps<T> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
@@ -111,8 +111,8 @@ export function DropdownMenuItemLabel<T extends ValidComponent = 'div'>(props: P
|
||||
);
|
||||
}
|
||||
|
||||
type dropdownMenuSeparatorProps<T extends ValidComponent = 'hr'> =
|
||||
DropdownMenuSeparatorProps<T> & {
|
||||
type dropdownMenuSeparatorProps<T extends ValidComponent = 'hr'>
|
||||
= DropdownMenuSeparatorProps<T> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
@@ -178,8 +178,8 @@ export function DropdownMenuSubTrigger<T extends ValidComponent = 'div'>(props:
|
||||
);
|
||||
}
|
||||
|
||||
type dropdownMenuSubContentProps<T extends ValidComponent = 'div'> =
|
||||
DropdownMenuSubTriggerProps<T> & {
|
||||
type dropdownMenuSubContentProps<T extends ValidComponent = 'div'>
|
||||
= DropdownMenuSubTriggerProps<T> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -60,8 +60,8 @@ export function NumberFieldErrorMessage<T extends ValidComponent = 'div'>(props:
|
||||
);
|
||||
}
|
||||
|
||||
type numberFieldProps<T extends ValidComponent = 'div'> =
|
||||
NumberFieldRootProps<T> & {
|
||||
type numberFieldProps<T extends ValidComponent = 'div'>
|
||||
= NumberFieldRootProps<T> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
@@ -87,8 +87,8 @@ export function NumberFieldGroup(props: ComponentProps<'div'>) {
|
||||
);
|
||||
}
|
||||
|
||||
type numberFieldInputProps<T extends ValidComponent = 'input'> =
|
||||
NumberFieldInputProps<T> & {
|
||||
type numberFieldInputProps<T extends ValidComponent = 'input'>
|
||||
= NumberFieldInputProps<T> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -55,8 +55,8 @@ export function SelectTrigger<T extends ValidComponent = 'button'>(props: Polymo
|
||||
);
|
||||
}
|
||||
|
||||
type selectContentProps<T extends ValidComponent = 'div'> =
|
||||
SelectContentProps<T> & {
|
||||
type selectContentProps<T extends ValidComponent = 'div'>
|
||||
= SelectContentProps<T> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -32,8 +32,8 @@ export const sheetVariants = cva(
|
||||
);
|
||||
|
||||
type sheetContentProps<T extends ValidComponent = 'div'> = ParentProps<
|
||||
DialogContentProps<T> &
|
||||
VariantProps<typeof sheetVariants> & {
|
||||
DialogContentProps<T>
|
||||
& VariantProps<typeof sheetVariants> & {
|
||||
class?: string;
|
||||
}
|
||||
>;
|
||||
@@ -96,8 +96,8 @@ export function SheetTitle<T extends ValidComponent = 'h2'>(props: PolymorphicPr
|
||||
);
|
||||
}
|
||||
|
||||
type sheetDescriptionProps<T extends ValidComponent = 'p'> =
|
||||
DialogDescriptionProps<T> & {
|
||||
type sheetDescriptionProps<T extends ValidComponent = 'p'>
|
||||
= DialogDescriptionProps<T> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -46,8 +46,8 @@ export function TabsList<T extends ValidComponent = 'div'>(props: PolymorphicPro
|
||||
);
|
||||
}
|
||||
|
||||
type tabsContentProps<T extends ValidComponent = 'div'> =
|
||||
TabsContentProps<T> & {
|
||||
type tabsContentProps<T extends ValidComponent = 'div'>
|
||||
= TabsContentProps<T> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
@@ -65,8 +65,8 @@ export function TabsContent<T extends ValidComponent = 'div'>(props: Polymorphic
|
||||
);
|
||||
}
|
||||
|
||||
type tabsTriggerProps<T extends ValidComponent = 'button'> =
|
||||
TabsTriggerProps<T> & {
|
||||
type tabsTriggerProps<T extends ValidComponent = 'button'>
|
||||
= TabsTriggerProps<T> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
@@ -100,8 +100,8 @@ const tabsIndicatorVariants = cva(
|
||||
);
|
||||
|
||||
type tabsIndicatorProps<T extends ValidComponent = 'div'> = VoidProps<
|
||||
TabsIndicatorProps<T> &
|
||||
VariantProps<typeof tabsIndicatorVariants> & {
|
||||
TabsIndicatorProps<T>
|
||||
& VariantProps<typeof tabsIndicatorVariants> & {
|
||||
class?: string;
|
||||
}
|
||||
>;
|
||||
|
||||
@@ -12,8 +12,8 @@ import { cva } from 'class-variance-authority';
|
||||
import { splitProps } from 'solid-js';
|
||||
import { cn } from '@/modules/shared/style/cn';
|
||||
|
||||
type textFieldProps<T extends ValidComponent = 'div'> =
|
||||
TextFieldRootProps<T> & {
|
||||
type textFieldProps<T extends ValidComponent = 'div'>
|
||||
= TextFieldRootProps<T> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
@@ -43,8 +43,8 @@ export const textfieldLabel = cva(
|
||||
},
|
||||
);
|
||||
|
||||
type textFieldLabelProps<T extends ValidComponent = 'label'> =
|
||||
TextFieldLabelProps<T> & {
|
||||
type textFieldLabelProps<T extends ValidComponent = 'label'>
|
||||
= TextFieldLabelProps<T> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
@@ -59,8 +59,8 @@ export function TextFieldLabel<T extends ValidComponent = 'label'>(props: Polymo
|
||||
);
|
||||
}
|
||||
|
||||
type textFieldErrorMessageProps<T extends ValidComponent = 'div'> =
|
||||
TextFieldErrorMessageProps<T> & {
|
||||
type textFieldErrorMessageProps<T extends ValidComponent = 'div'>
|
||||
= TextFieldErrorMessageProps<T> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
@@ -77,8 +77,8 @@ export function TextFieldErrorMessage<T extends ValidComponent = 'div'>(props: P
|
||||
);
|
||||
}
|
||||
|
||||
type textFieldDescriptionProps<T extends ValidComponent = 'div'> =
|
||||
TextFieldDescriptionProps<T> & {
|
||||
type textFieldDescriptionProps<T extends ValidComponent = 'div'>
|
||||
= TextFieldDescriptionProps<T> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -25,8 +25,8 @@ function useToggleGroup() {
|
||||
}
|
||||
|
||||
type toggleGroupProps<T extends ValidComponent = 'div'> = ParentProps<
|
||||
ToggleGroupRootProps<T> &
|
||||
VariantProps<typeof toggleVariants> & {
|
||||
ToggleGroupRootProps<T>
|
||||
& VariantProps<typeof toggleVariants> & {
|
||||
class?: string;
|
||||
}
|
||||
>;
|
||||
@@ -56,8 +56,8 @@ export function ToggleGroup<T extends ValidComponent = 'div'>(props: Polymorphic
|
||||
);
|
||||
}
|
||||
|
||||
type toggleGroupItemProps<T extends ValidComponent = 'button'> =
|
||||
ToggleGroupItemProps<T> & {
|
||||
type toggleGroupItemProps<T extends ValidComponent = 'button'>
|
||||
= ToggleGroupItemProps<T> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -28,11 +28,11 @@ export const toggleVariants = cva(
|
||||
},
|
||||
);
|
||||
|
||||
type toggleButtonProps<T extends ValidComponent = 'button'> =
|
||||
ToggleButtonRootProps<T> &
|
||||
VariantProps<typeof toggleVariants> & {
|
||||
class?: string;
|
||||
};
|
||||
type toggleButtonProps<T extends ValidComponent = 'button'>
|
||||
= ToggleButtonRootProps<T>
|
||||
& VariantProps<typeof toggleVariants> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
export function ToggleButton<T extends ValidComponent = 'button'>(props: PolymorphicProps<T, toggleButtonProps<T>>) {
|
||||
const [local, rest] = splitProps(props as toggleButtonProps, [
|
||||
|
||||
@@ -22,8 +22,8 @@ export function Tooltip(props: TooltipRootProps) {
|
||||
return <TooltipPrimitive {...merge} />;
|
||||
}
|
||||
|
||||
type tooltipContentProps<T extends ValidComponent = 'div'> =
|
||||
TooltipContentProps<T> & {
|
||||
type tooltipContentProps<T extends ValidComponent = 'div'>
|
||||
= TooltipContentProps<T> & {
|
||||
class?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ export const OrganizationSettingsLayout: ParentComponent = (props) => {
|
||||
mainMenu={getNavigationItems()}
|
||||
header={() => (
|
||||
<div class="pl-6 py-3 border-b border-b-border flex items-center gap-1">
|
||||
<Button variant="ghost" size="icon" class="text-muted-foreground" as={A} href="/">
|
||||
<Button variant="ghost" size="icon" class="text-muted-foreground" as={A} href={`/organizations/${params.organizationId}`}>
|
||||
<div class="i-tabler-arrow-left size-5"></div>
|
||||
</Button>
|
||||
<h1 class="text-base font-bold">
|
||||
|
||||
@@ -36,6 +36,12 @@ const MenuItemButton: Component<MenuItem> = (props) => {
|
||||
);
|
||||
};
|
||||
|
||||
function getReleaseUrl({ version, packageName = '@papra/app-server' }: { version: string; packageName?: string }) {
|
||||
const encodedVersion = encodeURIComponent(`${packageName}@${version}`);
|
||||
|
||||
return `https://github.com/papra-hq/papra/releases/tag/${encodedVersion}`;
|
||||
}
|
||||
|
||||
export const SideNav: Component<{
|
||||
mainMenu?: MenuItem[];
|
||||
footerMenu?: MenuItem[];
|
||||
@@ -95,7 +101,7 @@ export const SideNav: Component<{
|
||||
))}
|
||||
</div>
|
||||
|
||||
<a class="text-xs text-muted-foreground text-center mt-auto transition-colors hover:(text-primary underline)" href={`https://github.com/papra-hq/papra/releases/tag/${version}`} target="_blank" rel="noopener noreferrer">
|
||||
<a class="text-xs text-muted-foreground text-center mt-auto transition-colors hover:(text-primary underline)" href={getReleaseUrl({ version: config.papraVersion })} target="_blank" rel="noopener noreferrer">
|
||||
{version}
|
||||
</a>
|
||||
|
||||
|
||||
@@ -2,8 +2,11 @@
|
||||
import { readFile, writeFile } from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
import { cwd as getCwd } from 'node:process';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { parse } from 'yaml';
|
||||
|
||||
const filename = fileURLToPath(import.meta.url);
|
||||
|
||||
export async function generateI18nTypes({ cwd = getCwd() }: { cwd?: string } = {}) {
|
||||
try {
|
||||
const yamlPath = path.join(cwd, 'src/locales/en.yml');
|
||||
@@ -17,7 +20,7 @@ export async function generateI18nTypes({ cwd = getCwd() }: { cwd?: string } = {
|
||||
// Do not manually edit this file.
|
||||
// This file is dynamically generated when the dev server runs (or using the \`pnpm script:generate-i18n-types\` command).
|
||||
// Keys are extracted from the en.yml file.
|
||||
// Source code : ${path.relative(cwd, __filename)}
|
||||
// Source code : ${path.relative(cwd, filename)}
|
||||
|
||||
export type LocaleKeys =\n${localKeys.map(key => ` | '${key}'`).join('\n')};
|
||||
`.trimStart();
|
||||
|
||||
@@ -1,5 +1,36 @@
|
||||
# @papra/app-server
|
||||
|
||||
## 0.6.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#394](https://github.com/papra-hq/papra/pull/394) [`f28d824`](https://github.com/papra-hq/papra/commit/f28d8245bf385d7be3b3b8ee449c3fdc88fa375c) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Added the possibility to disable login via email, to support sso-only auth
|
||||
|
||||
- [#405](https://github.com/papra-hq/papra/pull/405) [`3401cfb`](https://github.com/papra-hq/papra/commit/3401cfbfdc7e280d2f0f3166ceddcbf55486f574) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Introduce APP_BASE_URL to mutualize server and client base url
|
||||
|
||||
- [#392](https://github.com/papra-hq/papra/pull/392) [`21a5ccc`](https://github.com/papra-hq/papra/commit/21a5ccce6d42fde143fd3596918dfdfc9af577a1) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Fix permission issue for non 1000:1000 rootless user
|
||||
|
||||
- [#387](https://github.com/papra-hq/papra/pull/387) [`73b8d08`](https://github.com/papra-hq/papra/commit/73b8d080765b6eb9b479db39740cdc6972f6585d) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Added configuration for the ocr language using DOCUMENTS_OCR_LANGUAGES
|
||||
|
||||
- [#379](https://github.com/papra-hq/papra/pull/379) [`6cedc30`](https://github.com/papra-hq/papra/commit/6cedc30716e320946f79a0a9fd8d3b26e834f4db) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Updated dependencies
|
||||
|
||||
- Updated dependencies [[`6cedc30`](https://github.com/papra-hq/papra/commit/6cedc30716e320946f79a0a9fd8d3b26e834f4db)]:
|
||||
- @papra/webhooks@0.1.1
|
||||
|
||||
## 0.6.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#357](https://github.com/papra-hq/papra/pull/357) [`585c53c`](https://github.com/papra-hq/papra/commit/585c53cd9d0d7dbd517dbb1adddfd9e7b70f9fe5) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Added a /llms.txt on main website
|
||||
|
||||
- [#366](https://github.com/papra-hq/papra/pull/366) [`b8c2bd7`](https://github.com/papra-hq/papra/commit/b8c2bd70e3d0c215da34efcdcdf1b75da1ed96a1) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Allow for adding/removing tags to document using api keys
|
||||
|
||||
## 0.6.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#337](https://github.com/papra-hq/papra/pull/337) [`1c574b8`](https://github.com/papra-hq/papra/commit/1c574b8305eb7bde4f1b75ac38a610ca0120a613) Thanks [@CorentinTh](https://github.com/CorentinTh)! - Ensure database directory exists when running scripts (like migrations)
|
||||
|
||||
## 0.6.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
import antfu from '@antfu/eslint-config';
|
||||
|
||||
export default antfu({
|
||||
typescript: {
|
||||
tsconfigPath: './tsconfig.json',
|
||||
overridesTypeAware: {
|
||||
'ts/no-misused-promises': ['error', { checksVoidReturn: false }],
|
||||
'ts/strict-boolean-expressions': ['error', { allowNullableObject: true }],
|
||||
},
|
||||
|
||||
},
|
||||
stylistic: {
|
||||
semi: true,
|
||||
},
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"name": "@papra/app-server",
|
||||
"type": "module",
|
||||
"version": "0.6.1",
|
||||
"version": "0.6.4",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@10.9.0",
|
||||
"packageManager": "pnpm@10.12.3",
|
||||
"description": "Papra app server",
|
||||
"author": "Corentin Thomasset <corentinth@proton.me> (https://corentin.tech)",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
@@ -30,21 +30,21 @@
|
||||
"stripe:webhook": "stripe listen --forward-to localhost:1221/api/stripe/webhook"
|
||||
},
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-s3": "^3.817.0",
|
||||
"@aws-sdk/lib-storage": "^3.817.0",
|
||||
"@aws-sdk/client-s3": "^3.835.0",
|
||||
"@aws-sdk/lib-storage": "^3.835.0",
|
||||
"@azure/storage-blob": "^12.27.0",
|
||||
"@corentinth/chisels": "^1.3.1",
|
||||
"@corentinth/friendly-ids": "^0.0.1",
|
||||
"@crowlog/async-context-plugin": "^1.2.1",
|
||||
"@crowlog/logger": "^1.2.1",
|
||||
"@hono/node-server": "^1.14.3",
|
||||
"@hono/node-server": "^1.14.4",
|
||||
"@libsql/client": "^0.14.0",
|
||||
"@owlrelay/api-sdk": "^0.0.2",
|
||||
"@owlrelay/webhook": "^0.0.3",
|
||||
"@papra/lecture": "^0.0.4",
|
||||
"@papra/lecture": "workspace:*",
|
||||
"@papra/webhooks": "workspace:*",
|
||||
"@paralleldrive/cuid2": "^2.2.2",
|
||||
"backblaze-b2": "^1.7.0",
|
||||
"backblaze-b2": "^1.7.1",
|
||||
"better-auth": "catalog:",
|
||||
"c12": "^3.0.4",
|
||||
"chokidar": "^4.0.3",
|
||||
@@ -52,7 +52,7 @@
|
||||
"drizzle-kit": "^0.30.6",
|
||||
"drizzle-orm": "^0.38.4",
|
||||
"figue": "^2.2.3",
|
||||
"hono": "^4.7.10",
|
||||
"hono": "^4.8.2",
|
||||
"lodash-es": "^4.17.21",
|
||||
"mime-types": "^3.0.1",
|
||||
"nanoid": "^5.1.5",
|
||||
@@ -61,12 +61,12 @@
|
||||
"p-limit": "^6.2.0",
|
||||
"p-queue": "^8.1.0",
|
||||
"picomatch": "^4.0.2",
|
||||
"posthog-node": "^4.17.2",
|
||||
"resend": "^4.5.1",
|
||||
"posthog-node": "^4.18.0",
|
||||
"resend": "^4.6.0",
|
||||
"sanitize-html": "^2.17.0",
|
||||
"stripe": "^17.7.0",
|
||||
"tsx": "^4.19.4",
|
||||
"zod": "^3.25.28"
|
||||
"tsx": "^4.20.3",
|
||||
"zod": "^3.25.67"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "catalog:",
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import { createPrefixedIdRegex } from '../shared/random/ids';
|
||||
|
||||
export const API_KEY_ID_PREFIX = 'ak';
|
||||
export const API_KEY_ID_REGEX = createPrefixedIdRegex({ prefix: API_KEY_ID_PREFIX });
|
||||
|
||||
export const API_KEY_PREFIX = 'ppapi';
|
||||
export const API_KEY_TOKEN_LENGTH = 64;
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ import type { Context } from '../app/server.types';
|
||||
import { createMiddleware } from 'hono/factory';
|
||||
import { createUnauthorizedError } from '../app/auth/auth.errors';
|
||||
import { getAuthorizationHeader } from '../shared/headers/headers.models';
|
||||
import { isNil } from '../shared/utils';
|
||||
import { createApiKeysRepository } from './api-keys.repository';
|
||||
import { getApiKey } from './api-keys.usecases';
|
||||
|
||||
@@ -14,7 +15,7 @@ export function createApiKeyMiddleware({ db }: { db: Database }) {
|
||||
return createMiddleware(async (context: Context, next) => {
|
||||
const { authorizationHeader } = getAuthorizationHeader({ context });
|
||||
|
||||
if (!authorizationHeader) {
|
||||
if (isNil(authorizationHeader)) {
|
||||
return next();
|
||||
}
|
||||
|
||||
@@ -30,6 +31,11 @@ export function createApiKeyMiddleware({ db }: { db: Database }) {
|
||||
throw createUnauthorizedError();
|
||||
}
|
||||
|
||||
if (isNil(token)) {
|
||||
// For type safety
|
||||
throw createUnauthorizedError();
|
||||
}
|
||||
|
||||
const { apiKey } = await getApiKey({ token, apiKeyRepository });
|
||||
|
||||
if (apiKey) {
|
||||
|
||||
@@ -5,6 +5,7 @@ import { injectArguments } from '@corentinth/chisels';
|
||||
import { and, eq, getTableColumns, inArray } from 'drizzle-orm';
|
||||
import { omit, pick } from 'lodash-es';
|
||||
import { organizationMembersTable, organizationsTable } from '../organizations/organizations.table';
|
||||
import { createError } from '../shared/errors/errors';
|
||||
import { createLogger } from '../shared/logger/logger';
|
||||
import { apiKeyOrganizationsTable, apiKeysTable } from './api-keys.tables';
|
||||
|
||||
@@ -58,6 +59,16 @@ async function saveApiKey({
|
||||
})
|
||||
.returning();
|
||||
|
||||
if (!apiKey) {
|
||||
// Very unlikely to happen as the insertion should throw an issue, it's for type safety
|
||||
throw createError({
|
||||
message: 'Error while creating api key',
|
||||
code: 'api-keys.create_error',
|
||||
statusCode: 500,
|
||||
isInternal: true,
|
||||
});
|
||||
}
|
||||
|
||||
if (organizationIds && organizationIds.length > 0) {
|
||||
const apiKeyId = apiKey.id;
|
||||
|
||||
|
||||
@@ -4,9 +4,10 @@ import { z } from 'zod';
|
||||
import { requireAuthentication } from '../app/auth/auth.middleware';
|
||||
import { getUser } from '../app/auth/auth.models';
|
||||
import { createError } from '../shared/errors/errors';
|
||||
import { validateJsonBody } from '../shared/validation/validation';
|
||||
import { validateJsonBody, validateParams } from '../shared/validation/validation';
|
||||
import { API_KEY_PERMISSIONS_VALUES } from './api-keys.constants';
|
||||
import { createApiKeysRepository } from './api-keys.repository';
|
||||
import { apiKeyIdSchema } from './api-keys.schemas';
|
||||
import { createApiKey } from './api-keys.usecases';
|
||||
|
||||
export function registerApiKeysRoutes(context: RouteDefinitionContext) {
|
||||
@@ -85,11 +86,14 @@ function setupDeleteApiKeyRoute({ app, db }: RouteDefinitionContext) {
|
||||
app.delete(
|
||||
'/api/api-keys/:apiKeyId',
|
||||
requireAuthentication(),
|
||||
validateParams(z.object({
|
||||
apiKeyId: apiKeyIdSchema,
|
||||
})),
|
||||
async (context) => {
|
||||
const { userId } = getUser({ context });
|
||||
const apiKeyRepository = createApiKeysRepository({ db });
|
||||
|
||||
const { apiKeyId } = context.req.param();
|
||||
const { apiKeyId } = context.req.valid('param');
|
||||
|
||||
await apiKeyRepository.deleteUserApiKey({ apiKeyId, userId });
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
import { z } from 'zod';
|
||||
import { API_KEY_ID_REGEX } from './api-keys.constants';
|
||||
|
||||
export const apiKeyIdSchema = z.string().regex(API_KEY_ID_REGEX);
|
||||
@@ -4,11 +4,12 @@ import { index, integer, sqliteTable, text } from 'drizzle-orm/sqlite-core';
|
||||
import { organizationMembersTable } from '../organizations/organizations.table';
|
||||
import { createPrimaryKeyField, createTimestampColumns } from '../shared/db/columns.helpers';
|
||||
import { usersTable } from '../users/users.table';
|
||||
import { API_KEY_ID_PREFIX } from './api-keys.constants';
|
||||
|
||||
export const apiKeysTable = sqliteTable(
|
||||
'api_keys',
|
||||
{
|
||||
...createPrimaryKeyField({ prefix: 'ak' }),
|
||||
...createPrimaryKeyField({ prefix: API_KEY_ID_PREFIX }),
|
||||
...createTimestampColumns(),
|
||||
|
||||
name: text('name').notNull(),
|
||||
|
||||
@@ -48,7 +48,7 @@ describe('api-keys usecases', () => {
|
||||
|
||||
const { apiKey } = await getApiKey({ token: 'ppapi_HT2Hj5V8A3WHMQtVcMDB9UucqUxPU15o1aI6qOc1Oy5qBvbSEr4jZzsjuFYPqCP0', apiKeyRepository });
|
||||
|
||||
expect(apiKey.id).to.eql('api_key_1');
|
||||
expect(apiKey?.id).to.eql('api_key_1');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -56,6 +56,14 @@ export const authConfig = {
|
||||
env: 'AUTH_SHOW_LEGAL_LINKS',
|
||||
},
|
||||
providers: {
|
||||
email: {
|
||||
isEnabled: {
|
||||
doc: 'Whether email/password authentication is enabled',
|
||||
schema: booleanishSchema,
|
||||
default: true,
|
||||
env: 'AUTH_PROVIDERS_EMAIL_IS_ENABLED',
|
||||
},
|
||||
},
|
||||
github: {
|
||||
isEnabled: {
|
||||
doc: 'Whether Github OAuth is enabled',
|
||||
|
||||
@@ -46,6 +46,32 @@ describe('auth models', () => {
|
||||
'http://localhost:3002',
|
||||
]);
|
||||
});
|
||||
|
||||
test('if the app baseUrl is set, it should be used instead of the client baseUrl', () => {
|
||||
const config = {
|
||||
appBaseUrl: 'https://papra.app',
|
||||
client: {
|
||||
baseUrl: 'http://localhost:3000',
|
||||
},
|
||||
server: {
|
||||
trustedOrigins: [
|
||||
'http://localhost:3000',
|
||||
'http://localhost:3001',
|
||||
'http://localhost:3001',
|
||||
'http://localhost:3002',
|
||||
],
|
||||
},
|
||||
} as Config;
|
||||
|
||||
const { trustedOrigins } = getTrustedOrigins({ config });
|
||||
|
||||
expect(trustedOrigins).to.deep.equal([
|
||||
'https://papra.app',
|
||||
'http://localhost:3000',
|
||||
'http://localhost:3001',
|
||||
'http://localhost:3002',
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
describe('checkAuthentication', () => {
|
||||
@@ -105,7 +131,7 @@ describe('auth models', () => {
|
||||
});
|
||||
});
|
||||
|
||||
test('when the auth type is api-key, at least one permission must match', () => {
|
||||
test('when the auth type is api-key, all permissions must match', () => {
|
||||
expect(isAuthenticationValid({
|
||||
authType: 'api-key',
|
||||
apiKey: {
|
||||
@@ -136,6 +162,22 @@ describe('auth models', () => {
|
||||
permissions: ['documents:create'],
|
||||
} as ApiKey,
|
||||
requiredApiKeyPermissions: ['documents:create', 'documents:read'],
|
||||
})).to.eql(false);
|
||||
|
||||
expect(isAuthenticationValid({
|
||||
authType: 'api-key',
|
||||
apiKey: {
|
||||
permissions: ['documents:create', 'documents:read'],
|
||||
} as ApiKey,
|
||||
requiredApiKeyPermissions: ['documents:create', 'documents:read'],
|
||||
})).to.eql(true);
|
||||
|
||||
expect(isAuthenticationValid({
|
||||
authType: 'api-key',
|
||||
apiKey: {
|
||||
permissions: ['documents:create', 'documents:read', 'documents:update'],
|
||||
} as ApiKey,
|
||||
requiredApiKeyPermissions: ['documents:create', 'documents:read'],
|
||||
})).to.eql(true);
|
||||
});
|
||||
|
||||
|
||||
@@ -3,12 +3,14 @@ import type { Config } from '../../config/config.types';
|
||||
import type { Context } from '../server.types';
|
||||
import type { Session } from './auth.types';
|
||||
import { uniq } from 'lodash-es';
|
||||
import { getClientBaseUrl } from '../../config/config.models';
|
||||
import { createError } from '../../shared/errors/errors';
|
||||
import { isNil } from '../../shared/utils';
|
||||
|
||||
export function getUser({ context }: { context: Context }) {
|
||||
const userId = context.get('userId');
|
||||
|
||||
if (!userId) {
|
||||
if (isNil(userId)) {
|
||||
// This should never happen as getUser is called in authenticated routes
|
||||
// just for proper type safety
|
||||
throw createError({
|
||||
@@ -31,11 +33,11 @@ export function getSession({ context }: { context: Context }) {
|
||||
}
|
||||
|
||||
export function getTrustedOrigins({ config }: { config: Config }) {
|
||||
const { baseUrl } = config.client;
|
||||
const { clientBaseUrl } = getClientBaseUrl({ config });
|
||||
const { trustedOrigins } = config.server;
|
||||
|
||||
return {
|
||||
trustedOrigins: uniq([baseUrl, ...trustedOrigins]),
|
||||
trustedOrigins: uniq([clientBaseUrl, ...trustedOrigins]),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -71,9 +73,9 @@ export function isAuthenticationValid({
|
||||
return false;
|
||||
}
|
||||
|
||||
const atLeastOnePermissionMatches = apiKey.permissions.some(permission => requiredApiKeyPermissions.includes(permission));
|
||||
const allPermissionsMatch = requiredApiKeyPermissions.every(permission => apiKey.permissions.includes(permission));
|
||||
|
||||
return atLeastOnePermissionMatches;
|
||||
return allPermissionsMatch;
|
||||
}
|
||||
|
||||
if (authType === 'session' && session) {
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
import type { Context, RouteDefinitionContext } from '../server.types';
|
||||
import type { Session } from './auth.types';
|
||||
import { get } from 'lodash-es';
|
||||
import { isDefined } from '../../shared/utils';
|
||||
|
||||
export function registerAuthRoutes({ app, auth, config }: RouteDefinitionContext) {
|
||||
app.on(
|
||||
['POST', 'GET'],
|
||||
'/api/auth/*',
|
||||
context => auth.handler(context.req.raw),
|
||||
async context => auth.handler(context.req.raw),
|
||||
);
|
||||
|
||||
app.use('*', async (context: Context, next) => {
|
||||
@@ -23,9 +24,9 @@ export function registerAuthRoutes({ app, auth, config }: RouteDefinitionContext
|
||||
|
||||
if (config.env === 'test') {
|
||||
app.use('*', async (context: Context, next) => {
|
||||
const overrideUserId = get(context.env, 'loggedInUserId') as string | undefined;
|
||||
const overrideUserId: unknown = get(context.env, 'loggedInUserId');
|
||||
|
||||
if (overrideUserId) {
|
||||
if (isDefined(overrideUserId) && typeof overrideUserId === 'string') {
|
||||
context.set('userId', overrideUserId);
|
||||
context.set('session', {} as Session);
|
||||
context.set('authType', 'session');
|
||||
|
||||
@@ -5,6 +5,7 @@ import type { AuthEmailsServices } from './auth.emails.services';
|
||||
import { betterAuth } from 'better-auth';
|
||||
import { drizzleAdapter } from 'better-auth/adapters/drizzle';
|
||||
import { genericOAuth } from 'better-auth/plugins';
|
||||
import { getServerBaseUrl } from '../../config/config.models';
|
||||
import { createLogger } from '../../shared/logger/logger';
|
||||
import { usersTable } from '../../users/users.table';
|
||||
import { getTrustedOrigins } from './auth.models';
|
||||
@@ -28,21 +29,20 @@ export function getAuth({
|
||||
const { secret } = config.auth;
|
||||
|
||||
const { trustedOrigins } = getTrustedOrigins({ config });
|
||||
const { serverBaseUrl } = getServerBaseUrl({ config });
|
||||
|
||||
const auth = betterAuth({
|
||||
secret,
|
||||
baseURL: config.server.baseUrl,
|
||||
baseURL: serverBaseUrl,
|
||||
trustedOrigins,
|
||||
logger: {
|
||||
disabled: false,
|
||||
log: (baseLevel, message) => {
|
||||
const level = (baseLevel in logger ? baseLevel : 'info') as keyof typeof logger;
|
||||
|
||||
logger[level](message);
|
||||
logger[baseLevel ?? 'info'](message);
|
||||
},
|
||||
},
|
||||
emailAndPassword: {
|
||||
enabled: true,
|
||||
enabled: config.auth.providers.email.isEnabled,
|
||||
requireEmailVerification: config.auth.isEmailVerificationRequired,
|
||||
sendResetPassword: config.auth.isPasswordResetEnabled
|
||||
? authEmailsServices.sendPasswordResetEmail
|
||||
|
||||
@@ -31,6 +31,6 @@ export async function ensureLocalDatabaseDirectoryExists({ config }: { config: C
|
||||
logger.info({ dbUrl: url, dbDir, dbPath }, 'Database directory missing, created it');
|
||||
}
|
||||
} catch (error) {
|
||||
logger.error({ error, dbDir, dbPath }, 'Failed to ensure that the database directory exists, error while creating the directory');
|
||||
logger.error({ error, dbDir, dbPath }, 'Failed to ensure that the database directory exists, error while creating the directory. Please see https://docs.papra.app/resources/troubleshooting/#failed-to-ensure-that-the-database-directory-exists for more information.');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ async function seedDatabase({ db, ...seedRows }: { db: Database } & SeedTablesRo
|
||||
await Promise.all(
|
||||
Object
|
||||
.entries(seedRows)
|
||||
.map(([table, rows]) => db
|
||||
.map(async ([table, rows]) => db
|
||||
.insert(seedTables[table as keyof typeof seedTables])
|
||||
.values(rows)
|
||||
.execute(),
|
||||
|
||||
@@ -5,5 +5,5 @@ import { sql } from 'drizzle-orm';
|
||||
export async function isDatabaseHealthy({ db }: { db: Database }) {
|
||||
const [result, error] = await safely(db.run(sql`SELECT 1;`));
|
||||
|
||||
return error === null && result.rows.length > 0 && result.rows[0]['1'] === 1;
|
||||
return error === null && result.rows.length > 0 && result.rows[0]?.['1'] === 1;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import type { ServerInstanceGenerics } from '../server.types';
|
||||
import { Hono } from 'hono';
|
||||
import { describe, expect, test } from 'vitest';
|
||||
import { createError } from '../../shared/errors/errors';
|
||||
@@ -6,8 +7,8 @@ import { registerErrorMiddleware } from './errors.middleware';
|
||||
describe('errors middleware', () => {
|
||||
describe('registerErrorMiddleware', () => {
|
||||
test('when a non-internal custom error is thrown with a status code, the error is returned', async () => {
|
||||
const app = new Hono();
|
||||
registerErrorMiddleware({ app: app as any });
|
||||
const app = new Hono<ServerInstanceGenerics>();
|
||||
registerErrorMiddleware({ app });
|
||||
|
||||
app.get('/error', async () => {
|
||||
throw createError({
|
||||
@@ -29,8 +30,8 @@ describe('errors middleware', () => {
|
||||
});
|
||||
|
||||
test('when an unknown error is thrown, a 500 error is returned with a generic message', async () => {
|
||||
const app = new Hono();
|
||||
registerErrorMiddleware({ app: app as any });
|
||||
const app = new Hono<ServerInstanceGenerics>();
|
||||
registerErrorMiddleware({ app });
|
||||
|
||||
app.get('/error', async () => {
|
||||
throw new Error('Unknown error');
|
||||
@@ -48,8 +49,8 @@ describe('errors middleware', () => {
|
||||
});
|
||||
|
||||
test('when a custom error is marked as internal, a 500 error is returned with a generic message', async () => {
|
||||
const app = new Hono();
|
||||
registerErrorMiddleware({ app: app as any });
|
||||
const app = new Hono<ServerInstanceGenerics>();
|
||||
registerErrorMiddleware({ app });
|
||||
|
||||
app.get('/error', async () => {
|
||||
throw createError({
|
||||
@@ -72,8 +73,8 @@ describe('errors middleware', () => {
|
||||
});
|
||||
|
||||
test('when querying an unknown route, a 404 error is returned', async () => {
|
||||
const app = new Hono();
|
||||
registerErrorMiddleware({ app: app as any });
|
||||
const app = new Hono<ServerInstanceGenerics>();
|
||||
registerErrorMiddleware({ app });
|
||||
|
||||
const response = await app.request('/unknown-route', { method: 'GET' });
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import type { ServerInstanceGenerics } from '../server.types';
|
||||
import { Hono } from 'hono';
|
||||
import { describe, expect, test } from 'vitest';
|
||||
import { overrideConfig } from '../../config/config.test-utils';
|
||||
@@ -9,8 +10,8 @@ describe('middlewares', () => {
|
||||
test('when a request last longer than the config timeout, a 504 error is raised', async () => {
|
||||
const config = overrideConfig({ server: { routeTimeoutMs: 50 } });
|
||||
|
||||
const app = new Hono<{ Variables: { config: any } }>();
|
||||
registerErrorMiddleware({ app: app as any });
|
||||
const app = new Hono<ServerInstanceGenerics>();
|
||||
registerErrorMiddleware({ app });
|
||||
|
||||
app.get(
|
||||
'/should-timeout',
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { inspectRoutes } from 'hono/dev';
|
||||
import { describe, expect, test } from 'vitest';
|
||||
import { overrideConfig } from '../config/config.test-utils';
|
||||
import { createInMemoryDatabase } from './database/database.test-utils';
|
||||
import { createServer } from './server';
|
||||
|
||||
@@ -17,7 +18,7 @@ function setValidParams(path: string) {
|
||||
.replaceAll(':invitationId', 'inv_101010101010101010101010');
|
||||
|
||||
// throw if there are any remaining params
|
||||
if (newPath.match(/:(\w+)/g)) {
|
||||
if (newPath.match(/:\w+/g)) {
|
||||
throw new Error(`Add a dummy value for the params in ${path}`);
|
||||
}
|
||||
|
||||
@@ -27,7 +28,7 @@ function setValidParams(path: string) {
|
||||
describe('server routes', () => {
|
||||
test('all routes should respond with a 401 when non-authenticated, except for public and auth-related routes', async () => {
|
||||
const { db } = await createInMemoryDatabase();
|
||||
const { app } = await createServer({ db });
|
||||
const { app } = await createServer({ db, config: overrideConfig() });
|
||||
|
||||
const publicRoutes = [
|
||||
'GET /api/ping',
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import type { DeepPartial } from '@corentinth/chisels';
|
||||
import type { Config } from './config.types';
|
||||
import { describe, expect, test } from 'vitest';
|
||||
import { getPublicConfig } from './config.models';
|
||||
import { getClientBaseUrl, getPublicConfig, getServerBaseUrl } from './config.models';
|
||||
import { overrideConfig } from './config.test-utils';
|
||||
|
||||
describe('config models', () => {
|
||||
describe('getPublicConfig', () => {
|
||||
@@ -12,10 +14,10 @@ describe('config models', () => {
|
||||
- auth.providers.*.isEnabled Wether a oauth provider is enabled
|
||||
- documents.deletedExpirationDelayInDays The delay in days before a deleted document is permanently deleted
|
||||
- intakeEmails.isEnabled Whether intake emails are enabled
|
||||
- intakeEmails.emailGenerationDomain The domain to use when generating email addresses for intake emails
|
||||
- auth.providers.email.isEnabled Whether email/password authentication is enabled
|
||||
|
||||
Any other config should not be exposed.`, () => {
|
||||
const config = {
|
||||
const config = overrideConfig({
|
||||
foo: 'bar',
|
||||
auth: {
|
||||
bar: 'baz',
|
||||
@@ -38,9 +40,8 @@ describe('config models', () => {
|
||||
},
|
||||
intakeEmails: {
|
||||
isEnabled: true,
|
||||
emailGenerationDomain: 'papra.email',
|
||||
},
|
||||
} as unknown as Config;
|
||||
} as DeepPartial<Config>);
|
||||
|
||||
expect(getPublicConfig({ config })).to.eql({
|
||||
publicConfig: {
|
||||
@@ -57,7 +58,9 @@ describe('config models', () => {
|
||||
isEnabled: false,
|
||||
},
|
||||
customs: [],
|
||||
|
||||
email: {
|
||||
isEnabled: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
documents: {
|
||||
@@ -65,10 +68,25 @@ describe('config models', () => {
|
||||
},
|
||||
intakeEmails: {
|
||||
isEnabled: true,
|
||||
emailGenerationDomain: 'papra.email',
|
||||
},
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('getServerBaseUrl', () => {
|
||||
test('use the generic baseUrl if set, otherwise use the server baseUrl', () => {
|
||||
expect(getServerBaseUrl({ config: { appBaseUrl: 'https://papra.app' } as Config })).to.eql({ serverBaseUrl: 'https://papra.app' });
|
||||
expect(getServerBaseUrl({ config: { server: { baseUrl: 'http://localhost:1221' } } as Config })).to.eql({ serverBaseUrl: 'http://localhost:1221' });
|
||||
expect(getServerBaseUrl({ config: { appBaseUrl: 'https://papra.app', server: { baseUrl: 'http://localhost:1221' } } as Config })).to.eql({ serverBaseUrl: 'https://papra.app' });
|
||||
});
|
||||
});
|
||||
|
||||
describe('getClientBaseUrl', () => {
|
||||
test('use the generic baseUrl if set, otherwise use the client baseUrl', () => {
|
||||
expect(getClientBaseUrl({ config: { appBaseUrl: 'https://papra.app' } as Config })).to.eql({ clientBaseUrl: 'https://papra.app' });
|
||||
expect(getClientBaseUrl({ config: { client: { baseUrl: 'http://localhost:3000' } } as Config })).to.eql({ clientBaseUrl: 'http://localhost:3000' });
|
||||
expect(getClientBaseUrl({ config: { appBaseUrl: 'https://papra.app', client: { baseUrl: 'http://localhost:3000' } } as Config })).to.eql({ clientBaseUrl: 'https://papra.app' });
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -9,11 +9,11 @@ export function getPublicConfig({ config }: { config: Config }) {
|
||||
'auth.isPasswordResetEnabled',
|
||||
'auth.isRegistrationEnabled',
|
||||
'auth.showLegalLinksOnAuthPage',
|
||||
'auth.providers.email.isEnabled',
|
||||
'auth.providers.github.isEnabled',
|
||||
'auth.providers.google.isEnabled',
|
||||
'documents.deletedDocumentsRetentionDays',
|
||||
'intakeEmails.isEnabled',
|
||||
'intakeEmails.emailGenerationDomain',
|
||||
]),
|
||||
{
|
||||
auth: {
|
||||
@@ -32,3 +32,15 @@ export function getPublicConfig({ config }: { config: Config }) {
|
||||
publicConfig,
|
||||
};
|
||||
}
|
||||
|
||||
export function getServerBaseUrl({ config }: { config: Config }) {
|
||||
return {
|
||||
serverBaseUrl: config.appBaseUrl ?? config.server.baseUrl,
|
||||
};
|
||||
}
|
||||
|
||||
export function getClientBaseUrl({ config }: { config: Config }) {
|
||||
return {
|
||||
clientBaseUrl: config.appBaseUrl ?? config.client.baseUrl,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { RouteDefinitionContext } from '../app/server.types';
|
||||
import { getPublicConfig } from './config.models';
|
||||
|
||||
export async function registerConfigRoutes(context: RouteDefinitionContext) {
|
||||
export function registerConfigRoutes(context: RouteDefinitionContext) {
|
||||
setupGetPublicConfigRoute(context);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,9 +27,15 @@ export const configDefinition = {
|
||||
default: 'development',
|
||||
env: 'NODE_ENV',
|
||||
},
|
||||
appBaseUrl: {
|
||||
doc: 'The base URL of the application. Will override the client baseUrl and server baseUrl when set. Use this one over the client and server baseUrl when the server is serving the client assets (like in docker).',
|
||||
schema: z.string().url().optional(),
|
||||
env: 'APP_BASE_URL',
|
||||
default: undefined,
|
||||
},
|
||||
client: {
|
||||
baseUrl: {
|
||||
doc: 'The URL of the client, when using docker, it should be the same as the server baseUrl',
|
||||
doc: 'The URL of the client, when using docker, prefer using the `APP_BASE_URL` environment variable instead.',
|
||||
schema: z.string().url(),
|
||||
default: 'http://localhost:3000',
|
||||
env: 'CLIENT_BASE_URL',
|
||||
@@ -37,7 +43,7 @@ export const configDefinition = {
|
||||
},
|
||||
server: {
|
||||
baseUrl: {
|
||||
doc: 'The base URL of the server, when using docker, it should be the same as the client baseUrl',
|
||||
doc: 'The base URL of the server, when using docker, prefer using the `APP_BASE_URL` environment variable instead.',
|
||||
schema: z.string().url(),
|
||||
default: 'http://localhost:1221',
|
||||
env: 'SERVER_BASE_URL',
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import type { ConfigDefinition } from 'figue';
|
||||
import { z } from 'zod';
|
||||
import { ocrLanguagesSchema, stringCoercedOcrLanguagesSchema } from './documents.schemas';
|
||||
|
||||
export const documentsConfig = {
|
||||
deletedDocumentsRetentionDays: {
|
||||
@@ -8,4 +9,13 @@ export const documentsConfig = {
|
||||
default: 30,
|
||||
env: 'DOCUMENTS_DELETED_DOCUMENTS_RETENTION_DAYS',
|
||||
},
|
||||
ocrLanguages: {
|
||||
doc: 'The languages codes to use for OCR, multiple languages can be specified by separating them with a comma. See https://tesseract-ocr.github.io/tessdoc/Data-Files#data-files-for-version-400-november-29-2016',
|
||||
schema: z.union([
|
||||
stringCoercedOcrLanguagesSchema,
|
||||
ocrLanguagesSchema,
|
||||
]),
|
||||
default: ['eng'],
|
||||
env: 'DOCUMENTS_OCR_LANGUAGES',
|
||||
},
|
||||
} as const satisfies ConfigDefinition;
|
||||
|
||||
@@ -4,3 +4,10 @@ export const DOCUMENT_ID_PREFIX = 'doc';
|
||||
export const DOCUMENT_ID_REGEX = createPrefixedIdRegex({ prefix: DOCUMENT_ID_PREFIX });
|
||||
|
||||
export const ORIGINAL_DOCUMENTS_STORAGE_KEY = 'originals';
|
||||
|
||||
// Hardcoding languages list for now, as the config schema is used in the doc app, the import of @papra/lecture fucks things up at build time due to tesseract
|
||||
// but would love to use the actual list from @papra/lecture
|
||||
//
|
||||
// import { ocrLanguages } from '@papra/lecture';
|
||||
// console.log(JSON.stringify(ocrLanguages));
|
||||
export const OCR_LANGUAGES = ['afr', 'amh', 'ara', 'asm', 'aze', 'aze_cyrl', 'bel', 'ben', 'bod', 'bos', 'bul', 'cat', 'ceb', 'ces', 'chi_sim', 'chi_tra', 'chr', 'cym', 'dan', 'deu', 'dzo', 'ell', 'eng', 'enm', 'epo', 'est', 'eus', 'fas', 'fin', 'fra', 'frk', 'frm', 'gle', 'glg', 'grc', 'guj', 'hat', 'heb', 'hin', 'hrv', 'hun', 'iku', 'ind', 'isl', 'ita', 'ita_old', 'jav', 'jpn', 'kan', 'kat', 'kat_old', 'kaz', 'khm', 'kir', 'kor', 'kur', 'lao', 'lat', 'lav', 'lit', 'mal', 'mar', 'mkd', 'mlt', 'msa', 'mya', 'nep', 'nld', 'nor', 'ori', 'pan', 'pol', 'por', 'pus', 'ron', 'rus', 'san', 'sin', 'slk', 'slv', 'spa', 'spa_old', 'sqi', 'srp', 'srp_latn', 'swa', 'swe', 'syr', 'tam', 'tel', 'tgk', 'tgl', 'tha', 'tir', 'tur', 'uig', 'ukr', 'urd', 'uzb', 'uzb_cyrl', 'vie', 'yid'] as const;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { getExtension } from '../shared/files/file-names';
|
||||
import { generateId } from '../shared/random/ids';
|
||||
import { isDefined } from '../shared/utils';
|
||||
import { ORIGINAL_DOCUMENTS_STORAGE_KEY } from './documents.constants';
|
||||
|
||||
export function joinStorageKeyParts(...parts: string[]) {
|
||||
@@ -9,7 +10,7 @@ export function joinStorageKeyParts(...parts: string[]) {
|
||||
export function buildOriginalDocumentKey({ documentId, organizationId, fileName }: { documentId: string; organizationId: string; fileName: string }) {
|
||||
const { extension } = getExtension({ fileName });
|
||||
|
||||
const newFileName = extension ? `${documentId}.${extension}` : documentId;
|
||||
const newFileName = isDefined(extension) ? `${documentId}.${extension}` : documentId;
|
||||
|
||||
const originalDocumentStorageKey = joinStorageKeyParts(organizationId, ORIGINAL_DOCUMENTS_STORAGE_KEY, newFileName);
|
||||
|
||||
|
||||
@@ -4,11 +4,13 @@ import { injectArguments, safely } from '@corentinth/chisels';
|
||||
import { subDays } from 'date-fns';
|
||||
import { and, count, desc, eq, getTableColumns, lt, sql, sum } from 'drizzle-orm';
|
||||
import { omit } from 'lodash-es';
|
||||
import { createOrganizationNotFoundError } from '../organizations/organizations.errors';
|
||||
import { isUniqueConstraintError } from '../shared/db/constraints.models';
|
||||
import { withPagination } from '../shared/db/pagination';
|
||||
import { omitUndefined } from '../shared/utils';
|
||||
import { createError } from '../shared/errors/errors';
|
||||
import { isDefined, isNil, omitUndefined } from '../shared/utils';
|
||||
import { documentsTagsTable, tagsTable } from '../tags/tags.table';
|
||||
import { createDocumentAlreadyExistsError } from './documents.errors';
|
||||
import { createDocumentAlreadyExistsError, createDocumentNotFoundError } from './documents.errors';
|
||||
import { documentsTable } from './documents.table';
|
||||
|
||||
export type DocumentsRepository = ReturnType<typeof createDocumentsRepository>;
|
||||
@@ -57,13 +59,27 @@ async function saveOrganizationDocument({ db, ...documentToInsert }: { db: Datab
|
||||
throw createDocumentAlreadyExistsError();
|
||||
}
|
||||
|
||||
if (error) {
|
||||
throw error;
|
||||
}
|
||||
|
||||
const [document] = documents ?? [];
|
||||
|
||||
if (isNil(document)) {
|
||||
// Very unlikely to happen as the insertion throws an issue, it's for type safety
|
||||
throw createError({
|
||||
message: 'Error while saving document',
|
||||
code: 'documents.save_error',
|
||||
statusCode: 500,
|
||||
isInternal: true,
|
||||
});
|
||||
}
|
||||
|
||||
return { document };
|
||||
}
|
||||
|
||||
async function getOrganizationDocumentsCount({ organizationId, filters, db }: { organizationId: string; filters?: { tags?: string[] }; db: Database }) {
|
||||
const [{ documentsCount }] = await db
|
||||
const [record] = await db
|
||||
.select({
|
||||
documentsCount: count(documentsTable.id),
|
||||
})
|
||||
@@ -77,11 +93,17 @@ async function getOrganizationDocumentsCount({ organizationId, filters, db }: {
|
||||
),
|
||||
);
|
||||
|
||||
if (isNil(record)) {
|
||||
throw createOrganizationNotFoundError();
|
||||
}
|
||||
|
||||
const { documentsCount } = record;
|
||||
|
||||
return { documentsCount };
|
||||
}
|
||||
|
||||
async function getOrganizationDeletedDocumentsCount({ organizationId, db }: { organizationId: string; db: Database }) {
|
||||
const [{ documentsCount }] = await db
|
||||
const [record] = await db
|
||||
.select({
|
||||
documentsCount: count(documentsTable.id),
|
||||
})
|
||||
@@ -93,6 +115,12 @@ async function getOrganizationDeletedDocumentsCount({ organizationId, db }: { or
|
||||
),
|
||||
);
|
||||
|
||||
if (isNil(record)) {
|
||||
throw createOrganizationNotFoundError();
|
||||
}
|
||||
|
||||
const { documentsCount } = record;
|
||||
|
||||
return { documentsCount };
|
||||
}
|
||||
|
||||
@@ -145,7 +173,7 @@ async function getOrganizationDocuments({
|
||||
}
|
||||
|
||||
if (tag) {
|
||||
acc[document.id].tags.push(tag);
|
||||
acc[document.id]!.tags.push(tag);
|
||||
}
|
||||
|
||||
return acc;
|
||||
@@ -235,8 +263,8 @@ async function restoreDocument({ documentId, organizationId, name, userId, db }:
|
||||
isDeleted: false,
|
||||
deletedBy: null,
|
||||
deletedAt: null,
|
||||
...(name ? { name, originalName: name } : {}),
|
||||
...(userId ? { createdBy: userId } : {}),
|
||||
...(isDefined(name) ? { name, originalName: name } : {}),
|
||||
...(isDefined(userId) ? { createdBy: userId } : {}),
|
||||
})
|
||||
.where(
|
||||
and(
|
||||
@@ -246,6 +274,10 @@ async function restoreDocument({ documentId, organizationId, name, userId, db }:
|
||||
)
|
||||
.returning();
|
||||
|
||||
if (isNil(document)) {
|
||||
throw createDocumentNotFoundError();
|
||||
}
|
||||
|
||||
return { document };
|
||||
}
|
||||
|
||||
@@ -294,7 +326,7 @@ async function searchOrganizationDocuments({ organizationId, searchQuery, pageIn
|
||||
}
|
||||
|
||||
async function getOrganizationStats({ organizationId, db }: { organizationId: string; db: Database }) {
|
||||
const [{ documentsCount, documentsSize }] = await db
|
||||
const [record] = await db
|
||||
.select({
|
||||
documentsCount: count(documentsTable.id),
|
||||
documentsSize: sum(documentsTable.originalSize),
|
||||
@@ -307,6 +339,12 @@ async function getOrganizationStats({ organizationId, db }: { organizationId: st
|
||||
),
|
||||
);
|
||||
|
||||
if (isNil(record)) {
|
||||
throw createOrganizationNotFoundError();
|
||||
}
|
||||
|
||||
const { documentsCount, documentsSize } = record;
|
||||
|
||||
return {
|
||||
documentsCount,
|
||||
documentsSize: Number(documentsSize ?? 0),
|
||||
|
||||
@@ -7,6 +7,7 @@ import { organizationIdSchema } from '../organizations/organization.schemas';
|
||||
import { createOrganizationsRepository } from '../organizations/organizations.repository';
|
||||
import { ensureUserIsInOrganization } from '../organizations/organizations.usecases';
|
||||
import { createError } from '../shared/errors/errors';
|
||||
import { isNil } from '../shared/utils';
|
||||
import { validateFormData, validateJsonBody, validateParams, validateQuery } from '../shared/validation/validation';
|
||||
import { createWebhookRepository } from '../webhooks/webhook.repository';
|
||||
import { triggerWebhooks } from '../webhooks/webhook.usecases';
|
||||
@@ -15,7 +16,7 @@ import { deferRegisterDocumentActivityLog } from './document-activity/document-a
|
||||
import { createDocumentIsNotDeletedError } from './documents.errors';
|
||||
import { isDocumentSizeLimitEnabled } from './documents.models';
|
||||
import { createDocumentsRepository } from './documents.repository';
|
||||
import { documentIdSchema } from './documents.schemas';
|
||||
import { documentIdSchema, stringCoercedOcrLanguagesSchema } from './documents.schemas';
|
||||
import { createDocumentCreationUsecase, deleteAllTrashDocuments, deleteTrashDocument, ensureDocumentExists, getDocumentOrThrow } from './documents.usecases';
|
||||
import { createDocumentStorageService } from './storage/documents.storage.services';
|
||||
|
||||
@@ -38,7 +39,7 @@ function setupCreateDocumentRoute({ app, config, db, trackingServices }: RouteDe
|
||||
app.post(
|
||||
'/api/organizations/:organizationId/documents',
|
||||
requireAuthentication({ apiKeyPermissions: ['documents:create'] }),
|
||||
(context, next) => {
|
||||
async (context, next) => {
|
||||
const { maxUploadSize } = config.documentsStorage;
|
||||
|
||||
if (!isDocumentSizeLimitEnabled({ maxUploadSize })) {
|
||||
@@ -56,11 +57,13 @@ function setupCreateDocumentRoute({ app, config, db, trackingServices }: RouteDe
|
||||
},
|
||||
});
|
||||
|
||||
// eslint-disable-next-line ts/no-unsafe-argument
|
||||
return middleware(context, next);
|
||||
},
|
||||
|
||||
validateFormData(z.object({
|
||||
file: z.instanceof(File),
|
||||
ocrLanguages: stringCoercedOcrLanguagesSchema.optional(),
|
||||
})),
|
||||
validateParams(z.object({
|
||||
organizationId: organizationIdSchema,
|
||||
@@ -68,10 +71,10 @@ function setupCreateDocumentRoute({ app, config, db, trackingServices }: RouteDe
|
||||
async (context) => {
|
||||
const { userId } = getUser({ context });
|
||||
|
||||
const { file } = context.req.valid('form');
|
||||
const { file, ocrLanguages } = context.req.valid('form');
|
||||
const { organizationId } = context.req.valid('param');
|
||||
|
||||
if (!file) {
|
||||
if (isNil(file)) {
|
||||
throw createError({
|
||||
message: 'No file provided, please upload a file using the "file" key.',
|
||||
code: 'document.no_file',
|
||||
@@ -91,6 +94,7 @@ function setupCreateDocumentRoute({ app, config, db, trackingServices }: RouteDe
|
||||
db,
|
||||
config,
|
||||
trackingServices,
|
||||
ocrLanguages,
|
||||
});
|
||||
|
||||
const { document } = await createDocument({
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
import { z } from 'zod';
|
||||
import { DOCUMENT_ID_REGEX } from './documents.constants';
|
||||
import { DOCUMENT_ID_REGEX, OCR_LANGUAGES } from './documents.constants';
|
||||
|
||||
export const documentIdSchema = z.string().regex(DOCUMENT_ID_REGEX);
|
||||
export const ocrLanguagesSchema = z.array(z.enum(OCR_LANGUAGES));
|
||||
export const stringCoercedOcrLanguagesSchema = z.string().transform(value => value.split(',').map(lang => lang.trim())).pipe(ocrLanguagesSchema);
|
||||
|
||||
@@ -17,6 +17,7 @@ import pLimit from 'p-limit';
|
||||
import { checkIfOrganizationCanCreateNewDocument } from '../organizations/organizations.usecases';
|
||||
import { createPlansRepository } from '../plans/plans.repository';
|
||||
import { createLogger } from '../shared/logger/logger';
|
||||
import { isDefined } from '../shared/utils';
|
||||
import { createSubscriptionsRepository } from '../subscriptions/subscriptions.repository';
|
||||
import { createTaggingRulesRepository } from '../tagging-rules/tagging-rules.repository';
|
||||
import { applyTaggingRules } from '../tagging-rules/tagging-rules.usecases';
|
||||
@@ -34,8 +35,8 @@ import { createDocumentStorageService } from './storage/documents.storage.servic
|
||||
|
||||
const logger = createLogger({ namespace: 'documents:usecases' });
|
||||
|
||||
export async function extractDocumentText({ file }: { file: File }) {
|
||||
const { textContent, error, extractorName } = await extractTextFromFile({ file });
|
||||
export async function extractDocumentText({ file, ocrLanguages }: { file: File; ocrLanguages?: string[] }) {
|
||||
const { textContent, error, extractorName } = await extractTextFromFile({ file, config: { tesseract: { languages: ocrLanguages } } });
|
||||
|
||||
if (error) {
|
||||
logger.error({ error, extractorName }, 'Error while extracting text from document');
|
||||
@@ -50,6 +51,7 @@ export async function createDocument({
|
||||
file,
|
||||
userId,
|
||||
organizationId,
|
||||
ocrLanguages = [],
|
||||
documentsRepository,
|
||||
documentsStorageService,
|
||||
generateDocumentId = generateDocumentIdImpl,
|
||||
@@ -65,6 +67,7 @@ export async function createDocument({
|
||||
file: File;
|
||||
userId?: string;
|
||||
organizationId: string;
|
||||
ocrLanguages?: string[];
|
||||
documentsRepository: DocumentsRepository;
|
||||
documentsStorageService: DocumentStorageService;
|
||||
generateDocumentId?: () => string;
|
||||
@@ -98,27 +101,28 @@ export async function createDocument({
|
||||
|
||||
const { document } = existingDocument
|
||||
? await handleExistingDocument({
|
||||
existingDocument,
|
||||
fileName,
|
||||
organizationId,
|
||||
documentsRepository,
|
||||
tagsRepository,
|
||||
logger,
|
||||
})
|
||||
existingDocument,
|
||||
fileName,
|
||||
organizationId,
|
||||
documentsRepository,
|
||||
tagsRepository,
|
||||
logger,
|
||||
})
|
||||
: await createNewDocument({
|
||||
file,
|
||||
fileName,
|
||||
size,
|
||||
mimeType,
|
||||
hash,
|
||||
userId,
|
||||
organizationId,
|
||||
documentsRepository,
|
||||
documentsStorageService,
|
||||
generateDocumentId,
|
||||
trackingServices,
|
||||
logger,
|
||||
});
|
||||
file,
|
||||
fileName,
|
||||
size,
|
||||
mimeType,
|
||||
hash,
|
||||
userId,
|
||||
organizationId,
|
||||
documentsRepository,
|
||||
documentsStorageService,
|
||||
generateDocumentId,
|
||||
trackingServices,
|
||||
ocrLanguages,
|
||||
logger,
|
||||
});
|
||||
|
||||
deferRegisterDocumentActivityLog({
|
||||
documentId: document.id,
|
||||
@@ -167,6 +171,7 @@ export async function createDocumentCreationUsecase({
|
||||
webhookRepository: initialDeps.webhookRepository ?? createWebhookRepository({ db }),
|
||||
documentActivityRepository: initialDeps.documentActivityRepository ?? createDocumentActivityRepository({ db }),
|
||||
|
||||
ocrLanguages: initialDeps.ocrLanguages ?? config.documents.ocrLanguages,
|
||||
generateDocumentId: initialDeps.generateDocumentId,
|
||||
logger: initialDeps.logger,
|
||||
};
|
||||
@@ -191,7 +196,7 @@ async function handleExistingDocument({
|
||||
tagsRepository: TagsRepository;
|
||||
logger: Logger;
|
||||
}) {
|
||||
if (existingDocument && !existingDocument.isDeleted) {
|
||||
if (!existingDocument.isDeleted) {
|
||||
throw createDocumentAlreadyExistsError();
|
||||
}
|
||||
|
||||
@@ -217,6 +222,7 @@ async function createNewDocument({
|
||||
documentsStorageService,
|
||||
generateDocumentId,
|
||||
trackingServices,
|
||||
ocrLanguages,
|
||||
logger,
|
||||
}: {
|
||||
file: File;
|
||||
@@ -230,6 +236,7 @@ async function createNewDocument({
|
||||
documentsStorageService: DocumentStorageService;
|
||||
generateDocumentId: () => string;
|
||||
trackingServices: TrackingServices;
|
||||
ocrLanguages?: string[];
|
||||
logger: Logger;
|
||||
}) {
|
||||
const documentId = generateDocumentId();
|
||||
@@ -245,7 +252,7 @@ async function createNewDocument({
|
||||
storageKey: originalDocumentStorageKey,
|
||||
});
|
||||
|
||||
const { text } = await extractDocumentText({ file });
|
||||
const { text } = await extractDocumentText({ file, ocrLanguages });
|
||||
|
||||
const [result, error] = await safely(documentsRepository.saveOrganizationDocument({
|
||||
id: documentId,
|
||||
@@ -271,7 +278,7 @@ async function createNewDocument({
|
||||
throw error;
|
||||
}
|
||||
|
||||
if (userId) {
|
||||
if (isDefined(userId)) {
|
||||
trackingServices.captureUserEvent({ userId, event: 'Document created' });
|
||||
}
|
||||
|
||||
@@ -348,7 +355,7 @@ export async function deleteExpiredDocuments({
|
||||
const limit = pLimit(10);
|
||||
|
||||
await Promise.all(
|
||||
documents.map(document => limit(async () => {
|
||||
documents.map(async document => limit(async () => {
|
||||
const [, error] = await safely(hardDeleteDocument({ document, documentsRepository, documentsStorageService }));
|
||||
|
||||
if (error) {
|
||||
@@ -402,6 +409,6 @@ export async function deleteAllTrashDocuments({
|
||||
const limit = pLimit(10);
|
||||
|
||||
await Promise.all(
|
||||
documents.map(document => limit(() => hardDeleteDocument({ document, documentsRepository, documentsStorageService }))),
|
||||
documents.map(async document => limit(async () => hardDeleteDocument({ document, documentsRepository, documentsStorageService }))),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import type { Config } from '../../config/config.types';
|
||||
import { createError } from '../../shared/errors/errors';
|
||||
import { isNil } from '../../shared/utils';
|
||||
import { AZ_BLOB_STORAGE_DRIVER_NAME, azBlobStorageDriverFactory } from './drivers/az-blob/az-blob.storage-driver';
|
||||
import { B2_STORAGE_DRIVER_NAME, b2StorageDriverFactory } from './drivers/b2/b2.storage-driver';
|
||||
import { FS_STORAGE_DRIVER_NAME, fsStorageDriverFactory } from './drivers/fs/fs.storage-driver';
|
||||
@@ -21,7 +22,7 @@ export async function createDocumentStorageService({ config }: { config: Config
|
||||
|
||||
const storageDriverFactory = storageDriverFactories[storageDriverName];
|
||||
|
||||
if (!storageDriverFactory) {
|
||||
if (isNil(storageDriverFactory)) {
|
||||
throw createError({
|
||||
message: `Unknown storage driver: ${storageDriverName}`,
|
||||
code: 'storage_driver.unknown_driver',
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { Buffer } from 'node:buffer';
|
||||
import B2 from 'backblaze-b2';
|
||||
|
||||
import { isNil } from '../../../../shared/utils';
|
||||
import { createFileNotFoundError } from '../../document-storage.errors';
|
||||
import { defineStorageDriver } from '../drivers.models';
|
||||
|
||||
@@ -22,8 +23,10 @@ export const b2StorageDriverFactory = defineStorageDriver(async ({ config }) =>
|
||||
bucketId,
|
||||
});
|
||||
const upload = await b2Client.uploadFile({
|
||||
uploadUrl: getUploadUrl.data.uploadUrl,
|
||||
uploadAuthToken: getUploadUrl.data.authorizationToken,
|
||||
// eslint-disable-next-line ts/no-unsafe-member-access
|
||||
uploadUrl: getUploadUrl.data?.uploadUrl as string,
|
||||
// eslint-disable-next-line ts/no-unsafe-member-access
|
||||
uploadAuthToken: getUploadUrl.data?.authorizationToken as string,
|
||||
fileName: storageKey,
|
||||
data: Buffer.from(await file.arrayBuffer()),
|
||||
});
|
||||
@@ -34,15 +37,18 @@ export const b2StorageDriverFactory = defineStorageDriver(async ({ config }) =>
|
||||
},
|
||||
getFileStream: async ({ storageKey }) => {
|
||||
await b2Client.authorize();
|
||||
|
||||
const response = await b2Client.downloadFileByName({
|
||||
bucketName,
|
||||
fileName: storageKey,
|
||||
responseType: 'stream',
|
||||
});
|
||||
if (!response.data) {
|
||||
|
||||
if (isNil(response.data)) {
|
||||
throw createFileNotFoundError();
|
||||
}
|
||||
return { fileStream: response.data };
|
||||
|
||||
return { fileStream: response.data as ReadableStream };
|
||||
},
|
||||
deleteFile: async ({ storageKey }) => {
|
||||
await b2Client.hideFile({
|
||||
|
||||
@@ -94,7 +94,7 @@ describe('storage driver', () => {
|
||||
|
||||
const { fileStream } = await fsStorageDriver.getFileStream({ storageKey: 'org_1/text-file.txt' });
|
||||
|
||||
const chunks: Uint8Array[] = [];
|
||||
const chunks: unknown[] = [];
|
||||
for await (const chunk of fileStream) {
|
||||
chunks.push(chunk);
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ describe('memory storage-driver', () => {
|
||||
const entries = Array.from(storage.entries());
|
||||
|
||||
expect(entries).to.have.length(1);
|
||||
const [key, file] = entries[0];
|
||||
const [key, file] = entries[0] as [string, File];
|
||||
|
||||
expect(key).to.eql('org_1/text-file.txt');
|
||||
expect(file).to.be.a('File');
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import type { Config } from '../config/config.types';
|
||||
import type { EmailDriverName } from './drivers/email-driver';
|
||||
import type { EmailDriverFactory } from './emails.types';
|
||||
import { createError } from '../shared/errors/errors';
|
||||
import { createLogger } from '../shared/logger/logger';
|
||||
import { isNil } from '../shared/utils';
|
||||
import { emailDrivers } from './drivers/email-driver';
|
||||
|
||||
export type EmailsServices = ReturnType<typeof createEmailsServices>;
|
||||
@@ -9,9 +11,9 @@ export type EmailsServices = ReturnType<typeof createEmailsServices>;
|
||||
export function createEmailsServices({ config }: { config: Config }) {
|
||||
const { driverName } = config.emails;
|
||||
|
||||
const emailDriver = emailDrivers[driverName as EmailDriverName];
|
||||
const emailDriver: EmailDriverFactory | undefined = emailDrivers[driverName as EmailDriverName];
|
||||
|
||||
if (!emailDriver) {
|
||||
if (isNil(emailDriver)) {
|
||||
throw createError({
|
||||
message: `Invalid email driver ${driverName}`,
|
||||
code: 'emails.invalid_driver',
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { isAbsolute, join, parse, sep as pathSeparator, relative } from 'node:path';
|
||||
import { ORGANIZATION_ID_REGEX } from '../organizations/organizations.constants';
|
||||
import { isNil } from '../shared/utils';
|
||||
|
||||
export function normalizeFilePathToIngestionFolder({
|
||||
filePath,
|
||||
@@ -16,7 +17,7 @@ export function normalizeFilePathToIngestionFolder({
|
||||
export function getOrganizationIdFromFilePath({ relativeFilePath }: { relativeFilePath: string }) {
|
||||
const [maybeOrganizationId] = relativeFilePath.split(pathSeparator);
|
||||
|
||||
if (!maybeOrganizationId || !ORGANIZATION_ID_REGEX.test(maybeOrganizationId)) {
|
||||
if (isNil(maybeOrganizationId) || !ORGANIZATION_ID_REGEX.test(maybeOrganizationId)) {
|
||||
return { organizationId: undefined };
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user