Skip to content

Commit 7e60d50

Browse files
committed
chore: remove abbreviations from code
1 parent 6837a68 commit 7e60d50

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/generateLocales.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function removeIndexTs(files: string[]): string[] {
4040
}
4141

4242
function removeTsSuffix(files: string[]): string[] {
43-
return files.map((f) => f.replace('.ts', ''));
43+
return files.map((file) => file.replace('.ts', ''));
4444
}
4545

4646
function 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
}

0 commit comments

Comments
 (0)