Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When calling static text in the content of your storefront pages. If the template contains a call to the "i18n$i18n.write" , then its performing a look up first against the languages file "eng.default.json" for a match.

If it finds a match there it will use the text as defined in the languages document, and if .  If it does not find a match there, it will use the string as defined in the template code directly.

Example

...

<div class="ucColorSubHeader">$i18n.write("checkout.viewcart.yourContactEmailField", "Your contact email")</div>

 

Muti-lingual Support

...

Warning

StoreFronts does not yet support multi-lingual pages. You may switch the language in your merchant settings, but we do not yet have on-the-fly support for browser language headers.

 

Directions for editing a language file

...