Expand description
Translation style management (presets and custom styles). Translation style management.
Provides preset and custom translation styles to control the tone and style of translations.
Structs§
- Preset
Style - A preset translation style (hardcoded, not modifiable by users).
Enums§
- Resolved
Style - Resolved style information.
- Style
Error - Style-related errors.
Constants§
- PRESETS
- All available preset styles.
Functions§
- get_
preset - Looks up a preset style by key.
- is_
preset - Returns true if the key is a preset style.
- resolve_
style - Resolves a style key to a
ResolvedStyle. - sorted_
custom_ keys - Returns custom style keys sorted alphabetically.
- validate_
custom_ key - Validates a custom style key.