Skip to content

Commit 6370ef2

Browse files
authored
Revert "feat: add i18n support (#115)" (#161)
This reverts commit 779de2d.
1 parent 779de2d commit 6370ef2

File tree

21 files changed

+84
-632
lines changed

21 files changed

+84
-632
lines changed

app/babel_mapping.ini

Lines changed: 0 additions & 3 deletions
This file was deleted.

app/config.py.example

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ MEDIA_DIRECTORY = 'media'
1212
PICTURE_EXTENSION = '.png'
1313
AVATAR_SIZE = (120, 120)
1414

15-
# DEFAULT WEBSITE LANGUAGE
16-
WEBSITE_LANGUAGE = "en"
17-
1815
email_conf = ConnectionConfig(
1916
MAIL_USERNAME=os.getenv("MAIL_USERNAME") or "user",
2017
MAIL_PASSWORD=os.getenv("MAIL_PASSWORD") or "password",

app/database/models.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ class User(Base):
1414
full_name = Column(String)
1515
description = Column(String, default="Happy new user!")
1616
avatar = Column(String, default="profile.png")
17+
1718
is_active = Column(Boolean, default=True)
18-
language_id = Column(Integer, ForeignKey("languages.id"))
1919

2020
events = relationship(
2121
"Event", cascade="all, delete", back_populates="owner")
@@ -32,10 +32,3 @@ class Event(Base):
3232
owner_id = Column(Integer, ForeignKey("users.id"))
3333

3434
owner = relationship("User", back_populates="events")
35-
36-
37-
class Language(Base):
38-
__tablename__ = "languages"
39-
40-
id = Column(Integer, primary_key=True, index=True)
41-
name = Column(String, unique=True, nullable=False)

app/dependencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
from app import config
66

7+
78
APP_PATH = os.path.dirname(os.path.realpath(__file__))
89
MEDIA_PATH = os.path.join(APP_PATH, config.MEDIA_DIRECTORY)
910
STATIC_PATH = os.path.join(APP_PATH, "static")
1011
TEMPLATES_PATH = os.path.join(APP_PATH, "templates")
1112

1213
templates = Jinja2Templates(directory=TEMPLATES_PATH)
13-
templates.env.add_extension('jinja2.ext.i18n')

app/internal/languages.py

Lines changed: 0 additions & 89 deletions
This file was deleted.

app/locales/base.pot

Lines changed: 0 additions & 124 deletions
This file was deleted.

app/locales/en/LC_MESSAGES/base.mo

-443 Bytes
Binary file not shown.

app/locales/en/LC_MESSAGES/base.po

Lines changed: 0 additions & 125 deletions
This file was deleted.

app/locales/he/LC_MESSAGES/base.mo

-557 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)