Replies: 4 comments 7 replies
-
Can you try upgrading to v5 and share a reproduction? |
Beta Was this translation helpful? Give feedback.
-
@shaharkazaz
|
Beta Was this translation helpful? Give feedback.
-
One more thing: I created a fresh project, then run: ng add @ngneat/transloco |
Beta Was this translation helpful? Give feedback.
-
I reset and work fine in prod. Whenever accessing the link https://xxx.com/vi/_feature_name, the server always returns the html file with default English. https://xxx.com/vi/_feature_name : html content is vietnames language |
Beta Was this translation helpful? Give feedback.
-
My version:
Angular: 16.1.3
Transloco: 4.2.2
Nodejs:18.17
@nguniversal/express-engine: 16.1.1
In dev environment, it works (but have one issue, but i will ask late).
But in prod environment, it seems don't work.
I open dev tool of browser, open network tab, find html file and see:
< div> _ngcontent-ng-c355592718 class="guide-content">**[Nothing here] **< / div>
I think if working find, so content translated send with html file in network tab.
I checked logs then see:
ERROR Error: When using the default fallback, a fallback language must be provided in the config!
at DefaultFallbackStrategy2.getNextLangs (C:\inetpub\WebTool\main.js:1:2814670)
at TranslocoService2.handleFailure (C:\inetpub\WebTool\main.js:1:2825636)
at C:\inetpub\WebTool\main.js:1:2819339
at C:\inetpub\WebTool\main.js:1:827504
at OperatorSubscriber2._this._error (C:\inetpub\WebTool\main.js:1:816145)
at Subscriber2.error (C:\inetpub\WebTool\main.js:1:769725)
at C:\inetpub\WebTool\main.js:1:894838
at OperatorSubscriber2._this._error (C:\inetpub\WebTool\main.js:1:816145)
at Subscriber2.error (C:\inetpub\WebTool\main.js:1:769725)
at C:\inetpub\WebTool\main.js:1:875844
Is there a version problem? Or where am I going wrong?
Beta Was this translation helpful? Give feedback.
All reactions