Locale added
This commit is contained in:
14
lib/locale/locale.ex
Normal file
14
lib/locale/locale.ex
Normal file
@@ -0,0 +1,14 @@
|
||||
defmodule Localizator.Locale do
|
||||
@typedoc """
|
||||
Locale
|
||||
"""
|
||||
@type locale :: String.t() | Atom.t()
|
||||
|
||||
@typedoc """
|
||||
Normalized Locale
|
||||
"""
|
||||
@type normalized_locale :: String.t()
|
||||
|
||||
@spec normalize(locale) :: normalized_locale
|
||||
def normalize(locale), do: "#{locale}"
|
||||
end
|
||||
Reference in New Issue
Block a user