refactor(hierarchy): change first_run and locales path
Put first_run and locales dirs to extras
This commit is contained in:
parent
a3edb16528
commit
6605115941
21 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ try:
|
|||
import config
|
||||
from cogs.utils.lang import Texts
|
||||
except ModuleNotFoundError:
|
||||
import first_run
|
||||
import extras.first_run
|
||||
|
||||
|
||||
@contextlib.contextmanager
|
||||
|
|
Loading…
Reference in a new issue