Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter4 Language Localization
#1

I am creating a CI4 app with standalone modules. I want a scenario where a module is independent from another module and it can have its own resources as outlined in the structure below

MyModule
      |
      |--controllers
           |-module_controller.php
      |--models

           |-module_model.php
      |--configs

           |-module_configs.php
      |--libraries

           |-module_libraries.php
      |--views

           |-view_1.php

           |-view_2.php
           |-view_3.php

      |--lang
           |-en-US
             |-userprofile.php


or you can see the attachment which shows the directory structure of the module

I know with CI4 the default language files will be in the directory "Language/en-US/userprofile.php".
My question is, "How do I get the system to work with custom path for language files". In the scenario above, my language files will reside in a module directory as "MyModule/lang/en-US/userprofile.php" .

Thank you in advance
Reply


Messages In This Thread
CodeIgniter4 Language Localization - by code_writer - 11-04-2019, 03:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB