toonvanstrijp / nestjs-i18n

The i18n module for nestjs.
https://nestjs-i18n.com
Other
642 stars 106 forks source link

Is there a way to get the accept-language content #492

Closed abouroubi closed 1 year ago

abouroubi commented 1 year ago

I'm trying to get the raw value of accept-language header using the I18nContext.current() is it possible ?

ilker0 commented 1 year ago

Yes it's possible

abouroubi commented 1 year ago

How can I get it ?

rubiin commented 1 year ago

I think you can use I18nContext.current().lang but it might return the parsed value that is the first part of *_*. Prs are welcome