Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
finish lang helper
Browse files Browse the repository at this point in the history
  • Loading branch information
spookybear0 committed Oct 6, 2020
1 parent ed0889f commit 9f84206
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 2 additions & 3 deletions handlers/lang.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
import os

class Lang:
def __init__(self):
def __init__(self, lang):
for f in os.listdir("lang"):
if f.endswith(".json"):
if f == lang + ".json":
lang = json.load(open("lang/" + f, "r"))
for key, value in lang.items():
setattr(self, key, value)


lang = Lang()
3 changes: 0 additions & 3 deletions lang/en.json

This file was deleted.

0 comments on commit 9f84206

Please sign in to comment.