Skip to content

Commit

Permalink
Removing the unnecessary en-US.json
Browse files Browse the repository at this point in the history
  • Loading branch information
tadeubas committed Aug 29, 2023
1 parent 58c5d00 commit 680b96a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 485 deletions.
242 changes: 0 additions & 242 deletions i18n/translations/en-US.json

This file was deleted.

5 changes: 4 additions & 1 deletion src/krux/krux_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ class I18nSettings(SettingsNamespace):
"""I18n-specific settings"""

namespace = "settings.i18n"
locale = CategorySetting("locale", "en-US", list(translation_table.keys()))
DEFAULT_LOCALE = "en-US"
locale = CategorySetting(
"locale", DEFAULT_LOCALE, list(translation_table.keys()) + [DEFAULT_LOCALE]
)

def label(self, attr):
"""Returns a label for UI when given a setting name or namespace"""
Expand Down
Loading

0 comments on commit 680b96a

Please sign in to comment.