Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

Array is not supported. #59

Description

@Wanderxx

When I work on a select component I want to $t return different array depends on the lang I set.
Like,

locales : {
  zh : {
    userTypes : ['普通用户', '管理员', '访客']
  },
  en : {
    userTypes : ['user', 'admin', 'visitor']
  }
}

Right now, it only returns string.

My work around is directly return the val when args is []
In translate function(),

return ( args && args != 0 )? format(val, args) : val

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions