@crowdin/app-project-module 0.22.2 → 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/package.json
CHANGED