Thursday, June 16, 2016

TypeScript error - Build: Unsupported locale 'nl-BE'.

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.

1 comment:

Suspicious Johnny said...

What you're writing actually contracts to the paths you mentioned.

The paths are of the US version, but you have issues with nl-BE. That means that either your colleague has a Dutch windows installed, or he has the Dutch language pack installed.

I do wonder, if that is the case, do you guys also write code in Dutch? Do you guys also write your comments in Dutch? /shiver.