Formatting dates with i18n #2404
artsiom-voitas
started this conversation in
Feature Request
Replies: 2 comments 2 replies
-
agreed, can go with a setting option too for configuring the format. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Just to chime in here.
localization functions. To be exact
Those functions should offer everything you need without the need to pull in another library |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, Spacedrive formats dates, for example on (spacedrive\interface\app$libraryId\Explorer\Inspector\index.tsx):
<MetaData icon={Eraser} label={t('modified')} value={formatDate(dateModified)} />
using JavaScript capabilities, which makes it impossible to have date mapping in different languages. It is worth considering using the i18n functions provided in the documentation
Beta Was this translation helpful? Give feedback.
All reactions