We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I work on a select component I want to $t return different array depends on the lang I set. Like,
select
locales : { zh : { userTypes : ['普通用户', '管理员', '访客'] }, en : { userTypes : ['user', 'admin', 'visitor'] } }
Right now, it only returns string.
string
My work around is directly return the val when args is [] In translate function(),
val
[]
translate function()
return ( args && args != 0 )? format(val, args) : val
The text was updated successfully, but these errors were encountered:
Please make sure that when this is implemented, you don't break new String('My string'): Check Array.isArray(), not typeof :)
new String('My string')
Array.isArray()
typeof
Sorry, something went wrong.
35c268a
No branches or pull requests
When I work on a
select
component I want to $t return different array depends on the lang I set.Like,
Right now, it only returns
string
.My work around is directly return the
val
when args is[]
In
translate function()
,The text was updated successfully, but these errors were encountered: