As I’m building mostly enterprisy applications with large teams, tools like TypeScript are a lifesaver…until they start to break apart.
Last week after updating to a more recent TypeScript version, one of my colleagues got the following error message when trying to compile some TypeScript code:
vstsc Error Build: Unsupported locale 'nl-BE'. MyApp.Web
A fix is already available in the nightly nuget package(see https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/Nightly%20Builds.md#using-nuget-with-msbuild for more details).
I preferred to use a workaround by copying C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.8\en folder to C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.8\nl-BE. TypeScript is using this folder to apply localization to the error messages, etc… Unfortunately if it couldn’t find a matching folder for your culture, you end up with a compiler error.