Implement proper localization support for YAML content documents.