you could just echo the I18n.locale variable here instead of repeating the entire line. in rails symbols like :ar are printed as ar if you placed them in a <%= %> block