Expand description
Portable catalog editing, persistence and translation assistance.
Hosts own storage locations, time, credentials, scheduling and network transport. This engine never changes global culture or starts background work implicitly.
Re-exports§
pub use ferroui_protranslate_formats as formats;
Structs§
- AiBatch
Progress - AiBatch
Result - AiCancellation
Token - AiHttp
Request - AiHttp
Response - AiModel
List - AiProvider
Config - Serializable host configuration. Debug output redacts the API key.
- AiTranslation
Manager - Stable provider ordering matches the source manager. Errors never trigger paid retries.
- AiTranslation
Request - AiTranslation
Request Entry - AiTranslation
Result - AiTranslation
Result Entry - Auto
Save Scheduler - Host-driven scheduling: call
tickfrom a UI timer or an executor. No worker threads borrow a document, and failed saves remain due for the next tick. - Backup
Metadata - Catalog
Gateway - Stateless gateway shared by file, clipboard and web hosts.
- Culture
Choice - Entry
Filter - EntryId
- Stable identity independent of a record’s key, culture, position or duplicate status.
- Entry
Status - File
Studio Storage - Explicit host directory; no application-data discovery or global state.
- Format
Helper - Format
Preview Values - Format
Suggestion - Imported
Catalog - A successful import retains the complete normalized document and diagnostics.
- Memory
Studio Storage - Placeholder
- Placeholder
Diagnostic - Review
Metrics - Save
Outcome - Session
Service - Session, recovery and backup storage share the same explicit host boundary.
- Settings
Editor - Editing settings is transactional: cancelling discards the draft, and a failed save keeps it available without changing the original configuration.
- Settings
Load - Settings
Service - Storage
Entry - Studio
Document - An owned document; hosts decide how to expose notifications and selection.
- Studio
Paths - Names inside a storage root, supplied once by the host.
- Studio
Settings - Translation
Coverage - Translation
Plan - Captured before awaiting transport. Wire keys are stable IDs, so duplicate catalog keys and punctuation are unambiguous in provider responses.
- Translation
Session - Versioned, complete session payload. Runtime history and credentials are separate.
- Translation
Suggestion
Enums§
- AiHttp
Method - AiModel
List Source - AiProvider
- Builder
Format Type - Credential
Persistence - Format
Syntax - Studio
Error - Translation
Review State
Constants§
Traits§
- AiTransport
- The host chooses HTTP implementation, authentication storage, timeout and scheduling.
- Studio
Storage - Relative paths are scoped by the host’s storage instance. Writes are atomic:
errors must leave the old destination intact. Missing files are
Ok(None).
Functions§
- autocomplete
- normalized_
placeholders - placeholders
- Recognize source placeholders without evaluating them. Byte ranges support insertion/highlighting; escaped composite braces and printf %% are literals.
- simulate_
format - Composite messages execute the real formatter. Other syntaxes are deliberate editor simulations using supplied sample values, not target runtime engines.
- source_
placeholders - validate_
placeholders
Type Aliases§
- AiFuture
- Local futures also support browser transports that are not Send.