toystars / react-native-multiple-select

Simple multi-select component for react-native
MIT License
566 stars 315 forks source link

Change language / set lcation #129

Open DimitriMiranda opened 4 years ago

DimitriMiranda commented 4 years ago

Issue summary

There are a way of change the language ? Today is default the sentence "selected" i need translate this sentence to PT-BR "Selecionados"

Library versions

System: OS: Linux 4.15 Ubuntu 18.04.2 LTS (Bionic Beaver) CPU: (4) x64 Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz Memory: 470.66 MB / 11.68 GB Shell: 4.4.19 - /bin/bash Binaries: Node: 8.10.0 - /usr/bin/node Yarn: 1.21.1 - ~/.yarn/bin/yarn npm: 3.5.2 - /usr/bin/npm SDKs: Android SDK: API Levels: 27, 28 Build Tools: 27.0.3, 28.0.3 npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.5 => 0.61.5

michelegoh commented 4 years ago

You can edit this line in the _getSelectLabel function in react-native-multiple-select/lib/react-native-multi-select.js

return `${selectText} (${selectedItems.length} selected)`;

lorenamelor commented 2 years ago

I need to do the same thing. Any solution ?

fajzanetti commented 2 years ago

Could you add a property responsible for modifying this text?