vazco / meteor-universe-i18n

Internationalization package for Meteor with React integration.
https://atmospherejs.com/universe/i18n
MIT License
123 stars 32 forks source link

Add query parameters to avoid JSON warning #178

Closed sabativi closed 1 year ago

sabativi commented 1 year ago

I keep having there errors :

Screenshot 2023-01-02 at 15 43 24

with more than 20 translations it is very annoying in dev

By adding type=json, I have no warning, #148 and #126 had this problem without any way to reproduce it

In postman result is text with ?json

Screenshot 2023-01-02 at 15 40 15

whereas with type=json

Screenshot 2023-01-02 at 15 40 27
zendranm commented 1 year ago

@sabativi good catch, I reproduced the error and your fix works correctly.