File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ function removeIndexTs(files: string[]): string[] {
4040}
4141
4242function removeTsSuffix ( files : string [ ] ) : string [ ] {
43- return files . map ( ( f ) => f . replace ( '.ts' , '' ) ) ;
43+ return files . map ( ( file ) => file . replace ( '.ts' , '' ) ) ;
4444}
4545
4646function escapeImport ( module : string ) : string {
@@ -177,8 +177,8 @@ for (const locale of locales) {
177177 for ( const module of modules ) {
178178 // src/locales/<locale>/<module>/index.ts
179179 const pathModule = resolve ( pathModules , module ) ;
180- const def : string [ ] = DEFINITIONS [ module ] ;
181- if ( typeof def === 'undefined' ) {
180+ const moduleFiles : string [ ] = DEFINITIONS [ module ] ;
181+ if ( typeof moduleFiles === 'undefined' ) {
182182 continue ;
183183 }
184184 generateLocalesIndexFile (
@@ -189,7 +189,7 @@ for (const locale of locales) {
189189 ) } Definitions`,
190190 2 ,
191191 '' ,
192- def
192+ moduleFiles
193193 ) ;
194194 }
195195}
You can’t perform that action at this time.
0 commit comments