Skip to content

Commit

Permalink
refactor: improve type of :detect_locale_from option
Browse files Browse the repository at this point in the history
  • Loading branch information
c4710n committed Dec 30, 2023
1 parent 8b5b69f commit 2753f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plug_locale/browser/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule PlugLocale.Browser.Config do
default: []
],
detect_locale_from: [
type: {:list, :atom},
type: {:list, {:in, [:query, :cookie, :referrer, :accept_language]}},
default: [:cookie, :referrer, :accept_language]
],
cast_locale_by: [
Expand Down

0 comments on commit 2753f10

Please sign in to comment.