Mat*_*ski 3 ruby yaml ruby-on-rails internationalization
我有一个奇怪的问题。我有如下所示的 en.yml 文件:
en:
no_notifiaction: No Notification
active_notification: Active notification
t('.active_notification') == "Active notification" #false
I18n.t('.active_notification') == "Active notification" #true?
Run Code Online (Sandbox Code Playgroud)
这是为什么?