handling time and date differences between different locales #289
Replies: 1 comment 3 replies
-
Datetime formatting is part of an i18n library (see i18n-next), or a programming language itself. JavaScript, for example, has the Intl object that provides what you seemed to have built yourself. The Intl object takes care of formatting and contains the translations themselves. See the example below In the future, inlang will most likely provide i18n libraries and deep integrations with frameworks like Next.js to take care of everything for you under the hood. Did I answer your question? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://github.com/osmosis-labs/osmosis-frontend/blob/b4f3655a506f3a884a9c7cb7943d425466ae3b95/packages/web/localizations/dayjs-locale-ar.js
In the Osmosis frontend, we use locale files per language to define how dates/times are displayed. How will Inlang handle this? Could they be provided by Inlang for common libs, like our dayjs?
Beta Was this translation helpful? Give feedback.
All reactions