-
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update parser to support multiple fallback keys (#251)
* Remove deprecated and incompatible `acorn-dynamic-import` Signed-off-by: Scott González <scott.gonzalez@gmail.com> * Properly escape function name regex Signed-off-by: Scott González <scott.gonzalez@gmail.com> * Support fallback keys Signed-off-by: Scott González <scott.gonzalez@gmail.com> * test: update test fixtures --------- Signed-off-by: Scott González <scott.gonzalez@gmail.com> Co-authored-by: cheton <cheton@gmail.com>
- Loading branch information
1 parent
108d443
commit 9f9d300
Showing
5 changed files
with
105 additions
and
59 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
i18next.t(['error.404', 'error.unspecific']); | ||
|
||
const err_500 = 500; | ||
i18next.t([`error.${err_500}`, 'error.unspecific']); |
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