wluwd / t

Lightweight, unopinionated, framework agnostic, and type-safe translation library
MIT License
3 stars 1 forks source link

Type mismatch between negotiators and `localeSource` #27

Closed macarie closed 8 months ago

macarie commented 8 months ago

Currently, it's impossible to use negotiators in localeSource.

localeSource expects the negotiators to return known locales, but the negotiators return string.

Relax the localeSource type or check if the negotiators can correctly infer the return type.