This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(service): use the aliased language key if available
Fixes #530
- Loading branch information
Showing
3 changed files
with
54 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"load" : { | ||
"static" : { | ||
"TITLE" : "How to load static files?", | ||
"HEADER" : "The module can lazzy load a translations table when it's needed.", | ||
"SUBHEADER" : "So, you can load only those languages, which will be used.", | ||
"ONLY_EN": "only english", | ||
"EN_RU": "EN and RU - EN Edition" | ||
}, | ||
"predefined" : { | ||
"TITLE" : "How to use lazzy loading without autoupload?", | ||
"HEADER" : "You can predefine a default language while still using a lazzy loading.", | ||
"SUBHEADER" : "This way module will not load a default language from server once more." | ||
}, | ||
"dynamic" : { | ||
"TITLE" : "How to load dynamic files?", | ||
"HEADER" : "The module can lazzy load a translations table from the dynamic page.", | ||
"SUBHEADER" : "It will use the \"lang\" request param passed into GET." | ||
} | ||
} | ||
} |
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
If should be better to return null or undefined in order to know when to fallback to the default language.