http://localhost:4502/libs/cq/i18n/translator.html
一,java code
Granite.I18n.setLocale("en");
Granite.I18n.get("TEST-001");
Granite.I18n.setLocale("fr");
Granite.I18n.get("TEST-001");
二,html code
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal"
jcr:mixinTypes="[rep:AccessControllable]"
jcr:primaryType="sling:Folder"/>
${'location.address.driving.address' @ i18n}