refactor(hierarchy): change first_run and locales path

Put first_run and locales dirs to extras
This commit is contained in:
Romain J 2019-09-18 12:30:49 +02:00
parent a3edb16528
commit 6605115941
21 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ import config
class Texts:
def __init__(self, base: str = 'base'):
self.locale = config.locale
self.texts = gettext.translation(base, localedir='locales',
self.texts = gettext.translation(base, localedir='extras/locales',
languages=[self.locale])
self.texts.install()

View file

@ -14,7 +14,7 @@ try:
import config
from cogs.utils.lang import Texts
except ModuleNotFoundError:
import first_run
import extras.first_run
@contextlib.contextmanager