You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -123,6 +127,24 @@ Lassi is simplest way to pick media (either image, video, audio or doc)
123
127
}
124
128
}
125
129
```
130
+
131
+
*Option-1. To set language's text programmatically based on the current language set on the device follow below mentioned approach of setting strings in your desired language.
132
+
* getMultiLngBuilder() exposes params which you can use to set texts.
133
+
* By default english (en) language is set so no need to follow this step.
134
+
```kotlin
135
+
val currentLang = Locale.getDefault().language.toString()
136
+
if (currentLang == "es") {
137
+
lassi.getMultiLngBuilder(
138
+
setOkLbl = "d'accord",
139
+
setCancelLbl = "Annuler",
140
+
setSortAscendingLbl = "Ascendant",
141
+
setSortDescendingLbl = "Descendant",
142
+
setSortByDateLbl = "Trier par date"
143
+
)
144
+
}
145
+
```
146
+
* Option - 2. To localize text content of Lassi picker with multiple language options, define language-specific string resource file in your project and update values of string resource keys mentioned in below link with your desired language.
If Android device SDK is >= 30 and wants to access document (only for choose the non media file) then add ```android.permission.MANAGE_EXTERNAL_STORAGE``` permission in your app otherwise library won't allow to access documents. Kindly check sample app for more detail.
0 commit comments