Is your feature request related to a problem? Please describe.
Currently, setting locale via dayjs is done by using require('dayjs/locale/ko'), as the document says as this
dayjs-changing-locale. or dayjs-changing-locale-for-locally
but js-template seems not support this
- Putting
require() gives Template contains potentially unsafe code... error.
- Just using
dayjs().locale('ko').format('YYYY-MM-DD (dd)') gives 2025-08-19 (Tu), but I want to see '2025-08-19 (화)`
Describe the solution you'd like
Importing every dayjs's locale dependency to foam? but it may make foam extension size SO high.
Describe alternatives you've considered
I think, evaluating dd for locale, seems easy in Javascript, via adjusting 7 tokens using switch-case or Map. Put this related information as js note template's comment, another user may not upload this kind of issue.
Is your feature request related to a problem? Please describe.
Currently, setting locale via
dayjsis done by usingrequire('dayjs/locale/ko'), as the document says as thisdayjs-changing-locale. or dayjs-changing-locale-for-locally
but js-template seems not support this
require()givesTemplate contains potentially unsafe code...error.dayjs().locale('ko').format('YYYY-MM-DD (dd)')gives2025-08-19 (Tu), but I want to see '2025-08-19 (화)`Describe the solution you'd like
Importing every dayjs's locale dependency to foam? but it may make foam extension size SO high.
Describe alternatives you've considered
I think, evaluating
ddfor locale, seems easy in Javascript, via adjusting 7 tokens using switch-case or Map. Put this related information as js note template's comment, another user may not upload this kind of issue.