开发者

message properties dynamic key

开发者 https://www.devze.com 2023-03-11 19:22 出处:网络
Is it possible to have dynamic keys (not values) in message properties. Something like: error.required.{0}= This field is required.

Is it possible to have dynamic keys (not values) in message properties. Something like:

error.required.{0}= This field is required.

It might n开发者_开发问答ot be standard approach, but I have scenario where it kind of makes sense for me to do that.

Thanks!


Generally it would be something like:

error.required[{0}] = 'This field is required'

Clarifying which language you're using would help.

0

精彩评论

暂无评论...
验证码 换一张
取 消