We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I don't see the document about the Languages. I try this method:
$language = service('language', 'en'); $language->load('test');
And I get a error:
Call to protected method CodeIgniter\Language\Language::load()
Any ideals help me to load a language?
Thanks!
The text was updated successfully, but these errors were encountered:
No need to load language. Just: echo lang('Languagefile.Languagekey');
see https://bcit-ci.github.io/CodeIgniter4/libraries/localization.html
Sorry, something went wrong.
Thank ridho1991,
And how I change the value of $defaultLocale and $supportedLocales from my database? I need to change them dynamically.
https://bcit-ci.github.io/CodeIgniter4/libraries/localization.html#specifying-locale
No branches or pull requests
Hi,
I don't see the document about the Languages. I try this method:
And I get a error:
Any ideals help me to load a language?
Thanks!
The text was updated successfully, but these errors were encountered: