@@ -64,9 +64,13 @@ document.addEventListener('DOMContentLoaded', function () {
64
64
locales [ langcode ] = { langcode, nativeName } ;
65
65
} ) ;
66
66
67
- Object . entries ( template . translations ) . forEach (
67
+ const template_translations = {
68
+ ...template . translations ,
69
+ 'default' : template . default
70
+ }
71
+
72
+ Object . entries ( template_translations ) . forEach (
68
73
( [ langcode , translation ] ) => {
69
- console . log ( langcode , translation ) ;
70
74
const schema_resource = consolidate (
71
75
translation . schema . slots ,
72
76
( acc , [ slot_symbol , { name } ] ) => ( {
@@ -89,15 +93,15 @@ document.addEventListener('DOMContentLoaded', function () {
89
93
) ;
90
94
/* eslint-enable */
91
95
const translated_sections = consolidate (
92
- translation . schema . classes [ template . default . schema . name ] . slot_usage ,
96
+ translation . schema . classes [ template . default . schema . name . replace ( '_' , ' ' ) ] . slot_usage ,
93
97
( acc , [ translation_slot_name , { slot_group } ] ) => ( {
94
98
...acc ,
95
99
[ translation_slot_name ] : slot_group ,
96
100
} )
97
101
) ;
98
102
99
103
const default_sections = consolidate (
100
- template . default . schema . classes [ template . default . schema . name ]
104
+ template . default . schema . classes [ template . default . schema . name . replace ( '_' , ' ' ) ]
101
105
. slot_usage ,
102
106
( acc , [ default_slot_name , { slot_group } ] ) => ( {
103
107
...acc ,
@@ -122,6 +126,7 @@ document.addEventListener('DOMContentLoaded', function () {
122
126
}
123
127
) ;
124
128
129
+
125
130
return locales ;
126
131
} ,
127
132
getSchema : async ( schema ) => {
0 commit comments