Skip to content

Commit

Permalink
fix: Cannot set language ​​other than en or ua.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoudev authored and dziraf committed Apr 16, 2022
1 parent de54759 commit 5bd1faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adminjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class AdminJS {

initI18n(): void {
const language = this.options.locale?.language || locales.en.language
const defaultTranslations = locales[language].translations || locales.en.translations
const defaultTranslations = locales[language]?.translations || locales.en.translations
this.locale = {
translations: combineTranslations(defaultTranslations, this.options.locale?.translations),
language,
Expand Down

0 comments on commit 5bd1faf

Please sign in to comment.