it is very tedious to write sling i18n resource manually in this very verbose format
http://sling.apache.org/site/internationalization-support.html#InternationalizationSupport-SampleResources
instead, the goal it to write it in an very easy an compact format e.g.
java properties i18n file
json file (allows nesting for building key hierarchies)
xml file (allows nesting for building key hierarchies)
all those input files are transformed during maven build to the sling destintation format in either JCR content JSON or XML format.
a first draft of the implementation is here:
https://github.com/wcm-io/wcm-io/tree/master/tooling/maven/plugins/i18n-maven-plugin
usage:
currently only JSON as output format is supported.
documentation will be added to wcm.io soon.
added support for JCR XML output format as well.
added documentation http://wcm.io/tooling/maven/plugins/i18n-maven-plugin/