Generic YAML Tree Parser Plugin

Plugin source location: <serge_root>/lib/Serge/Engine/Plugin/

This plugin is used to extract localizable strings from arbitrary YAML data structures (typically used to localize Ruby On Rails applications).

In case YAML format validation fails, the plugin can send an error report to specified recipients. If no email settings are provided, it will simply report the error in the console output.

Code Examples

en: messages: key1: string key2: string plural_message: one: string other: string

For each extracted translatable string, parser builds the full key path (e.g. en/messages/key1 or en/messages/plural_message/one) and uses that as a hint provided along with the string.

Limitation: dynamic number of plurals is not supported yet; all quantity variants need to be pre-created in the original YML resource file, and they are extracted as individual translatable units.