Using Luxon with nakama typescript runtime, missing Intl support

Hi everyone!

As working with dates in javascript is terrible I wanted to use luxon to make my life a lot easier. However I quickly run into errors because of the missing Intl support.

ReferenceError: Intl is not defined at systemLocale (index.js:10746:26(7))

Has anybody an idea on how to proceed? :pray:

Nakama internally uses goja to run js. Goja supports ES5.1. There was an issue on supporting Intl - Ecma 402 support? ยท Issue #7 ยท dop251/goja ยท GitHub
The only way is to use some kind of a polyfill.

1 Like