A CI spark making auto-detecting the proper language to serve easy.
#codeigniter-language A CI spark making auto-detecting the proper language to serve easy.
##Default auto detection flow
- Check the lang code in the subdomain. It's the master rule.
- Check the lang code in the first segment in URI.
- If no lang code is in subdomain or URI check the browser language if available and activated.
- As the last rule, set the lang code to the default one defined in the CI global config file.
If using composer to include this spark, note that composer/installers is used to place the spark within
application/modules so you'll either need to override this location, or change your default spark location.
##Credit Rewrite of the kitlang language spark by Eric@devtime.com