Welcome Guest, Not a member yet? Register   Sign In
Best practice for View translations
#1

Hello,
I'm using CI4 and, after reading the documentation, I'm still a bit lost on what the best practice to translate strings in a View is. Right now I created two translation files, one for Italian and one for English. Using the lang method and passing the proper language I can get the right translation. Is there a way to get it straight within my own view instead of having to load each translation file in my controller and then pass it to the view?

Let me know if something is not clear, thank you.  Smile
Reply




Theme © iAndrew 2016 - Forum software by © MyBB