Locale added

This commit is contained in:
2020-06-07 22:01:46 +03:00
parent f3b057a7be
commit 21b9ed364e
6 changed files with 51 additions and 34 deletions

14
lib/locale/locale.ex Normal file
View 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