Skip to content

Commit

Permalink
Better variable name (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHoste committed Dec 7, 2021
1 parent ff0ef2d commit 19a64a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cli/src/lingui-extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ export default async function command(

// If service key is present in configuration, synchronize with cloud translation platform
if (typeof config.service === 'object' && config.service.name && config.service.name.length) {
const serviceName = config.service.name.charAt(0).toLowerCase() + config.service.name.slice(1);
const moduleName = config.service.name.charAt(0).toLowerCase() + config.service.name.slice(1);

import(`./services/${serviceName}`)
import(`./services/${moduleName}`)
.then(module => module.default(config, options))
.catch(err => console.error(`Can't load service module ${serviceName}`, err))
.catch(err => console.error(`Can't load service module ${moduleName}`, err))
}

return true
Expand Down

0 comments on commit 19a64a1

Please sign in to comment.