Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

i18n usage

  • Loading branch information...
commit 19cc1d82c89c1ee7b94d6f4e285be6321f188f76 1 parent e0effb4
@shaunlee authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  Readme.md
View
3  Readme.md
@@ -55,6 +55,9 @@ via npm:
jst.render('{{ it.value|filterName(1, 2, 3) }}', {value: 123});
// i18n
+ jst.configure({
+ locales: {lang: 'zh_CN', locales: __dirname + '/locales'}
+ });
jst.render('{{ _("Hello {it.name}")|e }}', {name: '<strong>jst</strong>'});
// Client side
Please sign in to comment.
Something went wrong with that request. Please try again.