@crowdin/app-project-module 0.22.1 → 0.22.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -443,6 +443,8 @@ configuration.projectIntegration.getConfiguration = (projectId, crowdinClient, i
|
|
|
443
443
|
key: 'option',
|
|
444
444
|
label: 'Select',
|
|
445
445
|
type: 'select',
|
|
446
|
+
isSearchable: true, //allow to search for option(s), default is `false`
|
|
447
|
+
isMulti: true, //allow to select multiple options, default is `false`
|
|
446
448
|
options: [
|
|
447
449
|
{
|
|
448
450
|
value: '12',
|
|
@@ -112,17 +112,17 @@ function handleParseFile(baseUrl, dataFolder, config, req, client, context, proj
|
|
|
112
112
|
return Object.assign(Object.assign({}, string), { translations });
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
|
-
const
|
|
116
|
-
if (Buffer.byteLength(
|
|
115
|
+
const stringsNDJson = strings.map(s => JSON.stringify(s)).join('\n\r');
|
|
116
|
+
if (Buffer.byteLength(stringsNDJson, 'utf8') < maxSize) {
|
|
117
117
|
response.strings = strings;
|
|
118
118
|
}
|
|
119
119
|
else {
|
|
120
120
|
let url;
|
|
121
121
|
if (config.storeFile) {
|
|
122
|
-
url = yield config.storeFile(
|
|
122
|
+
url = yield config.storeFile(stringsNDJson);
|
|
123
123
|
}
|
|
124
124
|
else {
|
|
125
|
-
const storedFile = yield storeFile(
|
|
125
|
+
const storedFile = yield storeFile(stringsNDJson, dataFolder);
|
|
126
126
|
url = `${baseUrl}?file=${storedFile}`;
|
|
127
127
|
}
|
|
128
128
|
response.stringsUrl = url;
|
package/out/models/index.d.ts
CHANGED
|
@@ -231,6 +231,10 @@ export interface ConfigurationField {
|
|
|
231
231
|
* only for select
|
|
232
232
|
*/
|
|
233
233
|
isMulti?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* only for select
|
|
236
|
+
*/
|
|
237
|
+
isSearchable?: boolean;
|
|
234
238
|
/**
|
|
235
239
|
* only for select
|
|
236
240
|
*/
|
|
@@ -363,6 +367,10 @@ export interface FormField {
|
|
|
363
367
|
* only for select
|
|
364
368
|
*/
|
|
365
369
|
isMulti?: boolean;
|
|
370
|
+
/**
|
|
371
|
+
* only for select
|
|
372
|
+
*/
|
|
373
|
+
isSearchable?: boolean;
|
|
366
374
|
/**
|
|
367
375
|
* only for select
|
|
368
376
|
*/
|
package/package.json
CHANGED