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

Commit

Permalink
Create lang.py
Browse files Browse the repository at this point in the history
  • Loading branch information
spookybear0 committed Oct 7, 2020
1 parent 5fc7a57 commit 407763a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions helpers/lang.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import json
import os
from config import user_config

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

0 comments on commit 407763a

Please sign in to comment.