Skip to content

I18N

Currently, exsied only supports English(en), French(fr), German(de), Russian(ru), Spanish(es), Simplified Chinese(zh-Hans), and Traditional Chinese(zh-Hant).

You can add a locale parameter in exsied.init to set a default locale, or use the following functions to set a new locale.

Notice: Changing the locale after exsied.init will require reinitializing exsied . Developers should backup the content first.

exsied.i18n.setLocale("en");

Add support for other locales

Setp1: serach all words

Search t(' in your IDE.

Setp2: set a dict

exsied.i18n.setDict("zh-CN", {
Title: "标题",
Alternative: "别名",
Styles: "样式",
Width: "宽度",
Height: "高度",
});

Setp3: set a locale

exsied.i18n.setLocale("zh-CN");