Skip to content

Commit

Permalink
chore: method naming
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Feb 12, 2022
1 parent ab4bd47 commit 25aa9c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/generateLocales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function generateLocaleFile(locale: string) {
writeFileSync(resolve(pathLocale, locale + '.ts'), content);
}

function tryLoadLocalesIndexFile(pathModules: string): LocaleDefinition {
function tryLoadLocalesMainIndexFile(pathModules: string): LocaleDefinition {
let localeDef: LocaleDefinition;
// This call might fail, if the module setup is broken.
// Unfortunately, we try to fix it with this script
Expand Down Expand Up @@ -175,7 +175,7 @@ let localizationLocales = '| Locale | Name |\n| :--- | :--- |\n';
for (const locale of locales) {
const pathModules = resolve(pathLocales, locale);

const localeDef = tryLoadLocalesIndexFile(pathModules);
const localeDef = tryLoadLocalesMainIndexFile(pathModules);
// We use a fallback here to at least generate a working file.
const localeTitle = localeDef?.title ?? `TODO: Insert Title for ${locale}`;
const localeSeparator = localeDef?.separator;
Expand Down

0 comments on commit 25aa9c7

Please sign in to comment.