@@ -132,7 +132,7 @@ function tryLoadLocalesMainIndexFile(pathModules: string): LocaleDefinition {
132132 let localeDef : LocaleDefinition ;
133133 // This call might fail, if the module setup is broken.
134134 // Unfortunately, we try to fix it with this script
135- // Thats why have a fallback logic here, we only need the title and separator anyway
135+ // Thats why have a fallback logic here, we only need the title anyway
136136 try {
137137 // eslint-disable-next-line @typescript-eslint/no-var-requires
138138 localeDef = require ( pathModules ) . default ;
@@ -147,7 +147,6 @@ function tryLoadLocalesMainIndexFile(pathModules: string): LocaleDefinition {
147147 ) ;
148148 localeDef = {
149149 title : localeIndex . match ( / t i t l e : ' ( .* ) ' , / ) [ 1 ] ,
150- separator : localeIndex . match ( / s e p a r a t o r : ' ( .* ) ' , / ) ?. [ 1 ] ,
151150 } ;
152151 } catch {
153152 console . error ( `Failed to load ${ pathModules } or manually parse it.` , e ) ;
@@ -287,7 +286,6 @@ for (const locale of locales) {
287286 const localeDef = tryLoadLocalesMainIndexFile ( pathModules ) ;
288287 // We use a fallback here to at least generate a working file.
289288 const localeTitle = localeDef ?. title ?? `TODO: Insert Title for ${ locale } ` ;
290- const localeSeparator = localeDef ?. separator ;
291289
292290 localeIndexImports += `import ${ locale } from './${ locale } ';\n` ;
293291 localeIndexType += ` | '${ locale } '\n` ;
@@ -298,14 +296,12 @@ for (const locale of locales) {
298296 generateLocaleFile ( locale ) ;
299297
300298 // src/locales/**/index.ts
301- const separator = localeSeparator ? `\nseparator: '${ localeSeparator } ',` : '' ;
302-
303299 generateRecursiveModuleIndexes (
304300 pathModules ,
305301 locale ,
306302 'LocaleDefinition' ,
307303 1 ,
308- `title: '${ localeTitle } ',${ separator } `
304+ `title: '${ localeTitle } ',`
309305 ) ;
310306}
311307
0 commit comments