Skip to content

Commit

Permalink
fix(translation): useless warning about unsupported current language (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeejoee authored May 16, 2020
1 parent 926603e commit ad551c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export function getMsg (path: string, args?, lang: null | string = null): string
let currentLang = lang || getCurrentLang()

if (!dictionary[currentLang]) {
currentLang = defaultLanguage

ConsoleLogger.warn(`The current language "${currentLang}" is not yet available. Using language "${defaultLanguage}" by default. Contribution to github is welcome.`)

currentLang = defaultLanguage
}

const dictionaryByLang = dictionary[currentLang]
Expand Down

0 comments on commit ad551c1

Please sign in to comment.