2017-06-05 19 views
0

當我啓動服務器時,我得到這個錯誤:<精極度緊張::語法錯誤:沒有找到預期關鍵在解析塊映射

I18n::InvalidLocaleData 
can not load translations from /Users/Apple/myapp-website-freelance/config/locales/fr.yml: #<Psych::SyntaxError: (/Users/Apple/myapp-website-freelance/config/locales/fr.yml): did not find expected key while parsing a block mapping at line 2 column 3> 

雖然YAML的文件似乎在行2列3正常:

fr: 
    Electronics_Circuits_Simulator_Realistic_Interface: "Simulateur de circuits electroniques. Interface reelle." 

任何想法?

回答

0

這個錯誤往往是誤導性的,並指出了錯誤的線路輸出

尋找在整個YML文件多餘的空格,並嘗試以取代「」,它應該工作所有封閉的單引號!

相關問題