我正在使用 Rails i18n 本地化我的网站。
在翻译 yml 文件中,我看到
time:
am: am
formats:
default: ! '%a, %d %b %Y %H:%M:%S %z'
long: ! '%d %B, %Y %H:%M'
short: ! '%d %b %H:%M'
pm: pm
(取自https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/en-GB.yml)
感叹号是什么意思?去掉感叹号有什么不同?
谢谢