If none of these properties are set, the default language will be used.

I18n in Templates

In a template (a.k.a view file), you can use the function i18n() to get
translations instead.

<p><%=i18n("Thisisanexample"); %></p>

Other Details

Formating Output

If the request statement doesn't exist in the language pack, it will be output
as-is. Like console.log(), you can set placeholders like %s, %d, etc.
in the statement, and pass replacements to the rest arguments of i18n().

i18n("This is an %s.", "example"); // => This is an example.

Language Alias

Different clients may send different language symbols, for instance, MacOS will
send zh for Chinese, however, most of the times we use zh-CN (including the
language pack filename). To solve this problem, SFN v0.6 introduced language
alias support, or you need to do is just add an $alias property to the
language pack.