cboard-org / cboard-ai-builder

The Cboard AI Builder is an augmentative and alternative communication (AAC) board generator designed to streamline the creation process for speech therapists or caregivers. It aims to reduce the time required to create specific AAC boards and provide a preliminary draft quickly.
https://cboard.io
GNU General Public License v3.0
6 stars 1 forks source link

Moving translation to fix production runtime #115

Closed maxicapodacqua closed 3 months ago

maxicapodacqua commented 3 months ago

Dev Notes

I don't have an obvious reason on why this bug is happening only in production mode (yarn start) besides thinking that this could be a behavior of NextIntl when injected directly from a client page. I noticed that the useMessage hook can be used in a server component but the zustand state hook cannot, so in order to keep things to look like the other pages we built, I separated the server component importing the intl messages from the client component that calls the store.

Steps for testing

  1. yarn install
  2. yarn build
  3. yarn start
  4. Manually test if the app works as expected You can also run the docker container image by following the steps from the wiki page

Closes https://github.com/cboard-org/cboard-ai-builder/issues/113