Test strings against RFC 5646
RFC5646.valid?("sandwich") #=> false
RFC5646.valid?("en-US") #=> true
RFC5646.valid?(["en-US", "en-GB"]) #=> trueAdd rfc5646 to your list of dependencies in mix.exs:
def deps do
[{:rfc5646, "~> 0.1.0"}]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/rfc5646.