0

로케일을 사용하여 스페인어로 텍스트를 표시하려하지만 기본적으로 영어가 계속 사용됩니다. 내 코드 :default_locale을 사용할 때 "translation_missing"

# config/application.rb 
config.i18n.default_locale = :es 

# config/locales/es.yml 
es: 
    sections: 
    fashion: Moda 

# haml template 
= t("sections.fashion") 

보기에서 다음 html을 생성 중입니다. <span class="translation_missing" title="translation missing: en.sections.fashion">Fashion</span>. 내가 놓친 게 있니? 사전에
덕분에 보석을 설치

답변