Added slug translation for permalinks
Added custom permalinks and added flush to rewrite permalinks