-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix datetime translations #309
base: dev
Are you sure you want to change the base?
Conversation
This commit "add setLocale as needed" has touched a number of files. I made an executive decision to change the format for locales that don't use English ordering of date (month-day-year) -- so check especially Invite and Join request formatted dates, to make sure it doesn't mess up any automation. |
I removed reviews, since translation is probably not a priority. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great! generally looks good. will require lots of testing across front and backend since TextHelper is used in both places
@@ -1,3 +1,5 @@ | |||
import i18n from '../../../apps/web/src/i18n.mjs' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this cant be right. we probably should just move this file to shared? hmm...
@@ -1,3 +1,5 @@ | |||
import i18n from '../../../apps/web/src/i18n.mjs' | |||
import { getLocaleAsString } from '../../../apps/web/src/components/Calendar/calendar-util' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we shouldnt be loading stuff from web in shared, so move this here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the launch, let's re-visit this PR and potential need for re-organization.
I want to create DateTimeHelper functions, there are many repeating patterns and we can change the library more easily if they're centralized.
This fixes some of the translation problems with posts.
Tight review of i18n and TextHelpers, to make sure notifications are okay with the changes.