Commit a80ed49f authored by Hiro's avatar Hiro 🏄
Browse files

Assign default locale

parent d43b45af
......@@ -92,7 +92,7 @@ def get_locales():
locales = json.load(f)
return locales
def load_strings(current_locale):
def load_strings(current_locale='en'):
"""
Loads translated strings and fallback to English
if the translation does not exist.
......@@ -112,7 +112,7 @@ def load_strings(current_locale):
strings = {}
for s in translations[current_locale]:
strings[s] = translations[current_locale][s]
def translated(k):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment