-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
default-ftl-file
argument to set default ftl file name (#8)
* Add `default-ftl-file` * Remove default from field `path` of `FluentKey`
- Loading branch information
Showing
17 changed files
with
242 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
from __future__ import annotations | ||
|
||
from typing import Literal | ||
from pathlib import Path | ||
from typing import TYPE_CHECKING | ||
|
||
I18N_LITERAL: Literal["i18n"] = "i18n" | ||
GET_LITERAL: Literal["get"] = "get" | ||
PATH_LITERAL: Literal["_path"] = "_path" | ||
IGNORE_ATTRIBUTES: frozenset[str] = frozenset( | ||
{"set_locale", "use_locale", "use_context", "set_context"} | ||
if TYPE_CHECKING: | ||
from typing import Final, Literal | ||
|
||
|
||
I18N_LITERAL: Final[Literal["i18n"]] = "i18n" | ||
GET_LITERAL: Final[Literal["get"]] = "get" | ||
PATH_LITERAL: Final[Literal["_path"]] = "_path" | ||
IGNORE_ATTRIBUTES: Final[frozenset[str]] = frozenset( | ||
{"set_locale", "use_locale", "use_context", "set_context"}, | ||
) | ||
DEFAULT_FTL_FILE: Final[Path] = Path("_default.ftl") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.