Hello,
I’m using crowdin/cli
in my Vue 3 project. For website internationalization, we’re using vue-i18n
, which has a specific format for handling plurals. To make everything work correctly, we’re using a Custom Bundle Generator with the following code.
It was working fine until recently, but now we’re encountering an error when trying to download the bundle.
Could you please help us resolve this issue?
P.S. The “Save code” button in the popup is not visible
let result = {};
strings.map(s => {
if (s.hasPlurals) {
result[s.identifier] = Object.values(s.translations[languageId].text).join(' | ');
} else {
result[s.identifier] = s.translations[languageId].text;
}
});
content = JSON.stringify(result);