1

在我的 laravel 5.6 / vue.js 2.5.7/ @kazupon/vue-i18n-loader": "^0.3.0" 应用程序中,我将标签设置为

'selected_active_users' => '从 {active_users_selection_length} 个活跃用户中选择 {selected_active_users_count} 个用户',

在 vue 中我试着写

{{ $tc('event.selected_active_users', selected_active_users_count, { selected_active_users_count: selected_active_users_count, active_users_selection_length :
    activeUsersSelectionArray.length }) }}

我得到的字符串为

Selected 3 user(s) from 5 active user(s)

这很好,但我想根据条件中的 active_users_selection_length 来激活用户/活动用户。很清楚如何在 1 个条件/字符串中使用它,但我未能在组合字符串中使用它。是否有可能,如果是,那是语法吗?

谢谢!

4

0 回答 0