You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Angular bundler is not extendable via Viteconfig (for now) workarounds with the SDK do not work.
But I could offer an workaround without the SDK, by using @ngx-translate/core and writing a own translation loader that fetches the data from the service / static files.
The custom Translation Loader with a http request to the tolgee api.
Angular 17 can utilized Tolgee only on client site.
Alone the import of tolgee within SSR context, results in an error:
11:54:41 [vite] Internal server error: document is not defined
Minimal example here:
https://stackblitz.com/edit/fuck-yeah-angular-ssr-1e3ut7?file=src%2Fapp%2Fapp.config.ts,angular.json
Since Angular bundler is not extendable via Viteconfig (for now) workarounds with the SDK do not work.
But I could offer an workaround without the SDK, by using @ngx-translate/core and writing a own translation loader that fetches the data from the service / static files.
The custom Translation Loader with a http request to the tolgee api.
in the app.config.ts
The text was updated successfully, but these errors were encountered: