Consider disallowing fallback from "en-US" to "en" -> that is, do not fall back to the language specific locale.
This would be a configuration option on the backend module. Maybe something like:
defmodule MyApp.Cldr do
use Cldr,
fallback: :language, # Fallback to the language locale, ie. en-US validates as en if en-US is not configured. This is the current behaviour
fallback: :default, # Fallback to the default locale
fallback: :none, # No fallbacks
fallback: [:language, :default] # Fall back to :language first, then the default
end
Consider disallowing fallback from "en-US" to "en" -> that is, do not fall back to the language specific locale.
This would be a configuration option on the backend module. Maybe something like: