logger.log(TreeLogger.ERROR,
"All @GadgetLocale specifictions must include either lang() or country().");
throw new UnableToCompleteException();
}
writeAnnotationToElement(logger, locale, localeElement, "language_direction");
LanguageDirection direction = locale.language_direction();
if (direction != null && direction != LanguageDirection.UNSPECIFIED) {
localeElement.setAttribute("language_direction", direction.getValue());
}
}
}