Join with empty string to mirror what l10n-dev does (#171125)

This should have been the case all along, but I missed it and probably thought not passing anything joins with empty string.

fixes https://github.com/microsoft/vscode-l10n/issues/77
This commit is contained in:
Tyler James Leonhardt 2023-01-11 17:25:51 -08:00 committed by GitHub
parent 87d1de6a45
commit 6d40104789
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ export class ExtHostLocalizationService implements ExtHostLocalizationShape {
let key = message;
if (comment && comment.length > 0) {
key += `/${Array.isArray(comment) ? comment.join() : comment}`;
key += `/${Array.isArray(comment) ? comment.join('') : comment}`;
}
const str = this.bundleCache.get(extensionId)?.contents[key];
if (!str) {