Skip to content

Commit

Permalink
add -1
Browse files Browse the repository at this point in the history
  • Loading branch information
amerharb committed May 25, 2024
1 parent f8bb20c commit 8f6d9b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webapp/src/utils/adapters/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ export function groupByFilename(
if (!output[lang][sourceFile]) {
output[lang][sourceFile] = {};
}
const msgIdArray = msgId.split('.').splice(sourceFile.split('/').length);
const msgIdArray = msgId
.split('.')
.splice(sourceFile.split('/').length - 1);
const shortId = msgIdArray.join('.');
output[lang][sourceFile][shortId] = text;
});
Expand Down

0 comments on commit 8f6d9b0

Please sign in to comment.