Stefan Nenzén stne3960
  • Joined on 2023-01-12
stne3960 commented on pull request DMC/studentportalen#5 2025-04-09 12:57:54 +02:00
Add i18n support

I agree that we should interate over navigator.languages instead.

Regarding defaulting to english if no language is found, very good question. We are Swedish public agency, most outward…

stne3960 commented on pull request DMC/studentportalen#5 2025-04-09 12:48:42 +02:00
Add i18n support

One thing I'm also wondering about is moving the i18n stuff to App.tsx instead of main.tsx. In my mind the App component is responsible for loading all the context required for the application…

stne3960 commented on pull request DMC/studentportalen#5 2025-04-09 12:31:57 +02:00
Add i18n support

Otherwise you get the warning Unused eslint-disable directive (no problems were reported) when runnning npm run lint

stne3960 created pull request DMC/studentportalen#5 2025-04-09 11:56:01 +02:00
Add i18n support
stne3960 deleted branch basic-scaffolding-frontend-i18n from DMC/studentportalen 2025-04-09 11:53:57 +02:00
stne3960 created branch basic-scaffolding-frontend-lingui in DMC/studentportalen 2025-04-09 11:53:16 +02:00
stne3960 pushed to basic-scaffolding-frontend-lingui at DMC/studentportalen 2025-04-09 11:53:16 +02:00
5abe0484e3 Add translations
0db875210c Set language from profile and translate strings
4323a9d5cf Add i18nprovider and default locale
d59c775e07 Add i18n utils
46c509d56d Add lingui configurations
Compare 5 commits »
stne3960 created branch basic-scaffolding-frontend-i18n in DMC/studentportalen 2025-04-09 11:18:43 +02:00
stne3960 pushed to basic-scaffolding-frontend-i18n at DMC/studentportalen 2025-04-09 11:18:43 +02:00
3306ff33ad Add translations
d976a0aaae Set language from profile and translate strings
26593c723d Add i18nprovider and default locale
8af692067d Add i18n utils
c666b87498 Add lingui configurations
Compare 5 commits »
stne3960 created branch basic-scaffolding-frontend-restructure in DMC/studentportalen 2025-04-04 14:55:49 +02:00
stne3960 pushed to basic-scaffolding-frontend-restructure at DMC/studentportalen 2025-04-04 14:55:49 +02:00
c1480b6c57 delegate auth and profile handling to AuthProvider and context
207c5b6dff add withViewTransition utility
f074d751cc AuthProvider for managing authentication and profile state
b9fccd0bd6 AuthContext and useAuth hook
Compare 4 commits »
stne3960 approved DMC/studentportalen#1 2025-03-30 18:58:00 +02:00
Basic scaffolding for the backend-for-frontend component

Works well, a good starting point 👍

stne3960 created pull request DMC/play-daemon-threaded#3 2024-03-27 14:51:37 +01:00
VisibilityHandler
stne3960 created branch visibility in DMC/play-daemon-threaded 2024-03-27 14:50:20 +01:00
stne3960 pushed to visibility at DMC/play-daemon-threaded 2024-03-27 14:50:20 +01:00
a258fdf523 Create test, fix package
919914ce58 Add documentation
83b59fffec Ruff --fix
540a649967 Add visibility handler
Compare 4 commits »