Using Nuxt 3, we're specifying some translation files that are only used in our backend API (server folder) and returned via API.
The problem is that they're also getting included and loaded in the frontend code, even though nothing on our frontend calls these directly. These files can have a LOT of translation strings and become huge with size, so we're trying to make it load only on the server side to prevent our frontend application becoming too resource consuming.
Using Nuxt 3, we're specifying some translation files that are only used in our backend API (server folder) and returned via API. The problem is that they're also getting included and loaded in the frontend code, even though nothing on our frontend calls these directly. These files can have a LOT of translation strings and become huge with size, so we're trying to make it load only on the server side to prevent our frontend application becoming too resource consuming.
Any ideas how to achieve this?