please don't use this way when using locale, instead add your two statements in the two languages in ar.yml and en.yml and use "#{I18n.t(:name_of_statement_in_.yml_files)}" . Please do that for the rest of the code