This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I use the translate plugin in my default.htm layout file with the component name 'localePicker' This is the code i use
<!DOCTYPE html>
<html lang="{% localePicker.activeLocale %}">
... rest of the code ...
Sometimes when the page loads it throws a stack exception page as Unknown tagname 'localePicker' and other times it loads perfectly fine. I have a feeling that this is because the CMS loads asynchronously and sometimes this component doesn't get initialised and hence the error. I have removed the lang tag for now but would like to see this bug resolved. Kindly take a look and follow up on what could be done to fix this.
Are you sure you dont need to use this?
<!DOCTYPE html>
<html lang="{{ activeLocale }}">
... rest of the code ...
I dont use the translate plugin myself so it is a guess. If you dont get it working with this, try posting in the forum belonging to the plugin itself.
1-3 of 3