Skip to content

Commit

Permalink
Merge pull request #629 from cozy/less-logs
Browse files Browse the repository at this point in the history
feat: Logs appearing every time and not really helpful
  • Loading branch information
ptbrowne authored Aug 7, 2019
2 parents 365b948 + 5945218 commit a9efc9a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/lib/middlewares/appsI18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const extendI18nWithApp = lang => app => {

const hasLangs = langs && langs.length
if (!hasLangs) {
console.warn && console.warn(`App ${app.name} does not specify any lang`)
// TODO The app does not provide langs, we should probably warn the developer
// when the app is published on the registry.
return app
}

Expand All @@ -18,10 +19,8 @@ const extendI18nWithApp = lang => app => {
localeKeys && localeKeys.length && localeKeys.includes(currentLang)

if (!providesLocales) {
console.warn &&
console.warn(
`App ${app.name} does not specify any locale for lang ${currentLang}`
)
// TODO The app does not provide locales, we should probably warn the developer
// when the app is published on the regisry.
return app
}

Expand Down

0 comments on commit a9efc9a

Please sign in to comment.