Skip to content

Commit

Permalink
refactor: use constant locale instead of hard-coded one in accept lan…
Browse files Browse the repository at this point in the history
…guage header
  • Loading branch information
zobweyt committed Oct 22, 2024
1 parent 68fada6 commit 86b0c7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/i18n/deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

from fastapi import Depends, Header

from src.i18n import DEFAULT_ISO_639

def get_accept_language(accept_language: str = Header("en")) -> str:

def get_accept_language(accept_language: str = Header(DEFAULT_ISO_639)) -> str:
return accept_language


Expand Down

0 comments on commit 86b0c7f

Please sign in to comment.