You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use IETF Language Tags instead of POSIX locales in .default_available_locales, fast_gettext formats the hyphen to an underscore when calling .set_locale.
I came across this when trying to use IETF Language Tags instead of POSIX locales in a Rails application and I'm wondering if you could offer some clarification as to whether this is the expected behaviour or whether there might be some room for improvement.
This happens because FastGettext formats my input using #set_locale, replacing the hyphen with an underscore, before doing a lookup on the available locales e.g.
When I use
IETF Language Tags
instead ofPOSIX locales
in.default_available_locales
,fast_gettext
formats the hyphen to an underscore when calling.set_locale
.I came across this when trying to use
IETF Language Tags
instead ofPOSIX locales
in a Rails application and I'm wondering if you could offer some clarification as to whether this is the expected behaviour or whether there might be some room for improvement.Reproduction Steps
This happens because
FastGettext
formats my input using#set_locale
, replacing the hyphen with an underscore, before doing a lookup on the available locales e.g.Question
Should
FastGettext
be replacing hyphens at all? Is this behaviour also present ingettext
?The text was updated successfully, but these errors were encountered: