Languages
EF uses the global lang
attribute to determine the font-family for different languages and to show localized messages in elements. Supporting languages are English, Deutsch, Japanese, Traditional Chinese and Simplified Chinese.
For more information about localization and how is it applied in different contexts see Localization.
<html lang="ja-JP">
<ef-panel spacing> <p> 冬が来た。<br> 白い樹樹の光を<br> 体のうちに蓄積しておいて、<br> 夜深く眠る<br> </p> </ef-panel>
document.documentElement.setAttribute('lang', 'ja-JP');
body { background: none; }
<html lang="zh-CN">
<ef-panel spacing> <p> 李绅 《悯农》<br> 锄禾日当午<br> 汗滴禾下土。<br> 谁知盘中餐<br> 粒粒皆辛苦。 </p> </ef-panel>
document.documentElement.setAttribute('lang', 'zh-CN');
body { background: none; }