我使用Rails i18n 来本地化我的网站。
在翻译的yml文件中,我看到:
在翻译的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)。
感叹号代表什么意思?如果去掉感叹号,有什么不同?
谢谢
*my_anchor
。然后,如果您想要对该值进行修改或更新,只需更新原始定义即可,所有引用该值的地方都将自动更新。 - Stefan