Welcome Guest, Not a member yet? Register   Sign In
Language strings support in localization
#2

You are not required to always put your translations in a language file. You can do it directly:
PHP Code:
lang('The {0} is {1}.', ['fox''here]); // echoes "The fox is here." 

For the
Code:
__()
alias, you can do that in your own implementation. But if you want others to make use of it, you can submit a PR in the github repo.
Reply


Messages In This Thread
RE: Language strings support in localization - by paulbalandan - 12-16-2020, 06:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB