Keywords and Localization
Raml can translate localized keywords into the English core keywords before parsing. Place a keywords.raml.lang file next to your .rml file or in a parent directory.
Format
Each line maps an English keyword to a localized keyword:
'start' | 'البداية'
'if' | 'لو'
'print' | 'اطبع'
'b' | 'ب'
Notes
- Keep mappings one-to-one and avoid duplicates.
- You can localize control flow, types, and IO keywords used by the parser.
- See
test/ar/keywords.raml.langfor a full mapping example.