Skip to content

Commit

Permalink
Explicitly redefine FLUENT_PATHS, to avoid pain later
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejalim committed May 3, 2022
1 parent bbe665e commit 6cddf6f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions bedrock/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,15 @@
"nav",
"footer",
]

# Swap the default FLUENT_LOCAL_PATH for a Pocket-specific one
FLUENT_PATHS.pop(FLUENT_PATHS.index(FLUENT_LOCAL_PATH))
# Redefine the FLUENT_LOCAL_PATH for a Pocket-specific one and
# ensure it is the first one we check, because order matters.
FLUENT_LOCAL_PATH = ROOT_PATH / "l10n-pocket"
FLUENT_PATHS.insert(0, FLUENT_LOCAL_PATH)
FLUENT_PATHS = [
# local FTL files
FLUENT_LOCAL_PATH,
# remote FTL files from l10n team
FLUENT_REPO_PATH,
]

else:
ROOT_URLCONF = "bedrock.urls.mozorg_mode"
Expand Down

0 comments on commit 6cddf6f

Please sign in to comment.