pub type LocalizationError = EsFluentError;Aliased Type§
pub enum LocalizationError {
Show 14 variants
ConfigNotFound {
path: PathBuf,
},
ConfigParseError(Error),
AssetsNotFound {
path: PathBuf,
},
FallbackLanguageNotFound {
language: String,
},
InvalidLanguageIdentifier {
identifier: String,
reason: String,
},
InvalidFluentIdentifier {
identifier: String,
reason: String,
},
DuplicateGeneratedFtlKey {
key: String,
first: String,
second: String,
},
LanguageNotSupported(LanguageIdentifier),
FluentParseError(Vec<ParserError>),
FluentSerializeError(Error),
IoError(Error),
EnvVarError(VarError),
BackendError(Error),
MissingPackageName,
}Variants§
ConfigNotFound
Configuration file not found.
ConfigParseError(Error)
Failed to parse configuration file.
AssetsNotFound
Assets directory not found.
FallbackLanguageNotFound
Fallback language directory not found.
InvalidLanguageIdentifier
Invalid language identifier.
InvalidFluentIdentifier
Invalid Fluent metadata identifier.
DuplicateGeneratedFtlKey
Duplicate generated Fluent key metadata.
LanguageNotSupported(LanguageIdentifier)
Language not supported.
FluentParseError(Vec<ParserError>)
Fluent parsing error.
FluentSerializeError(Error)
Fluent serialization error.
IoError(Error)
IO error during file operations.
EnvVarError(VarError)
Environment variable error.
BackendError(Error)
Generic backend error.
MissingPackageName
Missing package name.