Module style

Module style 

Source
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§

PresetStyle
A preset translation style (hardcoded, not modifiable by users).

Enums§

ResolvedStyle
Resolved style information.
StyleError
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.