angular-gettext icon indicating copy to clipboard operation
angular-gettext copied to clipboard

Support "-" as delimiter in language codes

Open agrajaghh opened this issue 7 years ago • 1 comments

Currently the fallback language is determined form the language code using the underscore ("_") as a delimiter. At least Chrome is using a dash ("-") for me, so gettextFallbackLanguage() is returning null for e.g. "de-DE" instead of "de".

see: https://github.com/rubenv/angular-gettext/blob/master/dist/angular-gettext.js#L547

agrajaghh avatar Oct 04 '16 11:10 agrajaghh

+1

atapas avatar Oct 07 '16 08:10 atapas