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
{{ message }}
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
publicstaticfailedToEnumerateFilesInDir(path: string,errCode: string,errMessage: string): string {returnlocalize({key: 'Failed.To.Enumerate.Files.In.Dir',comment:
['Error message when failed to enumerate files in a directory.']},`Failed to enumerate files in directory '{0}'. Error code={1}, Error message={2}`,path,errCode,errMessage);}
When targeting ES5, all is well. But once we target ES6, the backtick as a quote character is preserved:
staticfailedToEnumerateFilesInDir(path,errCode,errMessage){returnlocalize({key: 'Failed.To.Enumerate.Files.In.Dir',comment: ['Error message when failed to enumerate files in a directory.']},`Failed to enumerate files in directory '{0}'. Error code={1}, Error message={2}`,path,errCode,errMessage);}
This causes vscode-nls-dev to fail during build with this error:
libraryResourceStrings.js(661,11): second argument of a localize call must be a string literal.
For now we workaround it by changing our own use of backtick to single quotes. But that requires much more escaping in our English strings because we use single-quotes inside the localizable string.
Please enable use of backticks.
The text was updated successfully, but these errors were encountered:
We have this code that vscode-nls-dev rewrites:
When targeting ES5, all is well. But once we target ES6, the backtick as a quote character is preserved:
This causes vscode-nls-dev to fail during build with this error:
For now we workaround it by changing our own use of backtick to single quotes. But that requires much more escaping in our English strings because we use single-quotes inside the localizable string.
Please enable use of backticks.
The text was updated successfully, but these errors were encountered: