Commit d000862
Fix SSR error by adding both named and default exports for translations
The server-side rendering was failing because SWC/Webpack needs both the
named export and default export for proper module interoperability.
Changes:
- Restored both exports in translations.js: export { translations } + export default
- Renamed default import to 'translationsData' to avoid ESLint import/no-named-as-default error
- Updated all three files that import translations to use the new name
This fixes the "Cannot read properties of undefined (reading 'en')" error
in server-side rendering.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 53e3945 commit d000862
File tree
4 files changed
+4
-3
lines changed- client/app
- bundles/comments
- components/SimpleCommentScreen/ror_components
- containers
- libs/i18n
4 files changed
+4
-3
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
0 commit comments