Commit cdf4fb9
committed
feat(nuxt-json): add dynamic locale support for Spanish and other languages
- Replace hardcoded ['en', 'tr'] with dynamic locales parameter in getModelContent()
- Pass metadata.locales from getModelData() to properly load all language variants
- Default to ['en', 'tr'] for backward compatibility
- Enables support for es.json and other language files1 parent 2c292da commit cdf4fb9
File tree
1 file changed
+3
-3
lines changed- packages/nuxt-json/src/runtime/server/services
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
0 commit comments