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
/Users/user/.nvm/versions/node/v18.12.1/lib/node_modules/locize-cli/node_modules/async/dist/async.js:324
if (fn === null) throw new Error("Callback was already called.");
^
Error: Callback was already called.
at /Users/user/.nvm/versions/node/v18.12.1/lib/node_modules/locize-cli/node_modules/async/dist/async.js:324:36
at /Users/user/.nvm/versions/node/v18.12.1/lib/node_modules/locize-cli/node_modules/async/dist/async.js:248:17
at /Users/user/.nvm/versions/node/v18.12.1/lib/node_modules/locize-cli/parseLocalLanguage.js:151:11
at FSReqCallback.oncomplete (node:fs:208:5)
🐛 Bug Report
locize sync
crashes withError: Callback was already called.
when using theandroid
format and there are multiple<plurals>...</plurals>
blocks.To Reproduce
Given a directory with the following structure:
where
strings.xml
contains the following:Run the following:
locize sync --project-id {omitted} --api-key {omitted} --format android --dry=true
This results in:
Expected behavior
If the contents of
strings.xml
are replaced with:The output of
locize sync --project-id {omitted} --api-key {omitted} --format android --dry=true
is:I expect the sync work in the same manner, even if there are multiple
plurals
-blocks instrings.xml
.Your Environment
The text was updated successfully, but these errors were encountered: