MCPcopy Create free account
hub / github.com/apitable/apitable / initDayjs

Function initDayjs

packages/datasheet/src/pc/common/initializer.ts:82–87  ·  view source on GitHub ↗
(comlink: any)

Source from the content-addressed store, hash-verified

80}
81
82function initDayjs(comlink: any) {
83 let lang = getLanguage() || 'zh-cn';
84 lang = lang.toLowerCase().replace('_', '-');
85 dayjs.locale(lang);
86 comlink.proxy?.initHook(lang);
87}
88
89export function initializer(comlink: any) {
90 initAxios(comlink.store);

Callers 1

initializerFunction · 0.85

Calls 3

getLanguageFunction · 0.90
replaceMethod · 0.45
localeMethod · 0.45

Tested by

no test coverage detected