...
Notice that there are two parameters on this $i18n.write call. The first parameter is a "key" and then the second parameter is the text. Every single write call needs to have a unique key associated with it. The key is arbitrary, but you will typically see a three part key used by our theme developers: section.template.textIdentifier.
Advanced Static Text - lang attribute
Part of the agreement when performing automated translation is that a lang attribute will be added to the containing element to tell the search engine how the content was translated. We try to make this as easy as possible. Let's take the example above for the text "Your contact email"
<div class="ucColorSubHeader">$i18n.write("checkout.viewcart.yourContactEmailField", "Your contact email")</div>
This can be transformed into the following code:
<div class="ucColorSubHeader" $!{i18n.htmlLang("checkout.viewcart.yourContactEmailField")}>${i18n.write("Your contact email")}</div>
Include Page | ||||
---|---|---|---|---|
|
Directions for editing a language file
...