src/vs/platform/extensionManagement/common/extensionNls.ts/localizeManifest
export function localizeManifest(manifest: IExtensionManifest, translations: ITranslations): IExtensionManifest {
	const patcher = (value: string): string | undefined => {
		if (typeof value !== 'string') {
			return undefined;
		}

		const match = nlsRegex.exec(value);

		if (!match) {
			return undefined;
		}

		const translation = translations[match[1]] ?? value;
		return typeof translation === 'string' ? translation : (typeof translation.message === 'string' ? translation.message : value);
	};

	return cloneAndChange(manifest, patcher);
}