Separate locale templates

Much like the feature that allows you to display separate templates for different devices, OFW has a feature to automatically show the proper templates based on the currently set locale.

All you need to do is to name your templates according to the naming convention: template_name.en_US.html. When a template is displayed, OFW will check to see if there is a locale version available. If so, it will display the locale version. In all other cases it will instead display the default template_name.html.

Important! Currently the {% extends %} tag will not expand based on locale. You need to explicitly set the path in extends! On the other hand, {% insert %} will work as expected based on the above description.

Outlast Web & Mobile Development (c) 2022 | Privacy Policy |