翻譯字符串前面顯示翻譯名字在我的區域文件中,有如下翻譯:Rails的翻譯在瀏覽器
de:
activerecord:
errors:
models:
user:
attributes:
email:
taken: "Die E-Mail Adresse wird bereits benutzt."
當我在瀏覽器中打開所需的頁面,錯誤信息如下所示:
Email Die E-Mail Adresse wird bereits benutzt.
那麼有人知道爲什麼在翻譯的字符串前有另一個「電子郵件」?
你可以顯示你在視圖上使用什麼?這將有助於瞭解發生了什麼。 – fjuan
對不起,我忘了告訴:這是設計問題,我認爲。 – LeMark88
'= form_for(resource,as:resource_name,url:registration_path(resource_name))do | f | = devise_error_messages!' – LeMark88