Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
locale: pl在我parameters.yml但我的验证消息是英文而不是波兰语,我也尝试过locale: pl_PL,但这也不起作用每次我清除缓存
locale: pl
parameters.yml
locale: pl_PL
您必须取消注释 config.yml 中框架组件的翻译服务才能激活翻译,对于其他 symfony 组件也是如此。更改 parameters.yml 中的参数是不够的。
framework: translator: { fallback: %locale% }
看看官方文档。