Adding dialect factory, dialects and templates