Get the programming example below for localizing File Manager according to the peculiarities of a certain language. Don't miss the opportunity to use free Webix coding samples to accelerate and facilitate the process of web development.
webix.ready(function() { // use custom scrolls, optional webix.CustomScroll.init(); const fm = { view: "filemanager", id: "fm1", url: "https://docs.webix.com/filemanager-backend/", locale: { lang: "en", webix: { // switch all webix widgets to the selected locale en: "en-US", zh: "zh-CN", ru: "ru-RU", }, }, }; fileManager.locales.ru = { Files: "Файлы", "My Files": "Моя полка", }; fileManager.locales.zh = { Files: "檔案", "My Files": "我的檔案", }; const toolbar = { cols: [ { view: "segmented", options: ["en", "ru", "zh"], width: 250, click: function() { const locale = $$("fm1").getService("locale"); locale.setLang(this.getValue()); }, }, ], }; webix.ui({ type: "wide", rows: [toolbar, fm], }); });