-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement FluentLanguageLoader::get_lang(...) methods (#84)
Close #59 Implement FluentLanguageLoader::get_lang(...) methods This adds the following methods: - get_lang - get_lang_args - get_lang_args_concrete - get_lang_args_fluent Those methods work exactly like their non-lang counterparts but add a lang argument that can be used to specify a list of language codes without needing to change the global current language setting.
- Loading branch information
1 parent
ae222f3
commit aa84e6c
Showing
4 changed files
with
210 additions
and
63 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
hello-world = Hello World Localisation! | ||
only-gb = only GB | ||
different-args = this message has {$different} {$args} in different languages | ||
only-gb-args = Hello {$userName}! | ||
different-args = this message has {$different} {$args} in different languages |
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