'; document.write(link); if(window.langUrlOnDemand) { var linkOnDemand = ''; document.write(linkOnDemand); } } locale = languages[bitable_lang || 'en']; langFileName = langFromBuild.pathPrefix + langFromBuild.fileNames[locale]; urlsFromBuild = genI18nUrls(domains, langFileName); langUrl = 'https://' + (navigator.cdn_host ? navigator.cdn_host.replace('//', '') : domains[0]) + langFileName; var bitableVersion = undefined; var matchList = location.search.match(/vb=(\d+\.\d+\.\d+\.\d+)/); if (matchList && matchList.length > 1) { bitableVersion = matchList[1]; } else if(window.bearGarr && window.bearGarr.bitable && window.bearGarr.bitable.version) { bitableVersion = window.bearGarr.bitable.version; } if(bitableVersion) { var bitableI18nPrefix = "/eesz/bear/smartable/module/ee/docs/bitable/"; var langUrlOnDemand = ("https://" + (navigator.cdn_host ? navigator.cdn_host.replace("//", "") : domains[0]) + `${bitableI18nPrefix}${bitableVersion}/lang/bitable/${locale}.js`); window.langUrlOnDemand = langUrlOnDemand; } window.langCDNList = urlsFromBuild || []; window.langUrl = langUrl; return appendLink(langUrl); }; var bitable_lang = undefined; try { bitable_lang = (document.cookie && document.cookie.match(/lang=(.*?)(;|$)/) || [])[1]; } catch (error) { console.error('error in get lang in cookie', error); } bitable_lang && prelpadBitableLangUrl(bitable_lang); })();