从多语言文件中返回给定翻译键的已翻译文本字符串。
key | t() returns [string]
key | t()
key string: 多语言文件中的翻译键。
key
string
...props any: 用于替换多语言文本中的动态占位符。
...props
any
{{ "products.general.sold_out" | t() }}{{ "products.product_details.inventory_low_stock_show_count" | t(quantity=10) }}