Handle date localization #992
Replies: 4 comments 4 replies
-
Will be part of the upcoming SDK for metaframeworks like SvelteKit, NextJS, etc. #395. |
Beta Was this translation helpful? Give feedback.
-
@jonator what would you expect inlang to do here? |
Beta Was this translation helpful? Give feedback.
-
If a repo is using day.js (or similar), generate date formatters per language (like how to localize “2 day”, or “a year” or “Wednesday”, etc.)
Then, we can simply use day.js without having to think about localization.
… On Jul 11, 2023, at 7:18 AM, Hofer Ivan ***@***.***> wrote:
@jonator <https://github.com/jonator> what would you expect inlang to do here?
This is not completely clear to me.
—
Reply to this email directly, view it on GitHub <#992 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABDETJN2DOL2UU755AYX4VDXPUZBPANCNFSM6AAAAAAZRYYYYE>.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
Hi guys and thanks for the amazing library! |
Beta Was this translation helpful? Give feedback.
-
We use dayjs for displaying human-readable dates to users. It has a configuration option for rendering localized dates.
See this for Taiwanese Mandarin on Osmosis frontend.
It would be great if Inlang can detect the date library and use a plugin based system to handle this as well. I'd bet that files (like that linked above) would be constant across projects.
See their docs on i18n:
https://day.js.org/docs/en/i18n/i18n
Beta Was this translation helpful? Give feedback.
All reactions