Expand description
Core types, errors, and shared functionality.
Structs§
- Assets
NotFound Error - Error when the assets directory doesn’t exist.
- Config
NotFound Error - Error when the i18n.toml configuration file is not found.
- Config
Parse Error - Error when parsing the i18n.toml configuration file.
- Crate
Info - Information about a crate that uses es-fluent.
- Fallback
Language NotFound Error - Error when the fallback language directory doesn’t exist.
- Format
Error - Error when formatting fails for an FTL file.
- Format
Report - Report for format command results.
- FtlSyntax
Error - Error when an FTL file has syntax errors.
- Generate
Result - Result of generating FTL for a single crate.
- Invalid
Language Error - Error when a language identifier is invalid.
- Locale
NotFound Error - Error when a specified locale doesn’t exist.
- Missing
KeyError - A single missing key diagnostic.
- Missing
Variable Warning - A single missing variable diagnostic (warning).
- Sync
Missing Key - Warning when a key needs to be synced to another locale.
- Sync
Report - Report for sync command results.
- Validation
Report - Aggregated validation report containing multiple issues.
- Workspace
Info - Information about a workspace containing es-fluent crates. Used for the monolithic temp crate approach where one temp crate links all workspace members for efficient inventory collection.
Enums§
- CliError
- Crate
State - The state of a crate in the workspace (used by TUI).
- Fluent
Parse Mode - The mode to use when parsing Fluent files.
- Generation
Action - The action to perform during generation.
- Validation
Issue - A validation issue (either error or warning).
Traits§
- Fluent
Parse Mode Ext - Extension trait for FluentParseMode to add CLI-specific functionality.
Functions§
- find_
key_ span - Find the byte offset and length of a key in the FTL source.
- find_
message_ span - Find all lines containing a message definition for a key.
- span_
from_ line_ col - Calculate SourceSpan from line and column in source text.